Fix the tests

Window types changed, need to use a different one

Test: runtest systemui
Change-Id: Iac2641feb49e54af98ac523363d387647552eb0a
This commit is contained in:
Jason Monk
2017-02-03 15:16:21 -05:00
parent 2a12324268
commit 7d6fa83a99

View File

@@ -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()