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

Commit 0f87a72d authored by Svetoslav Ganov's avatar Svetoslav Ganov
Browse files

Addressing comments in 74bdd216.

Change-Id: I807733dabc18bc8894c777d19c4d0e3ca809476c
parent 45942ca0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -69,8 +69,8 @@
        </com.android.internal.policy.impl.keyguard.KeyguardSecurityContainer>

        <ImageButton
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_width="match_parent"
              android:layout_height="@dimen/kg_widget_pager_bottom_padding"
              androidprv:layout_childType="expandChallengeHandle"
              android:focusable="true"
              android:background="@null"
+6 −1
Original line number Diff line number Diff line
@@ -891,7 +891,12 @@ public class SlidingChallengeLayout extends ViewGroup implements ChallengeLayout
                child.setAlpha(getChallengeAlpha());
                child.layout(left, bottom - childHeight, left + childWidth, bottom);
            } else if (lp.childType == LayoutParams.CHILD_TYPE_EXPAND_CHALLENGE_HANDLE) {
                child.layout(0, b - mChallengeBottomBound, width, b);
                final int center = (paddingLeft + width - paddingRight) / 2;
                final int left = center - child.getMeasuredWidth() / 2;
                final int right = left + child.getMeasuredWidth();
                final int bottom = height - paddingBottom - lp.bottomMargin;
                final int top = bottom - child.getMeasuredHeight();
                child.layout(left, top, right, bottom);
            } else {
                // Non-challenge views lay out from the upper left, layered.
                child.layout(paddingLeft + lp.leftMargin,