From a0bbcd2fee8b678516aa57db8689d4711e0ab70a Mon Sep 17 00:00:00 2001 From: Stypox Date: Sun, 27 Feb 2022 15:25:08 +0100 Subject: [PATCH] Fix player queue/segments list buttons not focusable with DPAD Now the in-player play queue and the segments list are closeable --- app/src/main/java/org/schabi/newpipe/player/Player.java | 3 +++ app/src/main/res/layout/player.xml | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/player/Player.java b/app/src/main/java/org/schabi/newpipe/player/Player.java index 85a50cb23..97c06dce9 100644 --- a/app/src/main/java/org/schabi/newpipe/player/Player.java +++ b/app/src/main/java/org/schabi/newpipe/player/Player.java @@ -3215,6 +3215,9 @@ public final class Player implements binding.itemsListPanel.setTranslationY( -binding.itemsListPanel.getHeight() * 5); }); + + // clear focus, otherwise a white rectangle remains on top of the player + binding.itemsListClose.clearFocus(); binding.playPauseButton.requestFocus(); } } diff --git a/app/src/main/res/layout/player.xml b/app/src/main/res/layout/player.xml index 1fc769c18..839b98680 100644 --- a/app/src/main/res/layout/player.xml +++ b/app/src/main/res/layout/player.xml @@ -545,9 +545,7 @@ + android:layout_height="60dp">