Merge "Do not add quick settings padding to the content height when in split shade mode" into sc-v2-dev

This commit is contained in:
TreeHugger Robot
2021-05-27 18:59:15 +00:00
committed by Android (Google) Code Review

View File

@@ -1214,7 +1214,14 @@ public class NotificationPanelViewController extends PanelViewController {
updateClockAppearance(); updateClockAppearance();
} }
if (!onKeyguard) { if (!onKeyguard) {
stackScrollerPadding = getUnlockedStackScrollerPadding(); if (mShouldUseSplitNotificationShade) {
// Quick settings are not on the top of the notifications
// when in split shade mode (they are on the left side),
// so we should not add a padding for them
stackScrollerPadding = 0;
} else {
stackScrollerPadding = getUnlockedStackScrollerPadding();
}
} else { } else {
stackScrollerPadding = mClockPositionResult.stackScrollerPaddingExpanded; stackScrollerPadding = mClockPositionResult.stackScrollerPaddingExpanded;
} }