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

Commit 3b379560 authored by Deepanshu Gupta's avatar Deepanshu Gupta
Browse files

Fix missing initial moveto in path definition.

The Path_Delegate was missing a moveTo call which resulted in
IllegalPathStateException when rendering the ProgressBar.

Change-Id: Ibdae5f90ffd0a71a3de4ba945238239faa0b18b2
parent 1716baa6
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -608,6 +608,9 @@ public final class Path_Delegate {
     * @param y The y-coordinate of the end of a line
     */
    private void lineTo(float x, float y) {
        if (isEmpty()) {
            mPath.moveTo(mLastX = 0, mLastY = 0);
        }
        mPath.lineTo(mLastX = x, mLastY = y);
    }