[automerge] Fix media clipping bounds 2p: f6a7dcf04f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17351974 Change-Id: I2f5c687eb19936106c85ff6e968bc162bc728893
This commit is contained in:
committed by
Presubmit Automerger Backend
commit
aa59e83fb5
@@ -92,6 +92,7 @@ public class QSFragment extends LifecycleFragment implements QS, CommandQueue.Ca
|
||||
private float mLastPanelFraction;
|
||||
private float mSquishinessFraction = 1;
|
||||
private boolean mQsDisabled;
|
||||
private int[] mTemp = new int[2];
|
||||
|
||||
private final RemoteInputQuickSettingsDisabler mRemoteInputQuickSettingsDisabler;
|
||||
private final MediaHost mQsMediaHost;
|
||||
@@ -600,8 +601,11 @@ public class QSFragment extends LifecycleFragment implements QS, CommandQueue.Ca
|
||||
}
|
||||
mQSPanelScrollView.setClipBounds(mQsBounds);
|
||||
|
||||
mQsMediaHost.getCurrentClipping().set(0, 0, getView().getMeasuredWidth(),
|
||||
mQSPanelScrollView.getMeasuredHeight() - mQSPanelScrollView.getPaddingBottom());
|
||||
mQSPanelScrollView.getLocationOnScreen(mTemp);
|
||||
int top = mTemp[1];
|
||||
mQsMediaHost.getCurrentClipping().set(0, top, getView().getMeasuredWidth(),
|
||||
top + mQSPanelScrollView.getMeasuredHeight()
|
||||
- mQSPanelScrollView.getPaddingBottom());
|
||||
}
|
||||
|
||||
private void updateMediaPositions() {
|
||||
|
||||
Reference in New Issue
Block a user