From 0cec85b5322905e6458b224fb20dec328cc53e1a Mon Sep 17 00:00:00 2001 From: Alan Viverette Date: Thu, 10 Oct 2013 17:46:03 -0700 Subject: [PATCH] Resize lock screen widgets when IME is open. BUG: 9942708 Change-Id: I05330b1d70aa79f72e42c118dda5e1c5f18bf45a --- .../com/android/keyguard/MultiPaneChallengeLayout.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/Keyguard/src/com/android/keyguard/MultiPaneChallengeLayout.java b/packages/Keyguard/src/com/android/keyguard/MultiPaneChallengeLayout.java index 528f98834f368..4cfc9dc7f305e 100644 --- a/packages/Keyguard/src/com/android/keyguard/MultiPaneChallengeLayout.java +++ b/packages/Keyguard/src/com/android/keyguard/MultiPaneChallengeLayout.java @@ -195,11 +195,9 @@ public class MultiPaneChallengeLayout extends ViewGroup implements ChallengeLayo // and that the window is LAYOUT_IN_SCREEN. virtualHeight = mDisplayMetrics.heightPixels - root.getPaddingTop() - mInsets.top; } - if (lp.childType == LayoutParams.CHILD_TYPE_WIDGET || - lp.childType == LayoutParams.CHILD_TYPE_USER_SWITCHER) { - // Always measure the widget pager/user switcher as if there were no IME insets - // on the window. We want to avoid resizing widgets when possible as it can - // be ugly/expensive. This lets us simply clip them instead. + if (lp.childType == LayoutParams.CHILD_TYPE_USER_SWITCHER) { + // Always measure the user switcher as if there were no IME insets + // on the window. return virtualHeight - heightUsed; } else if (lp.childType == LayoutParams.CHILD_TYPE_PAGE_DELETE_DROP_TARGET) { return height;