Skip to content

Commit a0bbcd2

Browse files
committed
Fix player queue/segments list buttons not focusable with DPAD
Now the in-player play queue and the segments list are closeable
1 parent 627b4c8 commit a0bbcd2

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

app/src/main/java/org/schabi/newpipe/player/Player.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3215,6 +3215,9 @@ public void closeItemsList() {
32153215
binding.itemsListPanel.setTranslationY(
32163216
-binding.itemsListPanel.getHeight() * 5);
32173217
});
3218+
3219+
// clear focus, otherwise a white rectangle remains on top of the player
3220+
binding.itemsListClose.clearFocus();
32183221
binding.playPauseButton.requestFocus();
32193222
}
32203223
}

app/src/main/res/layout/player.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -545,9 +545,7 @@
545545
<RelativeLayout
546546
android:id="@+id/itemsListControl"
547547
android:layout_width="match_parent"
548-
android:layout_height="60dp"
549-
android:clickable="true"
550-
android:focusable="true">
548+
android:layout_height="60dp">
551549

552550
<androidx.appcompat.widget.AppCompatTextView
553551
android:id="@+id/itemsListHeaderTitle"

0 commit comments

Comments
 (0)