From 8164ce8bd653e05280eab1badcde6a19d374d17c 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:26:19 +0900 Subject: [PATCH] =?UTF-8?q?=E5=91=BC=E3=81=B3=E5=87=BA=E3=81=97=E7=AE=87?= =?UTF-8?q?=E6=89=80=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/com/example/childguard/TestService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/example/childguard/TestService.java b/app/src/main/java/com/example/childguard/TestService.java index 8d639e0..590c0e4 100644 --- a/app/src/main/java/com/example/childguard/TestService.java +++ b/app/src/main/java/com/example/childguard/TestService.java @@ -171,7 +171,7 @@ public class TestService extends Service { if (documentSnapshot.getBoolean("isReported")) { //ここスタート(リサイクル) ResetReported();// ResetReported();を処理→FireBaseのisReportedをfalseにする - Notification(getApplicationContext());//通知を行うメソッド + Notification(getApplicationContext(), REPORTED_NOTIFICATION);//通知を行うメソッド } } else {//isReportedがfalse=サイト上で降車状態のとき ResetReported();//ResetReported();を処理→FireBaseのisReportedをfalseにする @@ -286,7 +286,7 @@ public class TestService extends Service { @Override public void run() { if (BluetoothDevice.ACTION_ACL_DISCONNECTED.equals(action) && !isInCar) {//その後bluetoothを再接続したり降車状態になったりしていない=置き去りが発生した可能性大 - NotificationBluetooth(getApplicationContext());//通知を行うメソッド + Notification(context, BLUETOOTH_NOTIFICATION); } }