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
1 file changed