mirror of
https://github.com/home-assistant/android
synced 2024-09-16 06:41:33 +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