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