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 428359 dd0c6edcb031
parent 428358 6be5d9b0ac9d
child 428360 c1bbc1019bd3
push id34333
push usercbrindusan@mozilla.com
push dateWed, 25 Jul 2018 21:36:06 +0000
treeherdermozilla-central@daacc8061a8f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnalexander
bugs1476165
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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;
         }
     }