mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-31 07:13:00 +00:00 
			
		
		
		
	Fix controls shown below queue/segments list when using DPAD
Also invert if
This commit is contained in:
		| @@ -3815,8 +3815,9 @@ public final class Player implements | |||||||
|             case KeyEvent.KEYCODE_DPAD_DOWN: |             case KeyEvent.KEYCODE_DPAD_DOWN: | ||||||
|             case KeyEvent.KEYCODE_DPAD_RIGHT: |             case KeyEvent.KEYCODE_DPAD_RIGHT: | ||||||
|             case KeyEvent.KEYCODE_DPAD_CENTER: |             case KeyEvent.KEYCODE_DPAD_CENTER: | ||||||
|                 if (binding.getRoot().hasFocus() && !binding.playbackControlRoot.hasFocus()) { |                 if ((binding.getRoot().hasFocus() && !binding.playbackControlRoot.hasFocus()) | ||||||
|                     // do not interfere with focus in playlist etc. |                         || isQueueVisible) { | ||||||
|  |                     // do not interfere with focus in playlist and play queue etc. | ||||||
|                     return false; |                     return false; | ||||||
|                 } |                 } | ||||||
|  |  | ||||||
| @@ -3824,15 +3825,13 @@ public final class Player implements | |||||||
|                     return true; |                     return true; | ||||||
|                 } |                 } | ||||||
|  |  | ||||||
|                 if (!isControlsVisible()) { |                 if (isControlsVisible()) { | ||||||
|                     if (!isQueueVisible) { |                     hideControls(DEFAULT_CONTROLS_DURATION, DPAD_CONTROLS_HIDE_TIME); | ||||||
|                         binding.playPauseButton.requestFocus(); |                 } else { | ||||||
|                     } |                     binding.playPauseButton.requestFocus(); | ||||||
|                     showControlsThenHide(); |                     showControlsThenHide(); | ||||||
|                     showSystemUIPartially(); |                     showSystemUIPartially(); | ||||||
|                     return true; |                     return true; | ||||||
|                 } else { |  | ||||||
|                     hideControls(DEFAULT_CONTROLS_DURATION, DPAD_CONTROLS_HIDE_TIME); |  | ||||||
|                 } |                 } | ||||||
|                 break; |                 break; | ||||||
|         } |         } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Stypox
					Stypox