Merge "Update PiP dismiss target on theme change" into sc-v2-dev
This commit is contained in:
@@ -463,6 +463,7 @@ public class PipController implements PipTransitionController.PipTransitionCallb
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void onOverlayChanged() {
|
private void onOverlayChanged() {
|
||||||
|
mTouchHandler.onOverlayChanged();
|
||||||
onDisplayChanged(new DisplayLayout(mContext, mContext.getDisplay()),
|
onDisplayChanged(new DisplayLayout(mContext, mContext.getDisplay()),
|
||||||
false /* saveRestoreSnapFraction */);
|
false /* saveRestoreSnapFraction */);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -259,6 +259,11 @@ public class PipTouchHandler {
|
|||||||
mPipDismissTargetHandler.updateMagneticTargetSize();
|
mPipDismissTargetHandler.updateMagneticTargetSize();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void onOverlayChanged() {
|
||||||
|
// onOverlayChanged is triggered upon theme change, update the dismiss target accordingly.
|
||||||
|
mPipDismissTargetHandler.init();
|
||||||
|
}
|
||||||
|
|
||||||
private boolean shouldShowResizeHandle() {
|
private boolean shouldShowResizeHandle() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user