diff --git a/api/current.txt b/api/current.txt index 54814c798c5ad..efd2170a8314a 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 b831785fc5233..b646db347b6e6 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -211,7 +211,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 @@ -281,7 +280,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 b220325f1e0d0..bafd1d536513f 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 68b2de425b724..d1d4bd56f1c77 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 6b8e000777d83..fc7b4cf05b569 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. --> -