summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorhh83.kim <hh83.kim@samsung.com>2019-10-02 13:11:30 +0900
committerVishnu Nair <vishnun@google.com>2020-02-26 10:10:44 -0800
commit4ebacd3abfff5555c92358b85a1a6fc08707f086 (patch)
tree1bff2c5b4d2a3658e3b1587a58682928a9c6fb3b /tools/aapt2/java/JavaClassGenerator_test.cpp
parent969e1e2759c0fad8862df2a9b4467e2e0bfb4594 (diff)
Fix PopupWindow's wrong location
Sometimes, we have seen cases that Popupwindow is located in the wrong place. So we suggest some modification of logics in tryFitVertical and tryFitHorizontal methods of PopupWindow. In those methods, there exists a statement whether the positions of anchor (anchorTopInScreen and anchorLeftInScreen) are bigger than 0. However, there are some cases that those values become positive even though corresponding popup windows are not visible to user (places out of window area), especially on devices with displaycuout, or apps with multiwindow modes. So we modify to the anchor's top and left position values should be compared with top and left value of displayFrame, respectively, not 0. Test: CtsWidgetTestCases:test android.widget.cts.PopupWindowTest Bug: b/135749682
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions