summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/deviceinfo
diff options
context:
space:
mode:
authorBryan Owens <djbryan3540@gmail.com>2015-11-12 09:20:15 -0600
committerGerrit Code Review <gerrit@cyanogenmod.org>2015-11-17 09:43:30 -0800
commitbf3099fb6266e13e52e8e149697135484aa9f515 (patch)
tree3ee65a4dc8774ee72c52842c4e64130f909f6c6b /src/com/android/settings/deviceinfo
parente6aed7196211928232ee005bd37a6a220ac64e64 (diff)
downloadpackages_apps_Settings-bf3099fb6266e13e52e8e149697135484aa9f515.zip
packages_apps_Settings-bf3099fb6266e13e52e8e149697135484aa9f515.tar.gz
packages_apps_Settings-bf3099fb6266e13e52e8e149697135484aa9f515.tar.bz2
Expose "ALL" hardcoded and @android colors
Change-Id: I8ef92ae66d4828ca85d624a300ef7cf29f7367d8 Signed-off-by: Bryan Owens <djbryan3540@gmail.com>
Diffstat (limited to 'src/com/android/settings/deviceinfo')
-rw-r--r--src/com/android/settings/deviceinfo/StorageSummaryPreference.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/settings/deviceinfo/StorageSummaryPreference.java b/src/com/android/settings/deviceinfo/StorageSummaryPreference.java
index 2641cb6..919e42d 100644
--- a/src/com/android/settings/deviceinfo/StorageSummaryPreference.java
+++ b/src/com/android/settings/deviceinfo/StorageSummaryPreference.java
@@ -17,6 +17,7 @@
package com.android.settings.deviceinfo;
import android.content.Context;
+import android.content.res.Resources;
import android.graphics.Color;
import android.preference.Preference;
import android.view.View;
@@ -41,6 +42,7 @@ public class StorageSummaryPreference extends Preference {
@Override
protected void onBindView(View view) {
+ Resources res = getContext().getResources();
final ProgressBar progress = (ProgressBar) view.findViewById(android.R.id.progress);
if (mPercent != -1) {
progress.setVisibility(View.VISIBLE);
@@ -50,7 +52,7 @@ public class StorageSummaryPreference extends Preference {
}
final TextView summary = (TextView) view.findViewById(android.R.id.summary);
- summary.setTextColor(Color.parseColor("#8a000000"));
+ summary.setTextColor(res.getColor(R.color.storage_summary_used_text_color));
super.onBindView(view);
}