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:
Alexander 2019-09-20 16:48:34 +07:00 committed by Alexander--
parent 02c945bddd
commit 9329c2f7f1
2 changed files with 71 additions and 2 deletions

View file

@ -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>