Remove code I don't understand anymore because it is hopefully not needed

This commit is contained in:
MM20 2021-12-13 17:37:28 +01:00
parent 9ebac9684b
commit e46d5a7d7e
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389

View File

@ -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()