OSDN Git Service

Fix horizontal position of tooltip in a Dialog
authorVladislav Kaznacheev <kaznacheev@google.com>
Wed, 29 Nov 2017 17:30:11 +0000 (09:30 -0800)
committerVladislav Kaznacheev <kaznacheev@google.com>
Wed, 29 Nov 2017 17:30:11 +0000 (09:30 -0800)
commitbdd2c25ef69148e52dd406615efbd4e5ad41b335
treeaea2ee932482295a6a46c27cdfc25a5c89b73483
parentdd74774c863b964d60d37288d598efbd167bdc0f
Fix horizontal position of tooltip in a Dialog

When calculating the horizontal offset, use the top level view's width
instead of getWindowVisibleDisplayFrame (which is misleading for Dialog
windows).

Bug: 69911773
Test: manual
Change-Id: I040917d5beb123cc137da5a0c926a45a12e66234
core/java/com/android/internal/view/TooltipPopup.java