Merge "Fixed issue where negative angles were not parsed properly" into qt-dev am: 741e818ef3

am: 86992bb7e4

Change-Id: Ib67589cf124cb5b2caa231f351ecc6f1dba42468
This commit is contained in:
Nader Jawad
2019-06-06 18:17:07 -07:00
committed by android-build-merger

View File

@@ -1757,7 +1757,7 @@ public class GradientDrawable extends Drawable {
}
int angle = (int) a.getFloat(R.styleable.GradientDrawableGradient_angle, st.mAngle);
st.mAngle = angle % 360;
st.mAngle = ((angle % 360) + 360) % 360; // offset negative angle measures
final TypedValue tv = a.peekValue(R.styleable.GradientDrawableGradient_gradientRadius);
if (tv != null) {