diff options
author | Vladislav Kaznacheev <kaznacheev@google.com> | 2017-02-09 11:43:28 -0800 |
---|---|---|
committer | Vladislav Kaznacheev <kaznacheev@google.com> | 2017-02-09 11:43:28 -0800 |
commit | afaa932ecee84c4d2d0104b22508d3047dd69a14 (patch) | |
tree | 814aa583e98dbb272fbf8aa00d350ee66bc90c92 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | d0e1022237305e374e34c9f7afcdff373d5f0290 (diff) |
Do not move PopupWindow when its anchor is detached
The current PopupWindow implementation might call
the anchor view's getLocationInWindow even if the anchor
is currently detached from the window (and the location is
a meaningless (0,0)). This results in the popup jumping to
the top of the screen.
This patch is adding tracking of the anchor's attachment state.
The position is never updated while the anchor is detached.
When the anchor is re-attached, the popup position is updated.
Bug: 34853580
Test: manual (see bug)
Change-Id: Icca1b9b558a70ee3edbe6236e076d2d08a1f8f11
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions