mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
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:
parent
e5d9b17494
commit
0f19026bbe
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user