[MS-1216] ] Call viewModel.start() only on first creation of SetupFragment#1447
Merged
Merged
Conversation
92af632 to
478ffa2
Compare
luhmirin-s
approved these changes
Nov 3, 2025
BurningAXE
reviewed
Nov 3, 2025
BurningAXE
reviewed
Nov 3, 2025
Added a check for savedInstanceState == null to ensure start() is called only once and not re-triggered after configuration changes (e.g. rotation).
478ffa2 to
97ef984
Compare
|
luhmirin-s
approved these changes
Nov 4, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



JIRA ticket
Will be released in: 2025.4.0
Root cause analysis (for bugfixes only)
First known affected version: all releases
Fixes a bug where rotating the device with a permission dialogue (location/notification) open would cause the setup flow to advance to the next screen while the dialogue remained visible.
This was caused by the permission request event re-firing on a configuration change. The fix ensures the viewmodel.start() is only called once
Before:
https://github.com/user-attachments/assets/161bcb77-3a7f-46bb-ba47-7691d19f526b
After:
https://github.com/user-attachments/assets/94554884-fb37-47de-b4e1-0e5b3f253f77
Testing guidance
Additional work checklist