From 36cbb5975a2ba56457b37513f589f306e3e801a7 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:57:30 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=B7=E3=83=B3=E3=83=97=E3=83=AB=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/com/example/childguard/TestService.java | 3 +-- 1 file changed, 1 insertion(+), 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 3b8c702..fd6cc28 100644 --- a/app/src/main/java/com/example/childguard/TestService.java +++ b/app/src/main/java/com/example/childguard/TestService.java @@ -72,8 +72,7 @@ public class TestService extends Service { Log.d("onResume", "ID not initialized."); return flags; // IDが初期化されていない場合は何もしない } else { - mDocRef = FirebaseFirestore.getInstance().document("status/" + this.userId);//現在の位置を取得 - setSnapshotListener(mDocRef);//現在の位置を引数に initNotification()を処理 + setSnapshotListener(FirebaseFirestore.getInstance().document("status/" + this.userId)); } if (isNotBluetoothGranted()) return flags;