diff options
| author | Adrian Roos <roosa@google.com> | 2019-04-08 16:23:43 +0200 |
|---|---|---|
| committer | Adrian Roos <roosa@google.com> | 2019-04-11 16:50:32 +0200 |
| commit | 6eb1ed3a6160186c0b7fc519d2983acb978d7632 (patch) | |
| tree | a543a45a579c7186286193de7771450a538d38db /core/java/android/view/Window.java | |
| parent | c53df3a9cc4bf297d39b198e551be423db23acc3 (diff) | |
System Bars: API to ensure contrast when app requested transparent bar
Bug: 129533768
Test: atest EnsureBarContrastTest
Change-Id: I42facefc15dce227193a4db5f368184e1b5ebd32
Diffstat (limited to 'core/java/android/view/Window.java')
| -rw-r--r-- | core/java/android/view/Window.java | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/core/java/android/view/Window.java b/core/java/android/view/Window.java index a9463e998bbb..fc9d8c269538 100644 --- a/core/java/android/view/Window.java +++ b/core/java/android/view/Window.java @@ -2340,10 +2340,11 @@ public abstract class Window { * <p>When the status bar color has a non-zero alpha value, the value of this * property has no effect. * - * @see android.R.attr#ensureStatusBarContrastWhenTransparent - * @hide pending API + * @see android.R.attr#ensuringStatusBarContrastWhenTransparent + * @see #isEnsuringStatusBarContrastWhenTransparent + * @see #setStatusBarColor */ - public void setEnsureStatusBarContrastWhenTransparent(boolean ensureContrast) { + public void setEnsuringStatusBarContrastWhenTransparent(boolean ensureContrast) { } /** @@ -2353,11 +2354,12 @@ public abstract class Window { * <p>When the status bar color has a non-zero alpha value, the value of this * property has no effect. * - * @see android.R.attr#ensureStatusBarContrastWhenTransparent * @return true, if the system is ensuring contrast, false otherwise. - * @hide pending API + * @see android.R.attr#ensuringStatusBarContrastWhenTransparent + * @see #setEnsuringStatusBarContrastWhenTransparent + * @see #setStatusBarColor */ - public boolean isEnsureStatusBarContrastWhenTransparent() { + public boolean isEnsuringStatusBarContrastWhenTransparent() { return false; } @@ -2372,10 +2374,11 @@ public abstract class Window { * <p>When the navigation bar color has a non-zero alpha value, the value of this * property has no effect. * - * @see android.R.attr#ensureNavigationBarContrastWhenTransparent - * @hide pending API + * @see android.R.attr#ensuringNavigationBarContrastWhenTransparent + * @see #isEnsuringNavigationBarContrastWhenTransparent + * @see #setNavigationBarColor */ - public void setEnsureNavigationBarContrastWhenTransparent(boolean ensureContrast) { + public void setEnsuringNavigationBarContrastWhenTransparent(boolean ensureContrast) { } /** @@ -2386,10 +2389,11 @@ public abstract class Window { * property has no effect. * * @return true, if the system is ensuring contrast, false otherwise. - * @see android.R.attr#ensureNavigationBarContrastWhenTransparent - * @hide pending API + * @see android.R.attr#ensuringNavigationBarContrastWhenTransparent + * @see #setEnsuringNavigationBarContrastWhenTransparent + * @see #setNavigationBarColor */ - public boolean isEnsureNavigationBarContrastWhenTransparent() { + public boolean isEnsuringNavigationBarContrastWhenTransparent() { return false; } |
