Do not allow focus to escape from open DrawerLayout
Upstream DrawerLayout does override addFocusables, but incorrectly checks for isDrawerOpen instread of isDrawerVisible
This commit is contained in:
parent
02c945bddd
commit
9329c2f7f1
2 changed files with 71 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.drawerlayout.widget.DrawerLayout
|
||||
<org.schabi.newpipe.views.FocusAwareDrawerLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/drawer_layout"
|
||||
|
|
@ -24,4 +24,4 @@
|
|||
|
||||
<include layout="@layout/drawer_layout"/>
|
||||
|
||||
</androidx.drawerlayout.widget.DrawerLayout>
|
||||
</org.schabi.newpipe.views.FocusAwareDrawerLayout>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue