diff --git a/app/src/main/java/org/zephyrsoft/trackworktime/OptionsActivity.java b/app/src/main/java/org/zephyrsoft/trackworktime/OptionsActivity.java index 04712c75..d569db7e 100644 --- a/app/src/main/java/org/zephyrsoft/trackworktime/OptionsActivity.java +++ b/app/src/main/java/org/zephyrsoft/trackworktime/OptionsActivity.java @@ -61,10 +61,12 @@ public class OptionsActivity extends AppCompatActivity { protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); - getSupportFragmentManager() - .beginTransaction() - .replace(android.R.id.content, new SettingsFragment()) - .commit(); + if (savedInstanceState == null) { + getSupportFragmentManager() + .beginTransaction() + .replace(android.R.id.content, new SettingsFragment()) + .commit(); + } ActionBar actionBar = getSupportActionBar(); if (actionBar != null) {