インスタンス変数である必要がないものを削除

This commit is contained in:
ろむねこ 2024-07-11 16:05:10 +09:00
parent 8a8ac211ef
commit 85811b7bd0
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -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 ->