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 428364 dd0c6edcb031
parent 428363 6be5d9b0ac9d
child 428365 c1bbc1019bd3
push id66847
push userapavel@mozilla.com
push dateWed, 25 Jul 2018 16:02:00 +0000
treeherderautoland@d6b31c8eb3b6 [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;
         }
     }