Merge "[Predictive Back] Fix small bottom gap in widget to home animation" into tm-qpr-dev

This commit is contained in:
Fengjiang Li
2023-03-10 17:34:24 +00:00
committed by Android (Google) Code Review

View File

@@ -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);
}
/**