From 85811b7bd039b92be539b0129d62794e020620c2 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 16:05:10 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=A4=E3=83=B3=E3=82=B9=E3=82=BF=E3=83=B3?= =?UTF-8?q?=E3=82=B9=E5=A4=89=E6=95=B0=E3=81=A7=E3=81=82=E3=82=8B=E5=BF=85?= =?UTF-8?q?=E8=A6=81=E3=81=8C=E3=81=AA=E3=81=84=E3=82=82=E3=81=AE=E3=82=92?= =?UTF-8?q?=E5=89=8A=E9=99=A4?= 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, 1 insertion(+), 3 deletions(-) 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 ->