mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2026-10-25 16:54:33 +00:00
Fix #4481
This commit is contained in:
1 parent
90d3c9ced0
commit
d45ce19b04
1 file changed
+4
@@ -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