diff options
| author | 2018-12-19 14:11:30 +0900 | |
|---|---|---|
| committer | 2019-01-08 10:54:18 +0900 | |
| commit | 809cbc53e01689872ade84262b581224c9fcbf08 (patch) | |
| tree | 6c1c69875345203cb78f2843b53f0fda84818b18 /libs/androidfw/ResourceUtils.cpp | |
| parent | 85a834352c023a159b635789fa2b5ab091dc4e44 (diff) | |
Fix restoring animator_duration_scale back to default
WindowManagerService.setAnimationScale() sends an asynchronous message to
Handler to persist a setting value, but WindowManagerServiceRule cleans up
all remaining messages from Handler when a test finishes. Thus there may be
a chance that global animator_duration_scale setting is left unchanged. This
CL eliminates removing pending messages and makes them finish instead.
Fixes: 121229219
Test: Pass all presubmit tests for Window manager.
$ atest --test-mapping frameworks/base/services/core/java/com/android/server/wm
$ adb shell settings get global animator_duration_scale
1.0
Change-Id: I97a920cd221d9e0ed3f5cbf2172d9188b39d0ca6
Diffstat (limited to 'libs/androidfw/ResourceUtils.cpp')
0 files changed, 0 insertions, 0 deletions