disable non-selectable info menus
This commit is contained in:
parent
4d07302525
commit
7a0584f830
2 changed files with 4 additions and 0 deletions
|
@ -74,6 +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);
|
||||
cat.addPreference(pref);
|
||||
|
||||
// ActivityManager activityManager = (ActivityManager)getSystemService(Context.ACTIVITY_SERVICE);
|
||||
|
@ -87,6 +88,7 @@ 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);
|
||||
cat.addPreference(pref);
|
||||
|
||||
|
||||
|
@ -101,6 +103,7 @@ public class SettingsDevelopmentActivity extends SettingsBaseActivity {
|
|||
pref.setSummary(getString(R.string.day_night_info_description, "null",
|
||||
"null"));
|
||||
}
|
||||
pref.setSelectable(false);
|
||||
cat.addPreference(pref);
|
||||
}
|
||||
|
||||
|
|
|
@ -61,6 +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);
|
||||
cat.addPreference(globalrecord);
|
||||
|
||||
if(settings.SAVE_GLOBAL_TRACK_REMEMBER.get()) {
|
||||
|
|
Loading…
Reference in a new issue