From d03a5558350cb6adff68aaf97ad4ee946bcd91a1 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Mon, 10 Sep 2012 20:46:36 -0700 Subject: [PATCH] Attempt to fix blank keyguard issue This is an attempt to fix bug 7137389. It forces a layout when the screen comes back on, which should alleviate the issue. Change-Id: I00a3829f1662a8db99d947856ca11660b4bfb805 --- .../internal/policy/impl/keyguard/KeyguardHostView.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java b/policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java index 863f4f82fd62d..41eddbc305453 100644 --- a/policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java +++ b/policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java @@ -496,6 +496,11 @@ public class KeyguardHostView extends KeyguardViewBase { if (DEBUG) Log.d(TAG, "screen on"); showSecurityScreen(mCurrentSecuritySelection); getSecurityView(mCurrentSecuritySelection).onResume(); + + // 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(); } @Override