Fix issues introduced by login lib removal#22703
Conversation
Generated by 🚫 Danger |
|
|
|
|
afb65f5 to
2f8c6d3
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## trunk #22703 +/- ##
==========================================
- Coverage 37.49% 37.49% -0.01%
==========================================
Files 2286 2286
Lines 120484 120491 +7
Branches 16501 16505 +4
==========================================
Hits 45173 45173
- Misses 71637 71644 +7
Partials 3674 3674 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- Use single root layout with loading overlay in LoginActivity to avoid multiple setContentView() calls that orphan fragments - Wrap unbindService() in try-catch for IllegalArgumentException - Reset cached mLoginFlow in onNewIntent() to prevent stale values - Remove custom get() on loadingStateFlow to avoid recreating wrapper - Remove redundant e.printStackTrace() already logged via appLogWrapper - Require dot in site URL validation to reject single-word inputs - Make loading dialog dismissible by adding cancel discovery callback Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2f8c6d3 to
6d41710
Compare
|
Just saw a couple of finding could be good to review:
|
adalpari
left a comment
There was a problem hiding this comment.
Testing the app looks good to me, so I'm approving it.
I left some comments from Claude because they look important, but I'm not sure they are actually useful. So, feel free to use them or not.
Adds the inverse of showLoadingOverlay() so future code paths can transition back from the loading state to the fragment UI. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|





Summary
This PR addresses the remaining issues introduced in #22564.
setContentView()calls inLoginActivitythat orphan fragments by using a single root layout with a loading overlay and toggling visibilityunbindService()in try-catch to preventIllegalArgumentExceptioncrashesmLoginFlowinonNewIntent()to prevent stale login flow when activity is reused viasingleTopget()onloadingStateFlowthat recreated theStateFlowwrapper on every accesse.printStackTrace()(already logged viaappLogWrapper)exampleTest plan
Test the various login flows and verify everything works as expected.