1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-08-05 02:20:38 +00:00
NewPipe/app/src/main
Alexander-- 381b491845 Prevent foocus from escaping open navigation drawer
When contents of NewPipe navigation drawer change, NavigationMenuView
(which is actually a RecyclerView) removes and re-adds all its adapter
children, which leads to temporary loss of focus on currently focused drawer
child. This situation was not anticipated by developers of original
support library DrawerLayout: while NavigationMenuView itself is able
to keep focus from escaping via onRequestFocusInDescendants(),
the implementation of that method in DrawerLayout does not pass focus
to previously focused View. In fact it does not pass focus correctly at all
because the AOSP implementation of that method does not call addFocusables()
and simply focuses the first available VISIBLE View, without regard
to state of drawers.
2020-03-15 09:37:29 +06:59
..
assets add themes to license dialog 2017-09-22 11:07:17 +02:00
java Prevent foocus from escaping open navigation drawer 2020-03-15 09:37:29 +06:59
res Merge remote-tracking branch 'newpipe/dev' into rebase 2020-03-15 09:08:01 +06:59
AndroidManifest.xml Merge remote-tracking branch 'newpipe/dev' into rebase 2020-03-15 09:08:01 +06:59