diff options
Diffstat (limited to 'core/java/android/preference')
-rw-r--r-- | core/java/android/preference/PreferenceActivity.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/java/android/preference/PreferenceActivity.java b/core/java/android/preference/PreferenceActivity.java index 2b609ea..ad0bc84 100644 --- a/core/java/android/preference/PreferenceActivity.java +++ b/core/java/android/preference/PreferenceActivity.java @@ -1049,7 +1049,7 @@ public abstract class PreferenceActivity extends ListActivity implements FragmentTransaction transaction = getFragmentManager().beginTransaction(); transaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE); transaction.replace(com.android.internal.R.id.prefs, f); - transaction.commit(); + transaction.commitAllowingStateLoss(); } /** @@ -1144,7 +1144,7 @@ public abstract class PreferenceActivity extends ListActivity implements } else { transaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE); } - transaction.commit(); + transaction.commitAllowingStateLoss(); } /** @@ -1184,7 +1184,7 @@ public abstract class PreferenceActivity extends ListActivity implements } transaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); transaction.addToBackStack(BACK_STACK_PREFS); - transaction.commit(); + transaction.commitAllowingStateLoss(); } } |