From 261dd0fc8759c9a82939092efb38d57dafd052a0 Mon Sep 17 00:00:00 2001 From: sonora Date: Sun, 18 Jan 2015 15:43:30 +0100 Subject: [PATCH] Use setEnabled only, this way you can produce more contrast by/while tapping it when needed --- .../osmand/plus/development/SettingsDevelopmentActivity.java | 4 ++-- .../osmand/plus/monitoring/SettingsMonitoringActivity.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/development/SettingsDevelopmentActivity.java b/OsmAnd/src/net/osmand/plus/development/SettingsDevelopmentActivity.java index 39c259ec83..42b5295cb9 100644 --- a/OsmAnd/src/net/osmand/plus/development/SettingsDevelopmentActivity.java +++ b/OsmAnd/src/net/osmand/plus/development/SettingsDevelopmentActivity.java @@ -74,7 +74,7 @@ public class SettingsDevelopmentActivity extends SettingsBaseActivity { long javaTotal = Runtime.getRuntime().totalMemory() / (1024*1024l); long dalvikSize = android.os.Debug.getNativeHeapAllocatedSize() / (1024*1024l); pref.setSummary(getString(R.string.global_app_allocated_memory_descr, javaAvailMem, javaTotal, dalvikSize)); - pref.setSelectable(false); + pref.setEnabled(false); cat.addPreference(pref); // 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", "null")); } - pref.setSelectable(false); + pref.setEnabled(false); cat.addPreference(pref); } diff --git a/OsmAnd/src/net/osmand/plus/monitoring/SettingsMonitoringActivity.java b/OsmAnd/src/net/osmand/plus/monitoring/SettingsMonitoringActivity.java index ee85dbdd20..86d2afab93 100644 --- a/OsmAnd/src/net/osmand/plus/monitoring/SettingsMonitoringActivity.java +++ b/OsmAnd/src/net/osmand/plus/monitoring/SettingsMonitoringActivity.java @@ -61,7 +61,7 @@ public class SettingsMonitoringActivity extends SettingsBaseActivity { Preference globalrecord = new Preference(this); globalrecord.setSummary(R.string.save_track_to_gpx_globally_descr); - globalrecord.setSelectable(false); + globalrecord.setEnabled(false); cat.addPreference(globalrecord); if(settings.SAVE_GLOBAL_TRACK_REMEMBER.get()) {