summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorEvan Laird <evanlaird@google.com>2017-07-06 11:41:21 -0400
committerEvan Laird <evanlaird@google.com>2017-07-06 11:41:21 -0400
commitae5b7002ea206302abf106696d60f90ef2cf3e64 (patch)
treec0d5eada91b4f995a176d2393db112e69f2a8b9f /tools/aapt2/java/JavaClassGenerator.cpp
parent5c5f1f641934d16d5bebb11ac19c9bd868964f12 (diff)
Fix RTL mobile signal drawing out of bounds in QS Edit
For some reason, the canvas is twice the size of the drawable's bounds, and our RTL code was taking the whole canvas, shifting by its own width and reversing the x-coords. When the canvas is too wide, it causes the signal to draw outside of the bounds. To fix it, just shift the coordinates by the width of the drawable itself. I.e., reverse in the drawable's own bounds. Note that there is still an issue where sometimes a non-reversed signal drawable is used. This doesn't fix that. Change-Id: I6cfda0ab6b9f50c969410dd4f89499b66854ebbe Fixes: 63164522 Test: visual
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions