diff --git a/app/src/main/java/com/example/childguard/TestService.java b/app/src/main/java/com/example/childguard/TestService.java index 48b6530..eae449c 100644 --- a/app/src/main/java/com/example/childguard/TestService.java +++ b/app/src/main/java/com/example/childguard/TestService.java @@ -49,8 +49,6 @@ public class TestService extends Service { } } - FirebaseFirestore db; - public static final String TAG = "InspirationQuote"; private static final String CHANNEL_ID = "child_guard_emergency"; private static final int REQUEST_CODE = 100; @@ -195,7 +193,7 @@ public class TestService extends Service { * 通報フラグをリセットする */ private void resetReported() { - db = FirebaseFirestore.getInstance();//Firebaseとの紐づけ + FirebaseFirestore db = FirebaseFirestore.getInstance();//Firebaseとの紐づけ DocumentReference isReported = db.collection("status").document(this.userId); //isReportedをfalseに更新 isReported.update("isReported", false).addOnSuccessListener(unused ->