Merge "Change "X over" text color to ColorError" into pi-dev

This commit is contained in:
TreeHugger Robot
2018-04-05 22:47:23 +00:00
committed by Android (Google) Code Review
3 changed files with 9 additions and 2 deletions

View File

@@ -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));
}
}
}