Bug 1476165 - Part 1b: Fix Android Lint - ResourceType: Wrong Resource Type. r=nalexander
authorTudor-Gabriel Vîjială <tvijiala@mozilla.com>
Sat, 21 Jul 2018 21:32:02 +0100
changeset 822809 dd0c6edcb03108750b06feaf3d24f5f12e4ef0e8
parent 822808 6be5d9b0ac9dad2619163ab3281d1149986258db
child 822810 c1bbc1019bd3bde7be1bedace2f8fde85a1270fa
push id117477
push userbmo:sfoster@mozilla.com
push dateThu, 26 Jul 2018 00:31:55 +0000
reviewersnalexander
bugs1476165
milestone63.0a1
Bug 1476165 - Part 1b: Fix Android Lint - ResourceType: Wrong Resource Type. r=nalexander MozReview-Commit-ID: AA6OwGFCNXp
mobile/android/base/java/org/mozilla/gecko/widget/AnimatedProgressBar.java
--- a/mobile/android/base/java/org/mozilla/gecko/widget/AnimatedProgressBar.java
+++ b/mobile/android/base/java/org/mozilla/gecko/widget/AnimatedProgressBar.java
@@ -313,17 +313,17 @@ public class AnimatedProgressBar extends
         super.setProgress(progress);
     }
 
     private Drawable buildDrawable(@NonNull Drawable original,
                                    boolean isWrap,
                                    int duration,
                                    @InterpolatorRes int itplId) {
         if (isWrap) {
-            final Interpolator interpolator = (itplId > 0)
+            final Interpolator interpolator = (itplId != 0)
                     ? AnimationUtils.loadInterpolator(getContext(), itplId)
                     : null;
             return new ShiftDrawable(original, duration, interpolator);
         } else {
             return original;
         }
     }