Merge "Change "X over" text color to ColorError" into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
22bf690fdd
@@ -234,10 +234,14 @@ public class DataUsageSummaryPreference extends Preference {
|
||||
usageRemainingField.setText(
|
||||
TextUtils.expandTemplate(getContext().getText(R.string.data_remaining),
|
||||
Formatter.formatFileSize(getContext(), dataRemaining)));
|
||||
usageRemainingField.setTextColor(
|
||||
Utils.getColorAttr(getContext(), android.R.attr.colorAccent));
|
||||
} else {
|
||||
usageRemainingField.setText(
|
||||
TextUtils.expandTemplate(getContext().getText(R.string.data_overusage),
|
||||
Formatter.formatFileSize(getContext(), -dataRemaining)));
|
||||
usageRemainingField.setTextColor(
|
||||
Utils.getColorAttr(getContext(), android.R.attr.colorError));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user