mirror of
https://codeberg.org/tom79/Fedilab
synced 2024-12-12 03:16:36 +01:00
Fix a crash if app is killed
This commit is contained in:
parent
020d218df9
commit
f647c308a2
@ -143,7 +143,11 @@ public class CacheActivity extends BaseActivity {
|
|||||||
dialogRestart.dismiss();
|
dialogRestart.dismiss();
|
||||||
Helper.restart(CacheActivity.this);
|
Helper.restart(CacheActivity.this);
|
||||||
});
|
});
|
||||||
restartBuilder.create().show();
|
AlertDialog alertDialog = restartBuilder.create();
|
||||||
|
if (!isFinishing()) {
|
||||||
|
alertDialog.show();
|
||||||
|
}
|
||||||
|
|
||||||
}));
|
}));
|
||||||
dialog.dismiss();
|
dialog.dismiss();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user