Merge "Fixing jumping HUN when starting swiping" into tm-qpr-dev

This commit is contained in:
Michał Brzeziński
2022-11-22 11:28:05 +00:00
committed by Android (Google) Code Review

View File

@@ -1553,7 +1553,7 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable
final int pinnedHeight = firstVisibleSection != null
? firstVisibleSection.getFirstVisibleChild().getPinnedHeadsUpHeight()
: 0;
return mHeadsUpInset + pinnedHeight;
return mHeadsUpInset - mAmbientState.getStackTopMargin() + pinnedHeight;
}
return getMinExpansionHeight();
}