Bug 1197014 - Add previous ColorUtils change to template. r=sebastian

This was originally implemented in bug 1169435 but not carried over to the
template.

--HG--
extra : commitid : 6apREWAyPi2
extra : rebase_source : 31d415df11eae0141df70e03b7c59b6f28aeaa2a
This commit is contained in:
Michael Comella 2015-08-20 17:11:12 -07:00
parent e5d9b17494
commit 0f19026bbe

View File

@ -10,6 +10,7 @@ package org.mozilla.gecko.widget;
import org.mozilla.gecko.GeckoApplication;
import org.mozilla.gecko.lwt.LightweightTheme;
import org.mozilla.gecko.R;
import org.mozilla.gecko.util.ColorUtils;
import android.content.Context;
import android.content.res.TypedArray;
@ -160,7 +161,7 @@ public class Themed@VIEW_NAME_SUFFIX@ extends @BASE_TYPE@
}
public ColorDrawable getColorDrawable(int id) {
return new ColorDrawable(getResources().getColor(id));
return new ColorDrawable(ColorUtils.getColor(getContext(), id));
}
protected LightweightTheme getTheme() {