OSDN Git Service

Fix progress tint attributes
authorAlan Viverette <alanv@google.com>
Mon, 6 Apr 2015 22:01:23 +0000 (15:01 -0700)
committerAlan Viverette <alanv@google.com>
Mon, 6 Apr 2015 22:01:23 +0000 (15:01 -0700)
Change-Id: Ie22f5177144ecbe981f6b342236714a3ce520cbc

core/java/android/widget/ProgressBar.java

index 50d701a..16353e8 100644 (file)
@@ -316,7 +316,7 @@ public class ProgressBar extends View {
                 mProgressTintInfo = new ProgressTintInfo();
             }
             mProgressTintInfo.mProgressTintMode = Drawable.parseTintMode(a.getInt(
-                    R.styleable.ProgressBar_progressBackgroundTintMode, -1), null);
+                    R.styleable.ProgressBar_progressTintMode, -1), null);
             mProgressTintInfo.mHasProgressTintMode = true;
         }
 
@@ -334,7 +334,7 @@ public class ProgressBar extends View {
                 mProgressTintInfo = new ProgressTintInfo();
             }
             mProgressTintInfo.mProgressBackgroundTintMode = Drawable.parseTintMode(a.getInt(
-                    R.styleable.ProgressBar_progressTintMode, -1), null);
+                    R.styleable.ProgressBar_progressBackgroundTintMode, -1), null);
             mProgressTintInfo.mHasProgressBackgroundTintMode = true;
         }
 
@@ -365,7 +365,7 @@ public class ProgressBar extends View {
             mProgressTintInfo.mHasSecondaryProgressTint = true;
         }
 
-        if (a.hasValue(R.styleable.ProgressBar_indeterminateTint)) {
+        if (a.hasValue(R.styleable.ProgressBar_indeterminateTintMode)) {
             if (mProgressTintInfo == null) {
                 mProgressTintInfo = new ProgressTintInfo();
             }