呼び出し箇所修正

This commit is contained in:
r-ca committed 2024-07-11 15:26:19 +09:00
1 parent 40c84f4041
commit 8164ce8bd6
1 file changed
+2 -2
@@ -171,7 +171,7 @@ public class TestService extends Service {
if (documentSnapshot.getBoolean("isReported")) { if (documentSnapshot.getBoolean("isReported")) {
//ここスタート(リサイクル) //ここスタート(リサイクル)
ResetReported();// ResetReported();を処理→FireBaseのisReportedをfalseにする ResetReported();// ResetReported();を処理→FireBaseのisReportedをfalseにする
Notification(getApplicationContext());//通知を行うメソッド Notification(getApplicationContext(), REPORTED_NOTIFICATION);//通知を行うメソッド
} }
} else {//isReportedがfalse=サイト上で降車状態のとき } else {//isReportedがfalse=サイト上で降車状態のとき
ResetReported();//ResetReported();を処理→FireBaseのisReportedをfalseにする ResetReported();//ResetReported();を処理→FireBaseのisReportedをfalseにする
@@ -286,7 +286,7 @@ public class TestService extends Service {
@Override @Override
public void run() { public void run() {
if (BluetoothDevice.ACTION_ACL_DISCONNECTED.equals(action) && !isInCar) {//その後bluetoothを再接続したり降車状態になったりしていない=置き去りが発生した可能性大 if (BluetoothDevice.ACTION_ACL_DISCONNECTED.equals(action) && !isInCar) {//その後bluetoothを再接続したり降車状態になったりしていない=置き去りが発生した可能性大
NotificationBluetooth(getApplicationContext());//通知を行うメソッド Notification(context, BLUETOOTH_NOTIFICATION);
} }
} }