commit 9dd9e0c99dcb2db98ffbcf9ad97e58fab8d38640 Author: Craig Mautner <firstname.lastname@example.org> Date: Thu Nov 15 14:25:14 2012 -0800 Fix math errors causing black screen. DO NOT MERGE Turning off animations in the Developer options creates a ValueAnimator duration scale of 0. This is used as the denominator in RampAnimator which, if the numerator is also 0, sets mAnimatedValue to NaN. Rounding NaN to the nearest int produces 0 which is then assigned to mScreenBrightness in DisplayPowerState. A copy mistake which assigned mTransitionAnimationScale as the default value for mAnimatorDurationScale in WindowManagerService is also fixed here. Bug 7515609 fixed. Change-Id: I39f8d0a7abdd5a1fe70d757fe95fbddaf7a0ed51
If I'm reading the 4.2.2 changelog correctly, setting all animation scales to zero would trigger the SOD bug:
Fixed three months ago.
|Thread Tools||Search this Thread|