不要な処理を削除(同じ値を5分後に比較しても結果は変わらないため)

This commit is contained in:
r-ca committed 2024-07-11 15:39:52 +09:00
1 parent 32538a43d9
commit 286c178f7f
1 file changed
+1 -3
@@ -272,9 +272,7 @@ public class TestService extends Service {
handler.postDelayed(new Runnable() {
@Override
public void run() {
if (BluetoothDevice.ACTION_ACL_DISCONNECTED.equals(action) && !isInCar) {//その後bluetoothを再接続したり降車状態になったりしていない=置き去りが発生した可能性大
Notification(context, BLUETOOTH_NOTIFICATION);
}
Notification(context, BLUETOOTH_NOTIFICATION);
}
}, 5 * 60 * 1000); // 5分をミリ秒に変換