未使用処理を削除

This commit is contained in:
ろむねこ 2024-07-11 14:42:22 +09:00
parent 61c2abcdad
commit e9c10fc266
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -126,8 +126,6 @@ public class TestService extends Service {
String IdPref = sharedPreferences.getString("ID", null);//アプリに記録されているIDの取得
db = FirebaseFirestore.getInstance();//Firebaseとの紐づけ
DocumentReference isReported = db.collection("status").document(IdPref);//更新するドキュメントとの紐づけ
Map<String, Boolean> DEFAULT_ITEM = new HashMap<>();//mapの宣言
DEFAULT_ITEM.put("isReported", false);
//isReportedをfalseに更新
isReported.update("isReported", false).addOnSuccessListener(unused -> Log.d(TAG, "DocumentSnapshot successfully updated!")).addOnFailureListener(e -> Log.w(TAG, "Error updating document", e));
}