From b33bda2f0922f19830f7d4cd5adbb7df4c64bade Mon Sep 17 00:00:00 2001 From: sonora Date: Thu, 29 Oct 2015 08:33:33 +0100 Subject: [PATCH] add info headline do dev settings --- .../development/SettingsDevelopmentActivity.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/development/SettingsDevelopmentActivity.java b/OsmAnd/src/net/osmand/plus/development/SettingsDevelopmentActivity.java index 4d11031613..8853ace8e1 100644 --- a/OsmAnd/src/net/osmand/plus/development/SettingsDevelopmentActivity.java +++ b/OsmAnd/src/net/osmand/plus/development/SettingsDevelopmentActivity.java @@ -132,6 +132,10 @@ public class SettingsDevelopmentActivity extends SettingsBaseActivity { }); cat.addPreference(pref); + PreferenceCategory info = new PreferenceCategory(this); + info.setTitle(R.string.info_button); + cat.addPreference(info); + pref = new Preference(this); pref.setTitle(R.string.global_app_allocated_memory); @@ -142,7 +146,7 @@ public class SettingsDevelopmentActivity extends SettingsBaseActivity { pref.setSelectable(false); //setEnabled(false) creates bad readability on some devices //pref.setEnabled(false); - cat.addPreference(pref); + info.addPreference(pref); // ActivityManager activityManager = (ActivityManager)getSystemService(Context.ACTIVITY_SERVICE); // ActivityManager.MemoryInfo memoryInfo = new ActivityManager.MemoryInfo(); @@ -158,7 +162,7 @@ public class SettingsDevelopmentActivity extends SettingsBaseActivity { pref.setSelectable(false); //setEnabled(false) creates bad readability on some devices //pref.setEnabled(false); - cat.addPreference(pref); + info.addPreference(pref); final Preference agpspref = new Preference(this); agpspref.setTitle(R.string.agps_info); @@ -182,7 +186,7 @@ public class SettingsDevelopmentActivity extends SettingsBaseActivity { return true; } }); - cat.addPreference(agpspref); + info.addPreference(agpspref); SunriseSunset sunriseSunset = getMyApplication().getDaynightHelper().getSunriseSunset(); pref = new Preference(this); @@ -197,9 +201,9 @@ public class SettingsDevelopmentActivity extends SettingsBaseActivity { pref.setSelectable(false); //setEnabled(false) creates bad readability on some devices //pref.setEnabled(false); - cat.addPreference(pref); + info.addPreference(pref); } - + protected void availableProfileDialog() { Builder b = new AlertDialog.Builder(this); final List modes = ApplicationMode.allPossibleValues();