forked from upstream-mirrors/quik
Merge pull request #586 from frogoscar/enmingxie/Fix_crash_when_backPress_from_SettingsActivity_after_Orientation_changed
Fix crash when backPress from SettingsActivity after Orientation changed
This commit is contained in:
@@ -17,11 +17,14 @@ public class SettingsActivity extends QKSwipeBackActivity {
|
||||
mSettingsFragment = (SettingsFragment) fm.findFragmentByTag(SettingsFragment.TAG);
|
||||
if (mSettingsFragment == null) {
|
||||
mSettingsFragment = SettingsFragment.newInstance(R.xml.settings_main);
|
||||
fm.beginTransaction()
|
||||
.replace(R.id.content_frame, mSettingsFragment, SettingsFragment.TAG)
|
||||
.commit();
|
||||
} else {
|
||||
fm.beginTransaction()
|
||||
.show(mSettingsFragment)
|
||||
.commit();
|
||||
}
|
||||
|
||||
fm.beginTransaction()
|
||||
.replace(R.id.content_frame, mSettingsFragment, SettingsFragment.TAG)
|
||||
.commit();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user