-
Notifications
You must be signed in to change notification settings - Fork 624
Await foreground activity during sign in #3340
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
Coverage Report 1Affected Products
Test Logs
Notes |
Size Report 1Affected Products
Test Logs
Notes |
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.
makes sense so far!
* Returns a {@link SuccessContinuation} to be chained off of a {@link Task}, that will run | ||
* another task in sequence and combine both results together. | ||
* | ||
* <p>This is useful when you want to run two tasks and use the results of each, but those tasks |
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.
Great docs!
37bd9f4
to
5731f60
Compare
5731f60
to
053c019
Compare
Please hold off on reviewing, I think I need to tweak this a bit. |
a5076fd
to
c14fd98
Compare
OK this is ready for review |
ErrorMessages.AUTHENTICATION_ERROR, AUTHENTICATION_FAILURE, e)); | ||
}); | ||
handleTaskFailure(ErrorMessages.AUTHENTICATION_ERROR, Status.AUTHENTICATION_FAILURE)) | ||
.onSuccessTask(combineWithResultOf(() -> lifecycleNotifier.getForegroundActivity())) |
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.
Will this be ok in the case where we get the activity but we don't have the lock and once we get the lock the activity changes?
Foreground activity with no lock-> Lock granted -> Different foreground activity is now there but we continue now that we have the lock.
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.
Oh great catch! That would break. I'll see what I can do about that.
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.
I made a change in the success listener below, and left some clarifying comments. I think that helps but let me know what you think.
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.
Looks good to me!
No description provided.