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

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20513645

Change-Id: I3470579c9221f2aa7a3f5c3b1e0d69125612130b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Michał Brzeziński
2022-11-22 12:06:02 +00:00
committed by Automerger Merge Worker

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();
}