Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40c610f6 authored by Alan Viverette's avatar Alan Viverette Committed by Android Git Automerger
Browse files

am 32f3e15c: am 625f3978: am 8da6bc53: Merge "Resize lock screen widgets when...

am 32f3e15c: am 625f3978: am 8da6bc53: Merge "Resize lock screen widgets when IME is open." into klp-dev

* commit '32f3e15c':
  Resize lock screen widgets when IME is open.
parents 9012ed46 32f3e15c
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -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;