Implement "pause/play" toggle on hardware keyboard space button.
This commit is contained in:
parent
f0af148ede
commit
0569989126
2 changed files with 3 additions and 0 deletions
|
|
@ -1850,6 +1850,7 @@ public final class VideoDetailFragment
|
||||||
|
|
||||||
if (fullscreen) {
|
if (fullscreen) {
|
||||||
hideSystemUiIfNeeded();
|
hideSystemUiIfNeeded();
|
||||||
|
binding.overlayPlayPauseButton.requestFocus();
|
||||||
} else {
|
} else {
|
||||||
showSystemUi();
|
showSystemUi();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -675,6 +675,8 @@
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:padding="10dp"
|
android:padding="10dp"
|
||||||
android:scaleType="center"
|
android:scaleType="center"
|
||||||
|
android:focusable="true"
|
||||||
|
android:focusedByDefault="true"
|
||||||
app:srcCompat="?attr/ic_play_arrow"
|
app:srcCompat="?attr/ic_play_arrow"
|
||||||
tools:ignore="ContentDescription,RtlHardcoded" />
|
tools:ignore="ContentDescription,RtlHardcoded" />
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue