Skip to content

Commit

Permalink
Fix #4481
Browse files Browse the repository at this point in the history
  • Loading branch information
urlordjames committed Dec 28, 2020
1 parent 90d3c9c commit d45ce19
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2048,6 +2048,10 @@ private void setupBrightness() {
// 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) {
Expand Down

0 comments on commit d45ce19

Please sign in to comment.