From bd00e4c6c0e56f20d7274817477035c4d4924c3d Mon Sep 17 00:00:00 2001 From: Nader Jawad Date: Thu, 22 Aug 2019 11:24:51 -0700 Subject: 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 --- graphics/java/android/graphics/drawable/GradientDrawable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'graphics/java/android') diff --git a/graphics/java/android/graphics/drawable/GradientDrawable.java b/graphics/java/android/graphics/drawable/GradientDrawable.java index b9945cc735d8..e6eaa6964d49 100644 --- a/graphics/java/android/graphics/drawable/GradientDrawable.java +++ b/graphics/java/android/graphics/drawable/GradientDrawable.java @@ -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); } /** -- cgit v1.2.3-59-g8ed1b