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

Commit 7c9dca2d authored by Jon Miranda's avatar Jon Miranda
Browse files

Fix PathParser error when parsing app close interpolator in RTL languages.

Setting locale to english so that the numbers don't get reverted

Bug: 188552618
Test: set language to arabic, swipe up to home
Change-Id: I736c83984b472d9ad09207927743c87b18637db4
parent 07414d5c
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ import com.android.systemui.plugins.ResourceProvider;

import java.util.ArrayList;
import java.util.List;

import java.util.Locale;

/**
 * Applies spring forces to animate from a starting rect to a target rect,
@@ -353,7 +353,8 @@ public class RectFSpringAnim2 extends RectFSpringAnim {

    private Interpolator getAppCloseInterpolator(Context context) {
        ResourceProvider rp = DynamicResource.provider(context);
        String path = String.format("M 0,0 C %f, %f, %f, %f, %f, %f C %f, %f, %f, %f, 1, 1",
        String path = String.format(Locale.ENGLISH,
                "M 0,0 C %f, %f, %f, %f, %f, %f C %f, %f, %f, %f, 1, 1",
                rp.getFloat(R.dimen.c1_a),
                rp.getFloat(R.dimen.c1_b),
                rp.getFloat(R.dimen.c1_c),