OSDN Git Service

Fix doc for FLAG_DISMISS_KEYGUARD
authorJorim Jaggi <jjaggi@google.com>
Tue, 11 Apr 2017 22:55:57 +0000 (15:55 -0700)
committerJorim Jaggi <jjaggi@google.com>
Tue, 11 Apr 2017 22:55:57 +0000 (15:55 -0700)
Test: n/a
Change-Id: I7e8b0e22895e5efe839dc0f73bcfda6a67f52026
Fix: 36023803

core/java/android/view/WindowManager.java

index 666ccf4..8445b37 100644 (file)
@@ -978,8 +978,9 @@ public interface WindowManager extends ViewManager {
          * seeing this window, unless {@link #FLAG_SHOW_WHEN_LOCKED} has
          * also been set.
          * @deprecated Use {@link #FLAG_SHOW_WHEN_LOCKED} or {@link KeyguardManager#dismissKeyguard}
-         * instead. The Keyguard should never be dismissed automatically repeatedly as it also
-         * guards against unintentional touches.
+         * instead. Since keyguard was dismissed all the time as long as an activity with this flag
+         * on its window was focused, keyguard couldn't guard against unintentional touches on the
+         * screen, which isn't desired.
          */
         @Deprecated
         public static final int FLAG_DISMISS_KEYGUARD = 0x00400000;