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

[Jetchat] Drawer not opening after double-clicking on the drawer icon #744 #844

Merged
merged 1 commit into from
Jun 29, 2022

Conversation

alajemba-vik
Copy link
Contributor

Issue: The drawer refuses to open.

Repro:

  1. Click the drawer icon twice, or

  2. Click the drawer icon, then quickly click anywhere other than the opening drawer before it completely opens.

Performing either of these two actions closes the drawer and leads to the issue stated above. 

Reason: The drawer's opening movement is interrupted before it can complete, and because of this, MainViewModel.resetOpenDrawerAction() is never called. 

Intended Fix: The update in this PR wraps the DrawerState.open() call in a try-finally block.

@alajemba-vik alajemba-vik requested a review from a team as a code owner June 13, 2022 22:49
@google-cla
Copy link

google-cla bot commented Jun 13, 2022

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@alajemba-vik alajemba-vik marked this pull request as draft June 13, 2022 23:03
@alajemba-vik alajemba-vik marked this pull request as ready for review June 13, 2022 23:13
Copy link
Contributor

@astamato astamato left a comment

Choose a reason for hiding this comment

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

LGTM

@astamato astamato merged commit 1da9c63 into android:main Jun 29, 2022
@alajemba-vik alajemba-vik deleted the drawer-not-opening-issue branch June 30, 2022 13:31
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