From 7d6fa83a99f77dc28874fc9b25b4a9eba2b55e53 Mon Sep 17 00:00:00 2001 From: Jason Monk Date: Fri, 3 Feb 2017 15:16:21 -0500 Subject: [PATCH] Fix the tests Window types changed, need to use a different one Test: runtest systemui Change-Id: Iac2641feb49e54af98ac523363d387647552eb0a --- .../tests/src/com/android/systemui/utils/ViewUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/tests/src/com/android/systemui/utils/ViewUtils.java b/packages/SystemUI/tests/src/com/android/systemui/utils/ViewUtils.java index 01996ca858359..202c4cfda7825 100644 --- a/packages/SystemUI/tests/src/com/android/systemui/utils/ViewUtils.java +++ b/packages/SystemUI/tests/src/com/android/systemui/utils/ViewUtils.java @@ -29,7 +29,7 @@ public class ViewUtils { public static void attachView(View view) { WindowManager.LayoutParams lp = new WindowManager.LayoutParams( LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT, - LayoutParams.TYPE_SYSTEM_ALERT, + LayoutParams.TYPE_APPLICATION_OVERLAY, 0, PixelFormat.TRANSLUCENT); Handler handler = new Handler(Looper.getMainLooper()); handler.post(() -> InstrumentationRegistry.getContext()