mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-28 19:45:50 +01:00
Only dismiss the dialog is the activity is still alive
This commit is contained in:
parent
24d342565b
commit
02ac70e2a7
@ -322,7 +322,9 @@ public class DebugActivity extends GBActivity {
|
||||
@Override
|
||||
protected Object doInBackground(Object[] params) {
|
||||
helper.importOldDb(oldHandler, device, targetHandler);
|
||||
progress.dismiss();
|
||||
if (!isFinishing() && !isDestroyed()) {
|
||||
progress.dismiss();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}.execute((Object[]) null);
|
||||
|
Loading…
Reference in New Issue
Block a user