summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKedi Xu <kedix@codeaurora.org>2016-08-10 17:48:13 +0800
committerKedi Xu <kedix@codeaurora.org>2016-08-10 17:48:13 +0800
commit5db68ed3b8510d1e7bfc3bd15a03e88bee004d0d (patch)
treef8a8bb7f18a837a34001b60f0da97e10e098011a
parent933ff5d0c4124f4e57a08d6e6a18fa1705241dab (diff)
downloadandroid_packages_apps_Gallery2-5db68ed3b8510d1e7bfc3bd15a03e88bee004d0d.tar.gz
android_packages_apps_Gallery2-5db68ed3b8510d1e7bfc3bd15a03e88bee004d0d.tar.bz2
android_packages_apps_Gallery2-5db68ed3b8510d1e7bfc3bd15a03e88bee004d0d.zip
SnapdragonGallery: fix gallery crash commit after onSaveInstanceState
When gallery in crop, background, then rotate the screen will cause gallery crash. Change commit to commitAllowingStateLoss Change-Id: Ia48b93d5bf1f1ae59dca6d6807686a79157bc593 CRs-Fixed: 1052697
-rwxr-xr-x[-rw-r--r--]src/com/android/gallery3d/filtershow/FilterShowActivity.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/filtershow/FilterShowActivity.java b/src/com/android/gallery3d/filtershow/FilterShowActivity.java
index 157087972..d5791dc05 100644..100755
--- a/src/com/android/gallery3d/filtershow/FilterShowActivity.java
+++ b/src/com/android/gallery3d/filtershow/FilterShowActivity.java
@@ -467,7 +467,7 @@ public class FilterShowActivity extends FragmentActivity implements OnItemClickL
MainPanel.FRAGMENT_TAG));
transaction.replace(R.id.main_panel_container, panel,
MainPanel.FRAGMENT_TAG);
- transaction.commit();
+ transaction.commitAllowingStateLoss();
}
}.run();
}