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

Commit 8fd0cca4 authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed a bug where the icons where clipped off with owner info

Because we were only fading out the owner info, but modifying
its height, the icons would be clipped off.

Fixes: 134814774
Test: atest SystemUITests
Change-Id: If708ef17a327d220f6c21a0b9df866a215adbeb8
parent a50317e0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -30,6 +30,8 @@
        android:id="@+id/status_view_container"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:clipChildren="false"
        android:clipToPadding="false"
        android:orientation="vertical">
        <TextView
            android:id="@+id/logout"
+7 −0
Original line number Diff line number Diff line
@@ -61,6 +61,7 @@ public class KeyguardStatusView extends GridLayout implements
    private KeyguardClockSwitch mClockView;
    private TextView mOwnerInfo;
    private KeyguardSliceView mKeyguardSlice;
    private View mNotificationIcons;
    private Runnable mPendingMarqueeStart;
    private Handler mHandler;

@@ -173,6 +174,7 @@ public class KeyguardStatusView extends GridLayout implements
        super.onFinishInflate();
        mStatusViewContainer = findViewById(R.id.status_view_container);
        mLogoutView = findViewById(R.id.logout);
        mNotificationIcons = findViewById(R.id.clock_notification_icon_container);
        if (mLogoutView != null) {
            mLogoutView.setOnClickListener(this::onLogoutClicked);
        }
@@ -412,6 +414,11 @@ public class KeyguardStatusView extends GridLayout implements
            int expanded = mOwnerInfo.getBottom() + mOwnerInfo.getPaddingBottom();
            int toRemove = (int) ((expanded - collapsed) * ratio);
            setBottom(getMeasuredHeight() - toRemove);
            // We're using scrolling in order not to overload the translation which is used
            // when appearing the icons
            mNotificationIcons.setScrollY(toRemove);
        } else {
            mNotificationIcons.setScrollY(0);
        }
    }