Merge "Fix split-shade expansion animation on non-lockscreen." into tm-qpr-dev am: c4a0640361
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18661006 Change-Id: I8e4311e7283e59c1c4e7c107982ffe369cb1b49d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1371,12 +1371,7 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable
|
|||||||
*/
|
*/
|
||||||
@ShadeViewRefactor(RefactorComponent.COORDINATOR)
|
@ShadeViewRefactor(RefactorComponent.COORDINATOR)
|
||||||
public void setExpandedHeight(float height) {
|
public void setExpandedHeight(float height) {
|
||||||
final float shadeBottom = getHeight() - getEmptyBottomMargin();
|
|
||||||
final boolean skipHeightUpdate = shouldSkipHeightUpdate();
|
final boolean skipHeightUpdate = shouldSkipHeightUpdate();
|
||||||
if (!skipHeightUpdate) {
|
|
||||||
final float expansionFraction = MathUtils.saturate(height / shadeBottom);
|
|
||||||
mAmbientState.setExpansionFraction(expansionFraction);
|
|
||||||
}
|
|
||||||
updateStackPosition();
|
updateStackPosition();
|
||||||
|
|
||||||
if (!skipHeightUpdate) {
|
if (!skipHeightUpdate) {
|
||||||
|
|||||||
@@ -808,6 +808,7 @@ public abstract class PanelViewController {
|
|||||||
mExpansionDragDownAmountPx = h;
|
mExpansionDragDownAmountPx = h;
|
||||||
mExpandedFraction = Math.min(1f,
|
mExpandedFraction = Math.min(1f,
|
||||||
maxPanelHeight == 0 ? 0 : mExpandedHeight / maxPanelHeight);
|
maxPanelHeight == 0 ? 0 : mExpandedHeight / maxPanelHeight);
|
||||||
|
mAmbientState.setExpansionFraction(mExpandedFraction);
|
||||||
onHeightUpdated(mExpandedHeight);
|
onHeightUpdated(mExpandedHeight);
|
||||||
updatePanelExpansionAndVisibility();
|
updatePanelExpansionAndVisibility();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user