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

Use constant value for translation when DrawerLayout is idle #2005

Merged
merged 1 commit into from
Apr 27, 2022

Conversation

j-piasecki
Copy link
Member

Description

Fixes #386.

AnimatedInterpolation was causing problems on Android when the activity was paused for some reason (like permission or share dialog). For some reason it was changing its value on pause, opening the drawer, and again on resume closing the drawer. This PR changes DrawerLayout so that it uses constant value instead of interpolation when the drawer is idle.

Test plan

Tested on the Example app

@j-piasecki j-piasecki changed the title Update DrawerLayout Use constant value for translation when DrawerLayout is idle Apr 13, 2022
@linxianxi
Copy link

Someone review?

@j-piasecki j-piasecki merged commit 68f02ac into main Apr 27, 2022
@j-piasecki j-piasecki deleted the @jpiasecki/modify-drawer-layout branch April 27, 2022 08:40
@linxianxi
Copy link

When will the package be released?

@j-piasecki
Copy link
Member Author

@linxianxi This change is included in Gesture Handler 2.4.2.

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.

Bug with permissions dialog and position
3 participants