Bug 1179403 - Get the correct color for private browsing tint. r=mhaigh, a=ritu
authorMichael Comella <michael.l.comella@gmail.com>
Wed, 01 Jul 2015 14:12:02 -0700
changeset 270188 c6b17a2f6d98bd3646f2ae12eac80195f94997d6
parent 270187 2d009108b0991585cd8c31f621d9f50c1b58e4b7
child 270189 ea6c6e697e9f66da794f3431c0c86ac4806859b7
push id8187
push userryanvm@gmail.com
push dateThu, 09 Jul 2015 12:53:40 +0000
treeherdermozilla-aurora@aeab359c2292 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmhaigh, ritu
bugs1179403
milestone41.0a2
Bug 1179403 - Get the correct color for private browsing tint. r=mhaigh, a=ritu
mobile/android/base/toolbar/ToolbarProgressView.java
--- a/mobile/android/base/toolbar/ToolbarProgressView.java
+++ b/mobile/android/base/toolbar/ToolbarProgressView.java
@@ -64,18 +64,18 @@ public class ToolbarProgressView extends
         super(context, attrs);
         init(context);
     }
 
     private void init(Context ctx) {
         mBounds = new Rect(0,0,0,0);
         mTargetProgress = 0;
 
-        mPrivateBrowsingColorFilter =
-                new PorterDuffColorFilter(R.color.private_browsing_purple, PorterDuff.Mode.SRC_IN);
+        mPrivateBrowsingColorFilter = new PorterDuffColorFilter(
+                getResources().getColor(R.color.private_browsing_purple), PorterDuff.Mode.SRC_IN);
 
         mHandler = new ToolbarProgressHandler(this);
     }
 
     @Override
     public void setVisibility(int visibility) {
         // On GB/Froyo, setting the visibility to GONE/HIDDEN alone does not
         // work with translations. Calling clearAnimation acts as a workaround.