Bug 1476165 - Part 1b: Fix Android Lint - ResourceType: Wrong Resource Type. r=nalexander draft
authorTudor-Gabriel Vîjială <tvijiala@mozilla.com>
Sat, 21 Jul 2018 21:32:02 +0100
changeset 821546 89ece1d03a99
parent 821545 742bb6ef56d2
child 821547 c504c04c8425
push id117129
push userbmo:tvijiala@mozilla.com
push dateMon, 23 Jul 2018 16:06:46 +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;
         }
     }