diff options
author | Bryan Owens <djbryan3540@gmail.com> | 2015-11-12 09:20:15 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2015-11-17 09:43:30 -0800 |
commit | bf3099fb6266e13e52e8e149697135484aa9f515 (patch) | |
tree | 3ee65a4dc8774ee72c52842c4e64130f909f6c6b /src/com/android/settings/deviceinfo | |
parent | e6aed7196211928232ee005bd37a6a220ac64e64 (diff) | |
download | packages_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.java | 4 |
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); } |