kopia lustrzana https://github.com/TeamNewPipe/NewPipe
Merge pull request #5283 from urlordjames/brightfix
disable restoring brightness if brightness gesture is disabledpull/5317/head
commit
137fbb34d9
|
@ -2048,6 +2048,10 @@ public final class VideoDetailFragment
|
||||||
// Apply system brightness when the player is not in fullscreen
|
// Apply system brightness when the player is not in fullscreen
|
||||||
restoreDefaultBrightness();
|
restoreDefaultBrightness();
|
||||||
} else {
|
} else {
|
||||||
|
// Do not restore if user has disabled brightness gesture
|
||||||
|
if (!PlayerHelper.isBrightnessGestureEnabled(activity)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
// Restore already saved brightness level
|
// Restore already saved brightness level
|
||||||
final float brightnessLevel = PlayerHelper.getScreenBrightness(activity);
|
final float brightnessLevel = PlayerHelper.getScreenBrightness(activity);
|
||||||
if (brightnessLevel == lp.screenBrightness) {
|
if (brightnessLevel == lp.screenBrightness) {
|
||||||
|
|
Ładowanie…
Reference in New Issue