onResumeの場所を変更
This commit is contained in:
parent
51fd91027d
commit
23be550762
|
@ -160,6 +160,7 @@ public class MainActivity extends AppCompatActivity {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onResume() {
|
protected void onResume() {
|
||||||
|
super.onResume();
|
||||||
Log.d("onResume", "called");
|
Log.d("onResume", "called");
|
||||||
Log.d("onResume", "mDocRef is null");
|
Log.d("onResume", "mDocRef is null");
|
||||||
SharedPreferences sharedPreferences = getSharedPreferences("app_situation", MODE_PRIVATE);
|
SharedPreferences sharedPreferences = getSharedPreferences("app_situation", MODE_PRIVATE);
|
||||||
|
@ -171,7 +172,6 @@ public class MainActivity extends AppCompatActivity {
|
||||||
this.flg = false;
|
this.flg = false;
|
||||||
initNotification(mDocRef);
|
initNotification(mDocRef);
|
||||||
}
|
}
|
||||||
super.onResume();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initNotification(DocumentReference mDocRef) {
|
private void initNotification(DocumentReference mDocRef) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user