Merge "Set current degrees when updating RotateDrawable from typed array" into lmp-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0c24237686
@@ -497,6 +497,7 @@ public class RotateDrawable extends Drawable implements Drawable.Callback {
|
|||||||
|
|
||||||
state.mFromDegrees = a.getFloat(R.styleable.RotateDrawable_fromDegrees, state.mFromDegrees);
|
state.mFromDegrees = a.getFloat(R.styleable.RotateDrawable_fromDegrees, state.mFromDegrees);
|
||||||
state.mToDegrees = a.getFloat(R.styleable.RotateDrawable_toDegrees, state.mToDegrees);
|
state.mToDegrees = a.getFloat(R.styleable.RotateDrawable_toDegrees, state.mToDegrees);
|
||||||
|
state.mCurrentDegrees = state.mFromDegrees;
|
||||||
|
|
||||||
final Drawable dr = a.getDrawable(R.styleable.RotateDrawable_drawable);
|
final Drawable dr = a.getDrawable(R.styleable.RotateDrawable_drawable);
|
||||||
if (dr != null) {
|
if (dr != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user