Use setEnabled only, this way you can produce more contrast by/while tapping it when needed

This commit is contained in:
sonora 2015-01-18 15:43:30 +01:00
parent 02df25de05
commit 261dd0fc87
2 changed files with 3 additions and 3 deletions

View file

@ -74,7 +74,7 @@ public class SettingsDevelopmentActivity extends SettingsBaseActivity {
long javaTotal = Runtime.getRuntime().totalMemory() / (1024*1024l); long javaTotal = Runtime.getRuntime().totalMemory() / (1024*1024l);
long dalvikSize = android.os.Debug.getNativeHeapAllocatedSize() / (1024*1024l); long dalvikSize = android.os.Debug.getNativeHeapAllocatedSize() / (1024*1024l);
pref.setSummary(getString(R.string.global_app_allocated_memory_descr, javaAvailMem, javaTotal, dalvikSize)); pref.setSummary(getString(R.string.global_app_allocated_memory_descr, javaAvailMem, javaTotal, dalvikSize));
pref.setSelectable(false); pref.setEnabled(false);
cat.addPreference(pref); cat.addPreference(pref);
// ActivityManager activityManager = (ActivityManager)getSystemService(Context.ACTIVITY_SERVICE); // ActivityManager activityManager = (ActivityManager)getSystemService(Context.ACTIVITY_SERVICE);
@ -103,7 +103,7 @@ public class SettingsDevelopmentActivity extends SettingsBaseActivity {
pref.setSummary(getString(R.string.day_night_info_description, "null", pref.setSummary(getString(R.string.day_night_info_description, "null",
"null")); "null"));
} }
pref.setSelectable(false); pref.setEnabled(false);
cat.addPreference(pref); cat.addPreference(pref);
} }

View file

@ -61,7 +61,7 @@ public class SettingsMonitoringActivity extends SettingsBaseActivity {
Preference globalrecord = new Preference(this); Preference globalrecord = new Preference(this);
globalrecord.setSummary(R.string.save_track_to_gpx_globally_descr); globalrecord.setSummary(R.string.save_track_to_gpx_globally_descr);
globalrecord.setSelectable(false); globalrecord.setEnabled(false);
cat.addPreference(globalrecord); cat.addPreference(globalrecord);
if(settings.SAVE_GLOBAL_TRACK_REMEMBER.get()) { if(settings.SAVE_GLOBAL_TRACK_REMEMBER.get()) {