mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-04-14 19:56:32 +00:00
Merge pull request #2159 from HabitRPG/fix/single-root-prefs-fragment
Fix changing display modes in settings creates multiple instances of settings
This commit is contained in:
commit
b8f2853e03
1 changed files with 6 additions and 4 deletions
|
|
@ -23,10 +23,12 @@ class PrefsActivity :
|
|||
super.onCreate(savedInstanceState)
|
||||
|
||||
setupToolbar(findViewById(R.id.toolbar))
|
||||
|
||||
supportFragmentManager.beginTransaction()
|
||||
.replace(R.id.fragment_container, PreferencesFragment())
|
||||
.commit()
|
||||
|
||||
if (savedInstanceState == null) {
|
||||
supportFragmentManager.beginTransaction()
|
||||
.replace(R.id.fragment_container, PreferencesFragment())
|
||||
.commit()
|
||||
}
|
||||
}
|
||||
|
||||
override fun onSupportNavigateUp(): Boolean {
|
||||
|
|
|
|||
Loading…
Reference in a new issue