Merge "Fix media side clipping on large screen portrait" into tm-dev am: cf55babfa8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18455154 Change-Id: I9458137f15cfa826da3d754081d5c5477f4b4209 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -97,7 +97,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 int[] mLocationTemp = new int[2];
|
||||||
|
|
||||||
private final RemoteInputQuickSettingsDisabler mRemoteInputQuickSettingsDisabler;
|
private final RemoteInputQuickSettingsDisabler mRemoteInputQuickSettingsDisabler;
|
||||||
private final MediaHost mQsMediaHost;
|
private final MediaHost mQsMediaHost;
|
||||||
@@ -653,9 +653,10 @@ public class QSFragment extends LifecycleFragment implements QS, CommandQueue.Ca
|
|||||||
}
|
}
|
||||||
mQSPanelScrollView.setClipBounds(mQsBounds);
|
mQSPanelScrollView.setClipBounds(mQsBounds);
|
||||||
|
|
||||||
mQSPanelScrollView.getLocationOnScreen(mTemp);
|
mQSPanelScrollView.getLocationOnScreen(mLocationTemp);
|
||||||
int top = mTemp[1];
|
int left = mLocationTemp[0];
|
||||||
mQsMediaHost.getCurrentClipping().set(0, top, getView().getMeasuredWidth(),
|
int top = mLocationTemp[1];
|
||||||
|
mQsMediaHost.getCurrentClipping().set(left, top, left + getView().getMeasuredWidth(),
|
||||||
top + mQSPanelScrollView.getMeasuredHeight()
|
top + mQSPanelScrollView.getMeasuredHeight()
|
||||||
- mQSPanelScrollView.getPaddingBottom());
|
- mQSPanelScrollView.getPaddingBottom());
|
||||||
}
|
}
|
||||||
@@ -800,8 +801,8 @@ public class QSFragment extends LifecycleFragment implements QS, CommandQueue.Ca
|
|||||||
* the QS container.
|
* the QS container.
|
||||||
*/
|
*/
|
||||||
private int getQsMinExpansionHeightForSplitShade() {
|
private int getQsMinExpansionHeightForSplitShade() {
|
||||||
getView().getLocationOnScreen(mTemp);
|
getView().getLocationOnScreen(mLocationTemp);
|
||||||
int top = mTemp[1];
|
int top = mLocationTemp[1];
|
||||||
// We want to get the original top position, so we subtract any translation currently set.
|
// We want to get the original top position, so we subtract any translation currently set.
|
||||||
int originalTop = (int) (top - getView().getTranslationY());
|
int originalTop = (int) (top - getView().getTranslationY());
|
||||||
// On split shade the QS view doesn't start at the top of the screen, so we need to add the
|
// On split shade the QS view doesn't start at the top of the screen, so we need to add the
|
||||||
@@ -865,7 +866,7 @@ public class QSFragment extends LifecycleFragment implements QS, CommandQueue.Ca
|
|||||||
indentingPw.println("mLastPanelFraction: " + mLastPanelFraction);
|
indentingPw.println("mLastPanelFraction: " + mLastPanelFraction);
|
||||||
indentingPw.println("mSquishinessFraction: " + mSquishinessFraction);
|
indentingPw.println("mSquishinessFraction: " + mSquishinessFraction);
|
||||||
indentingPw.println("mQsDisabled: " + mQsDisabled);
|
indentingPw.println("mQsDisabled: " + mQsDisabled);
|
||||||
indentingPw.println("mTemp: " + Arrays.toString(mTemp));
|
indentingPw.println("mTemp: " + Arrays.toString(mLocationTemp));
|
||||||
indentingPw.println("mShowCollapsedOnKeyguard: " + mShowCollapsedOnKeyguard);
|
indentingPw.println("mShowCollapsedOnKeyguard: " + mShowCollapsedOnKeyguard);
|
||||||
indentingPw.println("mLastKeyguardAndExpanded: " + mLastKeyguardAndExpanded);
|
indentingPw.println("mLastKeyguardAndExpanded: " + mLastKeyguardAndExpanded);
|
||||||
indentingPw.println("mState: " + StatusBarState.toString(mState));
|
indentingPw.println("mState: " + StatusBarState.toString(mState));
|
||||||
|
|||||||
Reference in New Issue
Block a user