Merge "Fix Maps PiP entrance to not bounce down and up" into udc-dev am: 0a3b65233d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23183762 Change-Id: I4e974c4279767c1f6ae95fc5a782fe6e69166d13 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -946,10 +946,15 @@ public class PipController implements PipTransitionController.PipTransitionCallb
|
|||||||
mPipBoundsState.getDisplayBounds().right,
|
mPipBoundsState.getDisplayBounds().right,
|
||||||
mPipBoundsState.getDisplayBounds().bottom);
|
mPipBoundsState.getDisplayBounds().bottom);
|
||||||
mPipBoundsState.addNamedUnrestrictedKeepClearArea(LAUNCHER_KEEP_CLEAR_AREA_TAG, rect);
|
mPipBoundsState.addNamedUnrestrictedKeepClearArea(LAUNCHER_KEEP_CLEAR_AREA_TAG, rect);
|
||||||
|
updatePipPositionForKeepClearAreas();
|
||||||
} else {
|
} else {
|
||||||
mPipBoundsState.removeNamedUnrestrictedKeepClearArea(LAUNCHER_KEEP_CLEAR_AREA_TAG);
|
mPipBoundsState.removeNamedUnrestrictedKeepClearArea(LAUNCHER_KEEP_CLEAR_AREA_TAG);
|
||||||
|
// postpone moving in response to hide of Launcher in case there's another change
|
||||||
|
mMainExecutor.removeCallbacks(mMovePipInResponseToKeepClearAreasChangeCallback);
|
||||||
|
mMainExecutor.executeDelayed(
|
||||||
|
mMovePipInResponseToKeepClearAreasChangeCallback,
|
||||||
|
PIP_KEEP_CLEAR_AREAS_DELAY);
|
||||||
}
|
}
|
||||||
updatePipPositionForKeepClearAreas();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setLauncherAppIconSize(int iconSizePx) {
|
private void setLauncherAppIconSize(int iconSizePx) {
|
||||||
|
|||||||
Reference in New Issue
Block a user