-
Notifications
You must be signed in to change notification settings - Fork 74
Enable Drawer Menu Opening on Swipe From Left Gesture #3834
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
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -134,7 +134,7 @@ class RegisterFragment : Fragment(), OnSyncListener { | |||||
| .collectAsLazyPagingItems() | ||||||
|
|
||||||
| Scaffold( | ||||||
| drawerGesturesEnabled = scaffoldState.drawerState.isOpen, | ||||||
| drawerGesturesEnabled = true, | ||||||
|
||||||
| drawerGesturesEnabled = true, | |
| drawerGesturesEnabled = scaffoldState.drawerState.isOpen, |
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.
See my other comment below
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.
drawerGesturesEnabledis now alwaystrue, which means the drawer can be opened via edge-swipe even if this fragment is ever launched withtoolBarHomeNavigation = NAVIGATE_BACK(this argument exists in the nav graph and is passed intoGeoWidgetLauncherScreen). Consider gating drawer gestures on thetoolBarHomeNavigationvalue (while still allowing swipe-to-close when the drawer is open) so the drawer can’t be opened on back-only screens.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.
@qiarie Please follow up on this. The menu action can either be used for back navigation or launching the side navigation. With this change can you test when the toolbar action is used for back navigation like in the projects using the geowidget module. We should not allow opening of the drawer via the gesture if the action for the toolbar is for navigating back to the previous screen.
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.
@ellykits I have a commit ready that will handle that. I am waiting for credentials for an app with maps to fully test.