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

Commit d31d0967 authored by Nader Jawad's avatar Nader Jawad
Browse files

Fixed default angle to be Orientation.LEFT_RIGHT

Fixed issue where in Android Q if no angle measurement
was specified the default gradient orientation of TOP_BOTTOM
was applied instead of the previous behavior of LEFT_RIGHT

Bug: 139822941
Test: Added CTS test to verify GradientDrawableTest
Change-Id: Ia8c53455740a29e1d123c90616066e16ddb4a241
(cherry picked from commit bd00e4c6)
parent db1bad4a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -207,7 +207,7 @@ public class GradientDrawable extends Drawable {
    }

    public GradientDrawable() {
        this(new GradientState(Orientation.TOP_BOTTOM, null), null);
        this(new GradientState(Orientation.LEFT_RIGHT, null), null);
    }

    /**