mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-30 23:03:00 +00:00 
			
		
		
		
	Merge pull request #4939 from Atemu/dont-exit-fullscreen-on-rotation
VideoDetailFragment: Don't exit fullscreen on rotation in tablet UI
This commit is contained in:
		| @@ -277,7 +277,9 @@ public final class VideoDetailFragment | ||||
|             // If the video is playing but orientation changed | ||||
|             // let's make the video in fullscreen again | ||||
|             checkLandscape(); | ||||
|         } else if (player.isFullscreen() && !player.isVerticalVideo()) { | ||||
|         } else if (player.isFullscreen() && !player.isVerticalVideo() | ||||
|                 // Tablet UI has orientation-independent fullscreen | ||||
|                 && !DeviceUtils.isTablet(activity)) { | ||||
|             // Device is in portrait orientation after rotation but UI is in fullscreen. | ||||
|             // Return back to non-fullscreen state | ||||
|             player.toggleFullscreen(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Tobias Groza
					Tobias Groza