OSDN Git Service

Remove unnecessary layout request from Keyguard
authorAdrian Roos <roosa@google.com>
Thu, 22 May 2014 18:52:07 +0000 (20:52 +0200)
committerAdrian Roos <roosa@google.com>
Fri, 23 May 2014 12:38:34 +0000 (14:38 +0200)
Reverts the fix for 7137389 that does no longer apply after
the architectural change of Keyguard and SystemUI.

Bug: 15088101
Change-Id: Ic9234a9e69363b65b6e121eab498cb8d74660c91

packages/Keyguard/src/com/android/keyguard/KeyguardViewBase.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBouncer.java

index a9206e7..48b7be9 100644 (file)
@@ -237,11 +237,6 @@ public abstract class KeyguardViewBase extends FrameLayout implements SecurityCa
         if (DEBUG) Log.d(TAG, "screen on, instance " + Integer.toHexString(hashCode()));
         mSecurityContainer.showPrimarySecurityScreen(false);
         mSecurityContainer.onResume(KeyguardSecurityView.SCREEN_ON);
-
-        // This is a an attempt to fix bug 7137389 where the device comes back on but the entire
-        // layout is blank but forcing a layout causes it to reappear (e.g. with with
-        // hierarchyviewer).
-        requestLayout();
         requestFocus();
     }
 
index d8e1766..6336cf7 100644 (file)
@@ -64,7 +64,6 @@ public class KeyguardBouncer {
         // Keyguard. If we need to authenticate, show the bouncer.
         if (!mKeyguardView.dismiss()) {
             mRoot.setVisibility(View.VISIBLE);
-            mKeyguardView.requestFocus();
             mKeyguardView.onResume();
         }
     }