Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 20a343e7 authored by Fengjiang Li's avatar Fengjiang Li Committed by Android (Google) Code Review
Browse files

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

parents 5ddc6ab4 1898d16e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
    }

    /**