Merge "AOD/LS - Switch to small clock with notifications and bypass"

This commit is contained in:
Matt Pietal
2021-01-22 17:52:02 +00:00
committed by Android (Google) Code Review

View File

@@ -896,9 +896,8 @@ public class NotificationPanelViewController extends PanelViewController {
int bottomPadding = Math.max(mIndicationBottomPadding, mAmbientIndicationBottomPadding);
int clockPreferredY = mKeyguardStatusViewController.getClockPreferredY(totalHeight);
boolean bypassEnabled = mKeyguardBypassController.getBypassEnabled();
final boolean hasVisibleNotifications = !bypassEnabled
&& (mNotificationStackScrollLayoutController.getVisibleNotificationCount() != 0
|| mMediaDataManager.hasActiveMedia());
final boolean hasVisibleNotifications = mNotificationStackScrollLayoutController
.getVisibleNotificationCount() != 0 || mMediaDataManager.hasActiveMedia();
mKeyguardStatusViewController.setHasVisibleNotifications(hasVisibleNotifications);
mClockPositionAlgorithm.setup(mStatusBarMinHeight, totalHeight - bottomPadding,
mNotificationStackScrollLayoutController.getIntrinsicContentHeight(),