Switch references to colorError

Test: make
Change-Id: I0ed10d78763642cecc5ba8e8e15a097d51280946
This commit is contained in:
Jason Monk
2017-02-01 20:20:44 -05:00
parent 3cac802860
commit 6fca98f905
10 changed files with 47 additions and 42 deletions

View File

@@ -50,11 +50,8 @@ public class ChartDataUsagePreference extends Preference {
public ChartDataUsagePreference(Context context, AttributeSet attrs) {
super(context, attrs);
setSelectable(false);
// TODO: Resource.
mLimitColor = 0xfff4511e;
TypedArray a = context.getTheme().obtainStyledAttributes(
new int[]{android.R.attr.textColorSecondary});
mWarningColor = a.getColor(0, 0);
mLimitColor = Utils.getColorAttr(context, android.R.attr.colorError);
mWarningColor = Utils.getColorAttr(context, android.R.attr.textColorSecondary);
setLayoutResource(R.layout.data_usage_graph);
}