summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorCraig Mautner <cmautner@google.com>2012-11-15 14:25:14 -0800
committerCraig Mautner <cmautner@google.com>2012-11-29 00:11:50 -0800
commit9dd9e0c99dcb2db98ffbcf9ad97e58fab8d38640 (patch)
tree059319290fa792cdc612ad3badb6cfc340aae2cd /tools/aapt2/java/JavaClassGenerator_test.cpp
parent7be52cbc33157e4700b7d04e69d1149cd80e9096 (diff)
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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions