Merge "Fix media clipping bounds" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0fe996258f
@@ -92,6 +92,7 @@ public class QSFragment extends LifecycleFragment implements QS, CommandQueue.Ca
|
|||||||
private float mLastPanelFraction;
|
private float mLastPanelFraction;
|
||||||
private float mSquishinessFraction = 1;
|
private float mSquishinessFraction = 1;
|
||||||
private boolean mQsDisabled;
|
private boolean mQsDisabled;
|
||||||
|
private int[] mTemp = new int[2];
|
||||||
|
|
||||||
private final RemoteInputQuickSettingsDisabler mRemoteInputQuickSettingsDisabler;
|
private final RemoteInputQuickSettingsDisabler mRemoteInputQuickSettingsDisabler;
|
||||||
private final MediaHost mQsMediaHost;
|
private final MediaHost mQsMediaHost;
|
||||||
@@ -608,8 +609,11 @@ public class QSFragment extends LifecycleFragment implements QS, CommandQueue.Ca
|
|||||||
}
|
}
|
||||||
mQSPanelScrollView.setClipBounds(mQsBounds);
|
mQSPanelScrollView.setClipBounds(mQsBounds);
|
||||||
|
|
||||||
mQsMediaHost.getCurrentClipping().set(0, 0, getView().getMeasuredWidth(),
|
mQSPanelScrollView.getLocationOnScreen(mTemp);
|
||||||
mQSPanelScrollView.getMeasuredHeight() - mQSPanelScrollView.getPaddingBottom());
|
int top = mTemp[1];
|
||||||
|
mQsMediaHost.getCurrentClipping().set(0, top, getView().getMeasuredWidth(),
|
||||||
|
top + mQSPanelScrollView.getMeasuredHeight()
|
||||||
|
- mQSPanelScrollView.getPaddingBottom());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateMediaPositions() {
|
private void updateMediaPositions() {
|
||||||
|
|||||||
Reference in New Issue
Block a user