diff --git a/CardboardMpo/build.gradle b/CardboardMpo/build.gradle index 066f63d..b25c312 100644 --- a/CardboardMpo/build.gradle +++ b/CardboardMpo/build.gradle @@ -8,15 +8,15 @@ android { defaultConfig { minSdkVersion 16 targetSdkVersion 23 - versionCode 8 - versionName "1.4" + versionCode 9 + versionName "1.5" } lintOptions.abortOnError false buildTypes { release { - minifyEnabled true + minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt') } } diff --git a/CardboardMpo/src/main/java/com/dmitrybrant/android/cardboardmpo/MainActivity.java b/CardboardMpo/src/main/java/com/dmitrybrant/android/cardboardmpo/MainActivity.java index 4529ca0..492f80c 100644 --- a/CardboardMpo/src/main/java/com/dmitrybrant/android/cardboardmpo/MainActivity.java +++ b/CardboardMpo/src/main/java/com/dmitrybrant/android/cardboardmpo/MainActivity.java @@ -225,6 +225,9 @@ public MainFindTask() { @Override protected void onPostExecute(List results) { + if (isDestroyed()) { + return; + } mpoFileList.clear(); setProgress(false); if (results.size() == 0) { @@ -275,6 +278,9 @@ protected void onProgressUpdate(Integer... progress) { @Override protected void onPostExecute(List results) { + if (isDestroyed()) { + return; + } if (bmpLeft == null || bmpRight == null) { setStatus(true, getString(R.string.status_error_load)); } else {