mirror of
https://github.com/android-password-store/Android-Password-Store.git
synced 2026-04-22 06:58:42 +02: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…
Reference in a new issue