forked from mirrors/Fedilab
Fix a crash if app is killed
This commit is contained in:
parent
020d218df9
commit
f647c308a2
1 changed files with 5 additions and 1 deletions
|
@ -143,7 +143,11 @@ public class CacheActivity extends BaseActivity {
|
|||
dialogRestart.dismiss();
|
||||
Helper.restart(CacheActivity.this);
|
||||
});
|
||||
restartBuilder.create().show();
|
||||
AlertDialog alertDialog = restartBuilder.create();
|
||||
if (!isFinishing()) {
|
||||
alertDialog.show();
|
||||
}
|
||||
|
||||
}));
|
||||
dialog.dismiss();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue