mirror of
https://github.com/home-assistant/android
synced 2024-09-06 09:13:57 +00:00
Fix onboarding duplicate fragment on recreation (#2609)
This commit is contained in:
parent
da0903b3c9
commit
38d70e0345
|
@ -25,10 +25,12 @@ class OnboardingActivity : AppCompatActivity() {
|
|||
viewModel.deviceName.value = input.defaultDeviceName
|
||||
viewModel.locationTrackingPossible.value = input.locationTrackingPossible
|
||||
|
||||
supportFragmentManager
|
||||
.beginTransaction()
|
||||
.add(R.id.content, WelcomeFragment::class.java, null)
|
||||
.commit()
|
||||
if (savedInstanceState == null) {
|
||||
supportFragmentManager
|
||||
.beginTransaction()
|
||||
.add(R.id.content, WelcomeFragment::class.java, null)
|
||||
.commit()
|
||||
}
|
||||
}
|
||||
|
||||
override fun onBackPressed() {
|
||||
|
|
Loading…
Reference in a new issue