Remove code I don't understand anymore because it is hopefully not needed
This commit is contained in:
parent
9ebac9684b
commit
e46d5a7d7e
@ -26,21 +26,9 @@ class SettingsActivity : AppCompatActivity() {
|
||||
.beginTransaction()
|
||||
.add(android.R.id.content, fragment)
|
||||
.commit()
|
||||
} else if (!savedInstanceState.getBoolean("theme_change")) {
|
||||
val fragment = getStartFragment()
|
||||
setupActionBar()
|
||||
supportFragmentManager
|
||||
.beginTransaction()
|
||||
.replace(android.R.id.content, fragment)
|
||||
.commit()
|
||||
}
|
||||
}
|
||||
|
||||
override fun onSaveInstanceState(outState: Bundle) {
|
||||
super.onSaveInstanceState(outState)
|
||||
outState.putBoolean("theme_change", true)
|
||||
}
|
||||
|
||||
private fun getStartFragment(): Fragment {
|
||||
return when (intent.extras?.getString(FRAGMENT, "")) {
|
||||
FRAGMENT_CALENDAR -> PreferencesCalendarFragment()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user