Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2015-01-30 21:11:58 +01:00
commit e44249ee32
2 changed files with 12 additions and 12 deletions

View file

@ -77,9 +77,9 @@ 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.setEnabled(false);
//Use setEnabled(false) only, this way you can produce more contrast by/while tapping it when needed
//pref.setSelectable(false);
pref.setSelectable(false);
//setEnabled(false) creates bad readability on some devices
//pref.setEnabled(false);
cat.addPreference(pref);
// ActivityManager activityManager = (ActivityManager)getSystemService(Context.ACTIVITY_SERVICE);
@ -93,9 +93,9 @@ public class SettingsDevelopmentActivity extends SettingsBaseActivity {
pref.setSummary(getString(R.string.native_app_allocated_memory_descr
, mem.nativePrivateDirty / 1024, mem.dalvikPrivateDirty / 1024 , mem.otherPrivateDirty / 1024
, mem.nativePss / 1024, mem.dalvikPss / 1024 , mem.otherPss / 1024));
pref.setEnabled(false);
//Use setEnabled(false) only, this way you can produce more contrast by/while tapping it when needed
//pref.setSelectable(false);
pref.setSelectable(false);
//setEnabled(false) creates bad readability on some devices
//pref.setEnabled(false);
cat.addPreference(pref);
@ -110,9 +110,9 @@ public class SettingsDevelopmentActivity extends SettingsBaseActivity {
pref.setSummary(getString(R.string.day_night_info_description, "null",
"null"));
}
pref.setEnabled(false);
//Use setEnabled(false) only, this way you can produce more contrast by/while tapping it when needed
//pref.setSelectable(false);
pref.setSelectable(false);
//setEnabled(false) creates bad readability on some devices
//pref.setEnabled(false);
cat.addPreference(pref);
}

View file

@ -63,9 +63,9 @@ public class SettingsMonitoringActivity extends SettingsBaseActivity {
Preference globalrecord = new Preference(this);
globalrecord.setTitle(R.string.save_track_to_gpx_globally_headline);
globalrecord.setSummary(R.string.save_track_to_gpx_globally_descr);
globalrecord.setEnabled(false);
//Use setEnabled(false) only, this way you can produce more contrast by/while tapping it when needed
//globalrecord.setSelectable(false);
globalrecord.setSelectable(false);
//setEnabled(false) creates bad readability on some devices
//globalrecord.setEnabled(false);
cat.addPreference(globalrecord);
if(settings.SAVE_GLOBAL_TRACK_REMEMBER.get()) {