commit | 6f007dfc46cf486e61efd924e93ed7344eb4e0c7 | [log] [tgz] |
---|---|---|
author | chaviw <chaviw@google.com> | Fri Feb 09 14:36:10 2018 -0800 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Mon Feb 12 22:36:46 2018 +0000 |
tree | b91b7cfee0218c01be296214a3883b2bc87df83a | |
parent | 15cf65cd5f9e29c4e8cbd53309aabd85d8c45f6a [diff] |
Prevent setting negative alpha for dim animations. When apply in the dim animation is called, the currentPlayTime value can be greater than the total duration. If that's the case, the alpha value would be set to a negative value. Instead, if the currentPlayTime is greater than duration, just set the final alpha value. Change-Id: I77b7c512cc8832c2a31e20d49c14550da2cff7cd Fixes: 73152600 Test: No more flashing dim (cherry picked from commit 4d133725d4b263018555cbba99bb3a2524508707)