From 8b7cc1aa82e3a6ece7c45b3d9adefda6216c324c Mon Sep 17 00:00:00 2001 From: Ricky Barrette Date: Fri, 25 May 2012 22:50:27 -0400 Subject: [PATCH] Disabled Items Are Now Grey In Feature List on older devices closes #75 Signed-off-by: Ricky Barrette --- .../LocationRinger/ui/fragments/FeatureListFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LocationRinger/src/com/TwentyCodes/android/LocationRinger/ui/fragments/FeatureListFragment.java b/LocationRinger/src/com/TwentyCodes/android/LocationRinger/ui/fragments/FeatureListFragment.java index 112da49..dd4c046 100644 --- a/LocationRinger/src/com/TwentyCodes/android/LocationRinger/ui/fragments/FeatureListFragment.java +++ b/LocationRinger/src/com/TwentyCodes/android/LocationRinger/ui/fragments/FeatureListFragment.java @@ -130,7 +130,7 @@ public class FeatureListFragment extends BaseFragmentListFragment implements OnC if(Integer.valueOf(android.os.Build.VERSION.SDK_INT) < 11){ final TextView t = (TextView) v.findViewById(android.R.id.text1); - t.setTextColor(Color.BLACK); + t.setTextColor(isEnabled(position) ? Color.BLACK : Color.GRAY); } return v;