pull/5283/head
urlordjames 2020-12-26 12:47:08 -05:00
rodzic 90d3c9ced0
commit d45ce19b04
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -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) {