-
Notifications
You must be signed in to change notification settings - Fork 624
Clean up sign in state management #4491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Generated by 🚫 Danger |
Coverage Report 1Affected Products
Test Logs |
dc74f3b
to
f1e46fe
Compare
f1e46fe
to
43ec7a0
Compare
|
||
private <T> Task<T> applyToSharedPreferences(SharedPreferencesFunction<T> func) { | ||
// Check nullness of sharedPreferences directly even though multiple threads could be calling | ||
// this function at once. This isn't a problem because: 1) once it is set it will never be set, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: is this overlong line something :googleJavaFormat
would fix?
extra-nit: "set back to null" -> "reset back to null"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh, it doesn't appear overlong to me (100 characters). :googleJavaFormat
thinks its fine too.
I like "reset back to null", changed.
// Simulate re-entering app after successful sign in, via SignInResultActivity | ||
testerSignInManager.onActivityCreated(mockSignInResultActivity); | ||
|
||
awaitTaskFailure(signInTask, UNKNOWN, "Error storing tester sign in state", expectedException); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: long line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:googleJavaFormat
says this is fine too. Looks like 100 chars is the max.
Size Report 1Affected Products
Test Logs |
ff3ee8c
to
da17514
Compare
Startup Time Report 1Note: Layout is sometimes suboptimal due to limited formatting support on GitHub. Please check this report on GCS. Startup time comparison between the CI merge commit (b6afdae) and the base commit (973f40e) are not available. No macrobenchmark data found for the base commit (973f40e). Analysis for the CI merge commit (b6afdae) can be found at: |
* Simplify sign in state management * Reword comment
Uh oh!
There was an error while loading. Please reload this page.