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

Commit df0391bb authored by Danny Baumann's avatar Danny Baumann Committed by Gerrit Code Review
Browse files

Merge "Frameworks: take mPieScale into account to calculate estimated PIE width" into cm-10.1

parents e1cf3650 b5beaa50
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -551,6 +551,7 @@ public class PieLayout extends FrameLayout implements View.OnTouchListener {
                estimatedWidth = Math.max(estimatedWidth, slice.estimateWidth());
            }
        }
        estimatedWidth = estimatedWidth  * mPieScale;

        if (mPosition == Position.LEFT || mPosition == Position.RIGHT) {
            mCenter.x = mPadding + (int) ((getWidth() - 2 * mPadding) * mPosition.FACTOR);