summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorMihai Popa <popam@google.com>2018-04-27 16:32:44 +0100
committerMihai Popa <popam@google.com>2018-05-02 10:30:29 +0000
commit227034b863d6720a3fb1438efa52fd6a8fcf4c09 (patch)
tree815aec2fbadf900bef1ac033d39f2ad47acce520 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent0450a167592afe509fc068c87adfe9b452323e20 (diff)
[Magnifier-42] Fix bug in window positioning
The position of the magnifier surface is always clamped inside its parent surface. As of Ic5b5f6ca687db8b5d842f0ab20eac70f1fd2f85e, we are always trying to make the magnifier surface a child of the main application window, if possible (before, if the magnified view was a SurfaceView, we were making the magnifier a child of the SurfaceView's surface). However, the CL did not also update the clamping, continuing to clamp to the SurfaceView space when the magnified view was a SurfaceView (even if the magnifier was child of the main window). This was making the magnifier window to be wrongly positioned on the screen when the magnified view is a SurfaceView. The current CL fixes this. Bug: 78876353 Test: manual testing Test: atest CtsWidgetTestCases:android.widget.cts.MagnifierTest Change-Id: I63f2b185f58e62e8ad6eadf788e641fb1de07b04
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions