OSDN Git Service

Re-@hide activity-level FLAG_IMMERSIVE and helpers.
authorJohn Spurlock <jspurlock@google.com>
Wed, 4 Sep 2013 15:26:01 +0000 (11:26 -0400)
committerJohn Spurlock <jspurlock@google.com>
Wed, 4 Sep 2013 15:28:50 +0000 (15:28 +0000)
Un-@hidden in api 18, but probably should not have been.

The framework currently takes no action based on the flag,
making the docs misleading.

Bug:10460791
Change-Id: If6cc8791a85710897c8fe77cf6682d1460e3416e

api/current.txt
core/java/android/app/Activity.java
core/java/android/content/pm/ActivityInfo.java

index 099b1a5..f415182 100644 (file)
@@ -2771,7 +2771,6 @@ package android.app {
     method public final boolean isChild();
     method public boolean isDestroyed();
     method public boolean isFinishing();
-    method public boolean isImmersive();
     method public boolean isTaskRoot();
     method public final deprecated android.database.Cursor managedQuery(android.net.Uri, java.lang.String[], java.lang.String, java.lang.String[], java.lang.String);
     method public boolean moveTaskToBack(boolean);
@@ -2861,7 +2860,6 @@ package android.app {
     method public final void setFeatureDrawableResource(int, int);
     method public final void setFeatureDrawableUri(int, android.net.Uri);
     method public void setFinishOnTouchOutside(boolean);
-    method public void setImmersive(boolean);
     method public void setIntent(android.content.Intent);
     method public final void setProgress(int);
     method public final void setProgressBarIndeterminate(boolean);
@@ -6995,7 +6993,6 @@ package android.content.pm {
     field public static final int FLAG_FINISH_ON_CLOSE_SYSTEM_DIALOGS = 256; // 0x100
     field public static final int FLAG_FINISH_ON_TASK_LAUNCH = 2; // 0x2
     field public static final int FLAG_HARDWARE_ACCELERATED = 512; // 0x200
-    field public static final int FLAG_IMMERSIVE = 2048; // 0x800
     field public static final int FLAG_MULTIPROCESS = 1; // 0x1
     field public static final int FLAG_NO_HISTORY = 128; // 0x80
     field public static final int FLAG_SINGLE_USER = 1073741824; // 0x40000000
index e02410a..c209b7e 100644 (file)
@@ -4870,7 +4870,7 @@ public class Activity extends ContextThemeWrapper
     }
 
     /**
-     * Bit indicating that this activity is "immersive" and should not be
+     * @hide Bit indicating that this activity is "immersive" and should not be
      * interrupted by notifications if possible.
      *
      * This value is initially set by the manifest property
@@ -4953,7 +4953,7 @@ public class Activity extends ContextThemeWrapper
     }
 
     /**
-     * Adjust the current immersive mode setting.
+     * @hide Adjust the current immersive mode setting.
      *
      * Note that changing this value will have no effect on the activity's
      * {@link android.content.pm.ActivityInfo} structure; that is, if
index 8154bca..4f8a48c 100644 (file)
@@ -161,7 +161,7 @@ public class ActivityInfo extends ComponentInfo
      */
     public static final int FLAG_SHOW_ON_LOCK_SCREEN = 0x0400;
     /**
-     * Bit in {@link #flags} corresponding to an immersive activity
+     * @hide Bit in {@link #flags} corresponding to an immersive activity
      * that wishes not to be interrupted by notifications.
      * Applications that hide the system notification bar with
      * {@link android.view.WindowManager.LayoutParams#FLAG_FULLSCREEN}