summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorAlan Viverette <alanv@google.com>2014-11-13 15:14:36 -0800
committerAlan Viverette <alanv@google.com>2014-11-13 15:14:36 -0800
commitd03963ce364e9946f1bd603c2fcf07a49088af19 (patch)
tree4162a5ed02c4b3933a357156febb77f8bc0742cb /graphics
parent136f54153e412485feae39cf3fe86392f01a2bd6 (diff)
downloadframeworks_base-d03963ce364e9946f1bd603c2fcf07a49088af19.zip
frameworks_base-d03963ce364e9946f1bd603c2fcf07a49088af19.tar.gz
frameworks_base-d03963ce364e9946f1bd603c2fcf07a49088af19.tar.bz2
Set current degrees when updating RotateDrawable from typed array
This regressed after enabling theming in RotateDrawable. BUG: 18288235 Change-Id: I61a7b2c178253ed2d550fa0636e27e021ac9eb64
Diffstat (limited to 'graphics')
-rw-r--r--graphics/java/android/graphics/drawable/RotateDrawable.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/graphics/java/android/graphics/drawable/RotateDrawable.java b/graphics/java/android/graphics/drawable/RotateDrawable.java
index 3304b33..1ee44fb 100644
--- a/graphics/java/android/graphics/drawable/RotateDrawable.java
+++ b/graphics/java/android/graphics/drawable/RotateDrawable.java
@@ -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) {