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

Commit d03963ce authored by Alan Viverette's avatar Alan Viverette
Browse files

Set current degrees when updating RotateDrawable from typed array

This regressed after enabling theming in RotateDrawable.

BUG: 18288235
Change-Id: I61a7b2c178253ed2d550fa0636e27e021ac9eb64
parent 136f5415
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -497,6 +497,7 @@ public class RotateDrawable extends Drawable implements Drawable.Callback {

        state.mFromDegrees = a.getFloat(R.styleable.RotateDrawable_fromDegrees, state.mFromDegrees);
        state.mToDegrees = a.getFloat(R.styleable.RotateDrawable_toDegrees, state.mToDegrees);
        state.mCurrentDegrees = state.mFromDegrees;

        final Drawable dr = a.getDrawable(R.styleable.RotateDrawable_drawable);
        if (dr != null) {