Merge "Switch references to colorError"
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
@@ -76,7 +76,6 @@ public class StorageSettings extends SettingsPreferenceFragment implements Index
|
||||
private static final String TAG_DISK_INIT = "disk_init";
|
||||
|
||||
static final int COLOR_PUBLIC = Color.parseColor("#ff9e9e9e");
|
||||
static final int COLOR_WARNING = Color.parseColor("#fff4511e");
|
||||
|
||||
static final int[] COLOR_PRIVATE = new int[] {
|
||||
Color.parseColor("#ff26a69a"),
|
||||
|
@@ -32,6 +32,7 @@ import android.widget.ProgressBar;
|
||||
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.deviceinfo.StorageSettings.UnmountTask;
|
||||
import com.android.settingslib.Utils;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
@@ -83,7 +84,7 @@ public class StorageVolumePreference extends Preference {
|
||||
}
|
||||
|
||||
if (freeBytes < mStorageManager.getStorageLowBytes(path)) {
|
||||
mColor = StorageSettings.COLOR_WARNING;
|
||||
mColor = Utils.getColorAttr(context, android.R.attr.colorError);
|
||||
icon = context.getDrawable(R.drawable.ic_warning_24dp);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user