Merge "Animate backlight quickly when display state request to change or power mode changed"
This commit is contained in:
@@ -673,6 +673,9 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
|
|||||||
slowChange = false;
|
slowChange = false;
|
||||||
}
|
}
|
||||||
mAppliedDimming = true;
|
mAppliedDimming = true;
|
||||||
|
} else if (mAppliedDimming) {
|
||||||
|
slowChange = false;
|
||||||
|
mAppliedDimming = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If low power mode is enabled, cut the brightness level by half
|
// If low power mode is enabled, cut the brightness level by half
|
||||||
@@ -685,6 +688,9 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
|
|||||||
slowChange = false;
|
slowChange = false;
|
||||||
}
|
}
|
||||||
mAppliedLowPower = true;
|
mAppliedLowPower = true;
|
||||||
|
} else if (mAppliedLowPower) {
|
||||||
|
slowChange = false;
|
||||||
|
mAppliedLowPower = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Animate the screen brightness when the screen is on or dozing.
|
// Animate the screen brightness when the screen is on or dozing.
|
||||||
|
|||||||
Reference in New Issue
Block a user