From dd98961be67a7024dcbdedbcba5e903416d633ef Mon Sep 17 00:00:00 2001 From: Andrii Kulian Date: Thu, 21 Feb 2019 12:13:28 -0800 Subject: Read system decor support status from WM There is no way to add FLAG_SHOULD_SHOW_SYSTEM_DECORATIONS to hardware or simulated displays, so wallpaper, IME and nav bar were not showing up even when desktop mode developer option was enabled. Bug: 123199549 Bug: 125007644 Bug: 124073468 Bug: 124073384 Test: Enable force desktop mode, reboot, create simulated display Change-Id: Id6f2f3746407467f20c1f26e735b84653e34625d --- core/java/android/view/Display.java | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'core/java/android/view/Display.java') diff --git a/core/java/android/view/Display.java b/core/java/android/view/Display.java index 94a9a1c0ff30..5df7341892e2 100644 --- a/core/java/android/view/Display.java +++ b/core/java/android/view/Display.java @@ -21,7 +21,6 @@ import static android.Manifest.permission.CONFIGURE_DISPLAY_COLOR_MODE; import android.annotation.IntDef; import android.annotation.Nullable; import android.annotation.RequiresPermission; -import android.annotation.TestApi; import android.annotation.UnsupportedAppUsage; import android.app.KeyguardManager; import android.content.res.CompatibilityInfo; @@ -231,7 +230,6 @@ public final class Display { * bar, navigation bar, home activity or IME. *

* - * @see #supportsSystemDecorations * @hide */ // TODO (b/114338689): Remove the flag and use IWindowManager#setShouldShowSystemDecors @@ -906,18 +904,6 @@ public final class Display { return mDisplayInfo.removeMode; } - /** - * Returns whether this display should support showing system decorations. - * - * @see #FLAG_SHOULD_SHOW_SYSTEM_DECORATIONS - * @hide - */ - @TestApi - // TODO (b/114338689): Remove the method and use IWindowManager#shouldShowSystemDecors - public boolean supportsSystemDecorations() { - return (mDisplayInfo.flags & FLAG_SHOULD_SHOW_SYSTEM_DECORATIONS) != 0; - } - /** * Returns the display's HDR capabilities. * -- cgit v1.2.3