1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-23 08:30:44 +00:00

Fix player queue/segments list buttons not focusable with DPAD

Now the in-player play queue and the segments list are closeable
This commit is contained in:
Stypox 2022-02-27 15:25:08 +01:00
parent 627b4c8b14
commit a0bbcd2fee
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23
2 changed files with 4 additions and 3 deletions

View File

@ -3215,6 +3215,9 @@ public final class Player implements
binding.itemsListPanel.setTranslationY( binding.itemsListPanel.setTranslationY(
-binding.itemsListPanel.getHeight() * 5); -binding.itemsListPanel.getHeight() * 5);
}); });
// clear focus, otherwise a white rectangle remains on top of the player
binding.itemsListClose.clearFocus();
binding.playPauseButton.requestFocus(); binding.playPauseButton.requestFocus();
} }
} }

View File

@ -545,9 +545,7 @@
<RelativeLayout <RelativeLayout
android:id="@+id/itemsListControl" android:id="@+id/itemsListControl"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="60dp" android:layout_height="60dp">
android:clickable="true"
android:focusable="true">
<androidx.appcompat.widget.AppCompatTextView <androidx.appcompat.widget.AppCompatTextView
android:id="@+id/itemsListHeaderTitle" android:id="@+id/itemsListHeaderTitle"