From a7f9407f844813f5acffaca7019e4409eed78382 Mon Sep 17 00:00:00 2001 From: Evan Rosky Date: Fri, 5 May 2017 18:28:34 -0700 Subject: [PATCH] Make PopupWindows into root namespaces PopupWindows weren't marked as root namespaces. This was causing problems for focus-related searches since they often used isRootNamespace to detect when hitting the root of a tree. Bug: 38026649 Test: Ran Docs and verified that default cluster is detected properly in popup windows. Change-Id: If8e1db2bb83626d04770a18c0e5ccb88b3793de4 --- core/java/android/widget/PopupWindow.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/java/android/widget/PopupWindow.java b/core/java/android/widget/PopupWindow.java index 23ebadb3806a5..0c1a95f7ffd64 100644 --- a/core/java/android/widget/PopupWindow.java +++ b/core/java/android/widget/PopupWindow.java @@ -1354,6 +1354,7 @@ public class PopupWindow { } mDecorView = createDecorView(mBackgroundView); + mDecorView.setIsRootNamespace(true); // The background owner should be elevated so that it casts a shadow. mBackgroundView.setElevation(mElevation);