commit | fe06764c8538c3eb8b81ad0f6276599c3c46b15f | [log] [tgz] |
---|---|---|
author | Vladislav Kaznacheev <kaznacheev@google.com> | Mon Jan 23 13:14:16 2017 -0800 |
committer | Vladislav Kaznacheev <kaznacheev@google.com> | Mon Jan 23 13:27:14 2017 -0800 |
tree | 88bd6b57284dc57c8c85044b2d0e7a81dd6306c1 | |
parent | 407e22bbc73044df9398f9a06be3253df58671d8 [diff] |
Fix TooltipCompat position for subpanels When the anchor view is inside a subpanel (such as a popup menu), the tooltip positioning logic cannot rely on View.getWindowVisibleDisplayFrame, since it returns Rect(-10000,-10000,10000, 10000). Detect such cases and try approximating the correct window frame by other means. Bug: 34076597 Test: Manual Change-Id: I36bc003d38eef3094b8beca384da930bc1d77eaf