diff options
author | Miranda Kephart <mkephart@google.com> | 2020-02-24 13:12:41 -0500 |
---|---|---|
committer | Miranda Kephart <mkephart@google.com> | 2020-02-24 14:08:34 -0500 |
commit | 2750ad0d59551d14eb7667e28b44a713ce3b2c16 (patch) | |
tree | 3295c3d53c9c61218a19c6fe51742823c9e65df7 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 14ebab3b195446eabadc8eafe30005c5cf5bb4d8 (diff) |
Fix screenshot scaling bug
Occasionally, the screenshot preview would not reach the correct
final scale, instead getting "stuck" at some larger size. This is
because there was no final condition for the scale, so the final
state depended on exactly which values the ValueAnimator update
listener was called with. Setting a final state correctly fixes
this problem.
(Also fixes the equivalent bug for the x position.)
Bug: 150134649
Test: manual -- there was not a reliable repro for the bug, but it
hasn't been seen since making the change
Change-Id: Ia383ca9336db382fd54087ce12accafd35b48a22
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions