Skip to content
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

Connect Button resume state fixes #140

Merged
merged 2 commits into from
Feb 4, 2020
Merged

Conversation

lzanita09
Copy link
Collaborator

Make ConnectResult nullable from the ConnectResult.fromIntent() method

We actually need it to be nullable to represent cases where onNewIntent is called from non-redirect. In this case, we should not try to force the ConnectButton to be in either initial state or the email state.

Reset knob background when running complete animation

To account for an issue caused by redirecting to Gmail: the app is temporarily moved back to foreground, and onResume is going to be called. With the ActivityLifecycleCallbacks registered, the onActivityOnResume is going to be called, and we are going to try to restore the button state, which is incorrect.

Adding an extra reset knob background step to account for this.

We actually need it to be nullable to represent cases where onNewIntent is called from non-redirect. In this case, we should not try to force the ConnectButton to be in either initial state or the email state.
To account for an issue caused by redirecting to Gmail: the app is temporarily moved back to foreground, and onResume is going to be called. With the ActivityLifecycleCallbacks registered, the onActivityOnResume is going to be called, and we are going to try to restore the button state, which is incorrect.

Adding an extra reset knob background step to account for this.
@lzanita09 lzanita09 merged commit be4a10d into master Feb 4, 2020
@lzanita09 lzanita09 deleted the fix_connect_button_anim branch February 4, 2020 00:56
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.

2 participants