Merge "Set current degrees when updating RotateDrawable from typed array" into lmp-mr1-dev

This commit is contained in:
Alan Viverette
2014-11-14 01:52:12 +00:00
committed by Android (Google) Code Review

View File

@@ -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) {