Merge "Settings: only replace content with new fragment if it has no saved instance state." into ub-launcher3-dorval-polish

am: c3f7664475

Change-Id: Ie802edcfc44df01fd8bfbf36fbfb913544285bb0
This commit is contained in:
Mario Bertschler
2017-07-05 17:38:18 +00:00
committed by android-build-merger
@@ -42,10 +42,12 @@ public class SettingsActivity extends Activity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Display the fragment as the main content.
getFragmentManager().beginTransaction()
.replace(android.R.id.content, new LauncherSettingsFragment())
.commit();
if (savedInstanceState == null) {
// Display the fragment as the main content.
getFragmentManager().beginTransaction()
.replace(android.R.id.content, new LauncherSettingsFragment())
.commit();
}
}
/**