Bug 1179403 - Get the correct color for private browsing tint. r=mhaigh
authorMichael Comella <michael.l.comella@gmail.com>
Wed, 01 Jul 2015 14:12:02 -0700
changeset 251118 92eea1b8551a63f7f3f730f1c32b202e7cc59816
parent 251117 886572f8cb41375277efd42462d6f818b4ebe82c
child 251119 bcc3546c258375cd2592a020454ddbd52f39e277
push id13828
push usermichael.l.comella@gmail.com
push dateThu, 02 Jul 2015 17:56:42 +0000
treeherderfx-team@92eea1b8551a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmhaigh
bugs1179403
milestone42.0a1
Bug 1179403 - Get the correct color for private browsing tint. r=mhaigh
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.