diff --git a/src/main/java/org/ligi/passandroid/ui/PassImportActivity.java b/src/main/java/org/ligi/passandroid/ui/PassImportActivity.java index 58933dce..b88cb677 100644 --- a/src/main/java/org/ligi/passandroid/ui/PassImportActivity.java +++ b/src/main/java/org/ligi/passandroid/ui/PassImportActivity.java @@ -45,6 +45,12 @@ public class PassImportActivity extends ActionBarActivity { super.onPostExecute(result); if (result == null) { + + if (!passImportActivity.isFinishing()) { + progressDialog.dismiss(); + } + finish(); + //TODO show some error here?! return; // no result -> no work here }