onResumeの場所を変更

This commit is contained in:
ろむねこ 2024-01-17 19:50:41 +09:00
parent 51fd91027d
commit 23be550762
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -160,6 +160,7 @@ public class MainActivity extends AppCompatActivity {
@Override
protected void onResume() {
super.onResume();
Log.d("onResume", "called");
Log.d("onResume", "mDocRef is null");
SharedPreferences sharedPreferences = getSharedPreferences("app_situation", MODE_PRIVATE);
@ -171,7 +172,6 @@ public class MainActivity extends AppCompatActivity {
this.flg = false;
initNotification(mDocRef);
}
super.onResume();
}
private void initNotification(DocumentReference mDocRef) {