Skip to content

Commit

Permalink
Merge pull request TeamNewPipe/NewPipe#5562 from mbarashkov/hardware_…
Browse files Browse the repository at this point in the history
…keyboard_space_shortcut_v2

Implement "pause/play" toggle on hardware keyboard space button.
  • Loading branch information
TobiGr authored and tossj committed Apr 21, 2021
1 parent af01535 commit 217afa9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1853,6 +1853,7 @@ public void onFullscreenStateChanged(final boolean fullscreen) {

if (fullscreen) {
hideSystemUiIfNeeded();
binding.overlayPlayPauseButton.requestFocus();
} else {
showSystemUi();
}
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/layout-large-land/fragment_video_detail.xml
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,8 @@
android:background="?attr/selectableItemBackground"
android:padding="10dp"
android:scaleType="center"
android:focusable="true"
android:focusedByDefault="true"
app:srcCompat="?attr/ic_play_arrow"
tools:ignore="ContentDescription,RtlHardcoded" />

Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/layout/fragment_video_detail.xml
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,8 @@
android:background="?attr/selectableItemBackground"
android:padding="10dp"
android:scaleType="center"
android:focusable="true"
android:focusedByDefault="true"
app:srcCompat="?attr/ic_play_arrow"
tools:ignore="ContentDescription,RtlHardcoded" />

Expand Down

0 comments on commit 217afa9

Please sign in to comment.