From 7c09f0b81a258279587b5c41becec90214baaf24 Mon Sep 17 00:00:00 2001 From: Issei Suzuki Date: Thu, 28 Feb 2019 14:45:50 +0100 Subject: Made inheritShowWhenLocked() API public. Bug: 126354499 Test: atest android.server.am.KeyguardTests Change-Id: Ie6c485ddcb59a640be48322a0e8f388ef49cb154 --- api/current.txt | 2 ++ api/system-current.txt | 2 -- api/test-current.txt | 1 - core/java/android/app/Activity.java | 5 +---- core/res/res/values/attrs_manifest.xml | 2 +- core/res/res/values/public.xml | 1 - 6 files changed, 4 insertions(+), 9 deletions(-) diff --git a/api/current.txt b/api/current.txt index 0176b9b6e12b..baeca265d341 100644 --- a/api/current.txt +++ b/api/current.txt @@ -768,6 +768,7 @@ package android { field public static final int indicatorRight = 16843022; // 0x101010e field public static final int indicatorStart = 16843729; // 0x10103d1 field public static final int inflatedId = 16842995; // 0x10100f3 + field public static final int inheritShowWhenLocked = 16844194; // 0x10105a2 field public static final int initOrder = 16842778; // 0x101001a field public static final int initialKeyguardLayout = 16843714; // 0x10103c2 field public static final int initialLayout = 16843345; // 0x1010251 @@ -3850,6 +3851,7 @@ package android.app { method public final void setFeatureDrawableUri(int, android.net.Uri); method public void setFinishOnTouchOutside(boolean); method public void setImmersive(boolean); + method public void setInheritShowWhenLocked(boolean); method public void setIntent(android.content.Intent); method public final void setMediaController(android.media.session.MediaController); method public void setPictureInPictureParams(@NonNull android.app.PictureInPictureParams); diff --git a/api/system-current.txt b/api/system-current.txt index 752640bb8d02..74e6eea8e69f 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -209,7 +209,6 @@ package android { public static final class R.attr { field public static final int allowClearUserDataOnFailedRestore = 16844198; // 0x10105a6 - field public static final int inheritShowWhenLocked = 16844194; // 0x10105a2 field public static final int isVrOnly = 16844152; // 0x1010578 field public static final int requiredSystemPropertyName = 16844133; // 0x1010565 field public static final int requiredSystemPropertyValue = 16844134; // 0x1010566 @@ -279,7 +278,6 @@ package android.app { method public boolean convertToTranslucent(android.app.Activity.TranslucentConversionListener, android.app.ActivityOptions); method @Deprecated public boolean isBackgroundVisibleBehind(); method @Deprecated public void onBackgroundVisibleBehindChanged(boolean); - method public void setInheritShowWhenLocked(boolean); } public static interface Activity.TranslucentConversionListener { diff --git a/api/test-current.txt b/api/test-current.txt index 684524e8987b..707bac5b6933 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -41,7 +41,6 @@ package android.app { public class Activity extends android.view.ContextThemeWrapper implements android.content.ComponentCallbacks2 android.view.KeyEvent.Callback android.view.LayoutInflater.Factory2 android.view.View.OnCreateContextMenuListener android.view.Window.Callback { method public void onMovedToDisplay(int, android.content.res.Configuration); - method public void setInheritShowWhenLocked(boolean); } public class ActivityManager { diff --git a/core/java/android/app/Activity.java b/core/java/android/app/Activity.java index 68b2de425b72..d1d4bd56f1c7 100644 --- a/core/java/android/app/Activity.java +++ b/core/java/android/app/Activity.java @@ -8366,11 +8366,8 @@ public class Activity extends ContextThemeWrapper * screen when this activity has another activity behind it with * the showWhenLock attribute set; {@code false} otherwise. * @see #setShowWhenLocked(boolean) - * See android.R.attr#inheritShowWhenLocked - * @hide + * @see android.R.attr#inheritShowWhenLocked */ - @SystemApi - @TestApi public void setInheritShowWhenLocked(boolean inheritShowWhenLocked) { try { ActivityTaskManager.getService().setInheritShowWhenLocked( diff --git a/core/res/res/values/attrs_manifest.xml b/core/res/res/values/attrs_manifest.xml index 6b8e000777d8..fc7b4cf05b56 100644 --- a/core/res/res/values/attrs_manifest.xml +++ b/core/res/res/values/attrs_manifest.xml @@ -965,7 +965,7 @@

The default value of this attribute is false. --> - -- cgit v1.2.3-59-g8ed1b