Loading packages/SystemUI/res-keyguard/layout/keyguard_status_view.xml +2 −0 Original line number Diff line number Diff line Loading @@ -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" Loading packages/SystemUI/src/com/android/keyguard/KeyguardStatusView.java +7 −0 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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); } Loading Loading @@ -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); } } Loading Loading
packages/SystemUI/res-keyguard/layout/keyguard_status_view.xml +2 −0 Original line number Diff line number Diff line Loading @@ -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" Loading
packages/SystemUI/src/com/android/keyguard/KeyguardStatusView.java +7 −0 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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); } Loading Loading @@ -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); } } Loading