From 84729730e159593d8b63d72724b79dd49aa1b5c6 Mon Sep 17 00:00:00 2001 From: Galia Peycheva Date: Wed, 15 Apr 2020 10:50:38 +0200 Subject: Remove setting low profile in Basic dreams The DreamService takes care of removing the system bars when the dream is active. Low profile is being deprecated. Bug: 151749301 Test: m && flash && atest DreamManagerServiceTests && manually check that system bars are hidden when dream is active Change-Id: I0c446ad987dcf9c66afe7bec712c0e024ac4ea45 --- Android.bp | 2 +- src/com/android/dreams/basic/Colors.java | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Android.bp b/Android.bp index c9a65a8..7381271 100644 --- a/Android.bp +++ b/Android.bp @@ -2,5 +2,5 @@ android_app { name: "BasicDreams", // Only compile source java files in this apk. srcs: ["src/**/*.java"], - platform_apis: true, + sdk_version: "current", } diff --git a/src/com/android/dreams/basic/Colors.java b/src/com/android/dreams/basic/Colors.java index 9a75146..d30c174 100644 --- a/src/com/android/dreams/basic/Colors.java +++ b/src/com/android/dreams/basic/Colors.java @@ -67,7 +67,6 @@ public class Colors extends DreamService implements SurfaceHolder.Callback { public void onAttachedToWindow() { super.onAttachedToWindow(); setInteractive(false); - setLowProfile(true); setFullscreen(true); setContentView(mSurfaceView); } -- cgit v1.2.3