-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix onBackPressed() deprecation in NavigationDrawerActivity
Created a back callback for closing the drawer and connected it to the drawer's listener to enable and disable it dynamically. The code was added to initNavigationDrawer method which all screens that appear in the drawer(DeckPicker, CardBrowser and Reviewer) call in onCreate(). Having both the drawer opening and the back gesture happening on swipe from the screen's left edge isn't great.
- Loading branch information
Showing
1 changed file
with
9 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters