mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-30 23:03:00 +00:00 
			
		
		
		
	Merge pull request #5283 from urlordjames/brightfix
disable restoring brightness if brightness gesture is disabled
This commit is contained in:
		| @@ -2048,6 +2048,10 @@ public final class VideoDetailFragment | ||||
|             // Apply system brightness when the player is not in fullscreen | ||||
|             restoreDefaultBrightness(); | ||||
|         } else { | ||||
|             // Do not restore if user has disabled brightness gesture | ||||
|             if (!PlayerHelper.isBrightnessGestureEnabled(activity)) { | ||||
|                 return; | ||||
|             } | ||||
|             // Restore already saved brightness level | ||||
|             final float brightnessLevel = PlayerHelper.getScreenBrightness(activity); | ||||
|             if (brightnessLevel == lp.screenBrightness) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Robin
					Robin