summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Miller <jaggies@google.com>2013-11-14 14:40:22 -0800
committerJim Miller <jaggies@google.com>2013-11-14 14:40:22 -0800
commitfb3d5cad48876dbd366fd8b562529d355d2428db (patch)
treed70b028b5e545cc1ee74cd6c81b16355fdc757b4
parentb1ded62f3fd8afa2507fc8d284522019dc1e31e2 (diff)
downloadpackages_apps_Settings-fb3d5cad48876dbd366fd8b562529d355d2428db.tar.gz
packages_apps_Settings-fb3d5cad48876dbd366fd8b562529d355d2428db.tar.bz2
packages_apps_Settings-fb3d5cad48876dbd366fd8b562529d355d2428db.zip
Don't show keyguard on top of CryptKeeper
The fix in Change Ifbe4cdf40e3b76d2069ecace940f85fa58f31187 causes keyguard to be more aggressive about showing itself. CryptKeeper itself should explicitly dismiss keyguard. Fixes bug 11680832 Change-Id: I87287762b73bdffc6f1800379f02f70f4bd873a8
-rw-r--r--src/com/android/settings/CryptKeeper.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/settings/CryptKeeper.java b/src/com/android/settings/CryptKeeper.java
index 7057f1a49..23ec70ede 100644
--- a/src/com/android/settings/CryptKeeper.java
+++ b/src/com/android/settings/CryptKeeper.java
@@ -43,6 +43,7 @@ import android.util.Log;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
+import android.view.WindowManager;
import android.view.View.OnClickListener;
import android.view.View.OnKeyListener;
import android.view.View.OnTouchListener;
@@ -557,6 +558,9 @@ public class CryptKeeper extends Activity implements TextView.OnEditorActionList
// Notify the user in 120 seconds that we are waiting for him to enter the password.
mHandler.removeMessages(MESSAGE_NOTIFY);
mHandler.sendEmptyMessageDelayed(MESSAGE_NOTIFY, 120 * 1000);
+
+ // Dismiss keyguard while this screen is showing.
+ getWindow().addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD);
}
/**