Merge "[Predictive Back] Fix small bottom gap in widget to home animation" into tm-qpr-dev am: 20a343e740
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21934197 Change-Id: I142754b178563b7ec325bba16eb806737354b1ce Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -236,8 +236,8 @@ public abstract class AbstractSlideInView<T extends Context & ActivityContext>
|
||||
/** Return extra space revealed during predictive back animation. */
|
||||
@Px
|
||||
protected int getBottomOffsetPx() {
|
||||
return (int) (getMeasuredHeight()
|
||||
* (1 - PREDICTIVE_BACK_MIN_SCALE) / 2);
|
||||
final int height = getMeasuredHeight();
|
||||
return (int) ((height / PREDICTIVE_BACK_MIN_SCALE - height) / 2);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user