Skip to content

Ensure auth progress is stored on config changes#109

Merged
antonholmberg merged 1 commit intospotify:masterfrom
antonholmberg:fix-login-activity-not-canceling-when-recreated
Mar 4, 2026
Merged

Ensure auth progress is stored on config changes#109
antonholmberg merged 1 commit intospotify:masterfrom
antonholmberg:fix-login-activity-not-canceling-when-recreated

Conversation

@antonholmberg
Copy link
Contributor

Before this change if you turned on "Do not keep activities" and pressed back from the consent screen, there would be a headless LoginActivity still running and you needed to press back again to get rid of it.

@antonholmberg antonholmberg force-pushed the fix-login-activity-not-canceling-when-recreated branch from 61522b4 to b59af1d Compare March 3, 2026 15:07
// - Handler reports auth in progress (user returned from browser without completing)
// We don't cancel when a handler exists but hasn't started auth yet
// (e.g. Custom Tabs service binding is still in progress).
if (authInProgress &&
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This if-statement it a bit hard to read. I'm wondering, since hasHandler and isHandlerAuthInProgress are only used here, perhaps consider merging them into hasHandlerWithoutAuthInProcess?

@antonholmberg antonholmberg force-pushed the fix-login-activity-not-canceling-when-recreated branch from b59af1d to bda83de Compare March 4, 2026 10:49
@antonholmberg antonholmberg merged commit eb390c6 into spotify:master Mar 4, 2026
1 check passed
@antonholmberg antonholmberg deleted the fix-login-activity-not-canceling-when-recreated branch March 4, 2026 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants