Skip to content
Commit a24659d1 authored by Lyn Han's avatar Lyn Han
Browse files

Make media squishy for portrait shade open and close

Propagate squishFraction from QSFragment to MediaHostState.

In MediaViewController, apply squishFraction to both
cached and uncached UMO viewStates.

Remove mTopPadding (qsHeight / space above lockscreen notifs)
from expansionFraction (aka squishFraction) calculations to avoid
the following recursion:
=> squishFraction changes UMO height
=> new UMO height changes mTopPadding
=> mTopPadding changes total stack height
=> new stack height changes squishFraction

Use expandedFraction calculated in PVC instead of recalculating it
in NSSL.

Bug: 217583474
Test: MediaViewControllerTest
Test: open/close portrait shade => squishy UMO

Change-Id: Ifdada015563394a96c3d80ae527c68ac7323d4c2
parent 26b0f4c1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment