From 5db68ed3b8510d1e7bfc3bd15a03e88bee004d0d Mon Sep 17 00:00:00 2001 From: Kedi Xu Date: Wed, 10 Aug 2016 17:48:13 +0800 Subject: 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 --- src/com/android/gallery3d/filtershow/FilterShowActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 src/com/android/gallery3d/filtershow/FilterShowActivity.java (limited to 'src') diff --git a/src/com/android/gallery3d/filtershow/FilterShowActivity.java b/src/com/android/gallery3d/filtershow/FilterShowActivity.java old mode 100644 new mode 100755 index 157087972..d5791dc05 --- 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(); } -- cgit v1.2.3