OSDN Git Service

Don't show IME on pattern
authorPaul Lawrence <paullawrence@google.com>
Thu, 13 Mar 2014 21:05:48 +0000 (14:05 -0700)
committerPaul Lawrence <paullawrence@google.com>
Thu, 13 Mar 2014 21:05:48 +0000 (14:05 -0700)
Bug: 13327729
Change-Id: Ie83dda98558b66c824c15975310a8fb1835e900f

src/com/android/settings/CryptKeeper.java

index d974d00..de7b05a 100644 (file)
@@ -599,11 +599,13 @@ public class CryptKeeper extends Activity implements TextView.OnEditorActionList
         }
         // Asynchronously throw up the IME, since there are issues with requesting it to be shown
         // immediately.
-        mHandler.postDelayed(new Runnable() {
-            @Override public void run() {
-                imm.showSoftInputUnchecked(0, null);
-            }
-        }, 0);
+        if (mLockPatternView == null) {
+            mHandler.postDelayed(new Runnable() {
+                @Override public void run() {
+                    imm.showSoftInputUnchecked(0, null);
+                }
+            }, 0);
+        }
 
         updateEmergencyCallButtonState();
         // Notify the user in 120 seconds that we are waiting for him to enter the password.