mirror of
https://github.com/Ishan09811/pine.git
synced 2025-04-24 08:55:10 +00:00
Fix crash in settings when rotating device twice while a dialog is opened
This commit is contained in:
parent
aa0a45eb57
commit
9d29ad97a4
@ -117,10 +117,12 @@ class SettingsActivity : AppCompatActivity(), PreferenceFragmentCompat.OnPrefere
|
||||
// Reset the subtitle to null
|
||||
supportActionBar?.subtitle = null
|
||||
|
||||
supportFragmentManager
|
||||
.beginTransaction()
|
||||
.replace(R.id.settings, preferenceFragment)
|
||||
.commit()
|
||||
if (savedInstanceState == null) {
|
||||
supportFragmentManager
|
||||
.beginTransaction()
|
||||
.replace(R.id.settings, preferenceFragment)
|
||||
.commit()
|
||||
}
|
||||
}
|
||||
|
||||
override fun onCreateOptionsMenu(menu : Menu?) : Boolean {
|
||||
|
Loading…
x
Reference in New Issue
Block a user