mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-30 05:48:09 +00:00
fixes some crashes where the dialog is no longer available
This commit is contained in:
parent
c5f55fce88
commit
a01276699a
@ -52,7 +52,12 @@ public class GitAsyncTask extends AsyncTask<GitCommand, Integer, String> {
|
||||
|
||||
protected void onPostExecute(String result) {
|
||||
if (this.dialog != null)
|
||||
this.dialog.dismiss();
|
||||
try {
|
||||
this.dialog.dismiss();
|
||||
} catch (Exception e)
|
||||
{
|
||||
// ignore
|
||||
}
|
||||
|
||||
if (result == null)
|
||||
result = "Unexpected error";
|
||||
|
Loading…
x
Reference in New Issue
Block a user