From 523f1019094bb427587d9304ba7b353c600d256c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Thu, 11 Jul 2024 15:49:42 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=AA=E3=83=8D=E3=83=BC=E3=83=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/com/example/childguard/TestService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/example/childguard/TestService.java b/app/src/main/java/com/example/childguard/TestService.java index 2f47448..1d2d53f 100644 --- a/app/src/main/java/com/example/childguard/TestService.java +++ b/app/src/main/java/com/example/childguard/TestService.java @@ -173,7 +173,7 @@ public class TestService extends Service { if (documentSnapshot.getBoolean("isReported")) { //ここスタート(リサイクル) resetReported();// ResetReported();を処理→FireBaseのisReportedをfalseにする - Notification(getApplicationContext(), REPORTED_NOTIFICATION);//通知を行うメソッド + sendNotification(getApplicationContext(), REPORTED_NOTIFICATION);//通知を行うメソッド } } else {//isReportedがfalse=サイト上で降車状態のとき resetReported();//ResetReported();を処理→FireBaseのisReportedをfalseにする @@ -213,7 +213,7 @@ public class TestService extends Service { } } - public void Notification(Context context, NotificationContent content) {//通知を行うメソッド + public void sendNotification(Context context, NotificationContent content) {//通知を行うメソッド // 権限の保有を確認 if (isNotNotificationEnabled()) return; @@ -264,7 +264,7 @@ public class TestService extends Service { // bluetoothが切断されたときに乗車状態のとき notificationRunnable = () -> { // 5分経過した時点でも車に乗っていない場合 - Notification(context, BLUETOOTH_NOTIFICATION); + sendNotification(context, BLUETOOTH_NOTIFICATION); }; handler.postDelayed(notificationRunnable, 5 * 60 * 1000); // 5分をミリ秒に変換 } else if (BluetoothDevice.ACTION_ACL_CONNECTED.equals(action)) {