mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-31 07:13:00 +00:00 
			
		
		
		
	Merge pull request #5562 from mbarashkov/hardware_keyboard_space_shortcut_v2
Implement "pause/play" toggle on hardware keyboard space button.
This commit is contained in:
		| @@ -1853,6 +1853,7 @@ public final class VideoDetailFragment | ||||
|  | ||||
|         if (fullscreen) { | ||||
|             hideSystemUiIfNeeded(); | ||||
|             binding.overlayPlayPauseButton.requestFocus(); | ||||
|         } else { | ||||
|             showSystemUi(); | ||||
|         } | ||||
|   | ||||
| @@ -703,6 +703,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" /> | ||||
|  | ||||
|   | ||||
| @@ -675,6 +675,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" /> | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Tobi
					Tobi