Removing AppMode settings from development settings

This commit is contained in:
madwasp79 2019-05-02 16:40:47 +03:00
parent 08d28d65ed
commit bd1ca349d8
2 changed files with 13 additions and 16 deletions

View file

@ -503,6 +503,7 @@ public class SettingsGeneralActivity extends SettingsBaseActivity implements OnR
misc.addPreference(createCheckBoxPreference(settings.DO_NOT_USE_ANIMATIONS, R.string.do_not_use_animations, R.string.do_not_use_animations_descr)); misc.addPreference(createCheckBoxPreference(settings.DO_NOT_USE_ANIMATIONS, R.string.do_not_use_animations, R.string.do_not_use_animations_descr));
misc.addPreference(createCheckBoxPreference(settings.MAP_EMPTY_STATE_ALLOWED, R.string.tap_on_map_to_hide_interface, R.string.tap_on_map_to_hide_interface_descr)); misc.addPreference(createCheckBoxPreference(settings.MAP_EMPTY_STATE_ALLOWED, R.string.tap_on_map_to_hide_interface, R.string.tap_on_map_to_hide_interface_descr));
misc.addPreference(createCheckBoxPreference(settings.DO_NOT_SHOW_STARTUP_MESSAGES, R.string.do_not_show_startup_messages, R.string.do_not_show_startup_messages_desc)); misc.addPreference(createCheckBoxPreference(settings.DO_NOT_SHOW_STARTUP_MESSAGES, R.string.do_not_show_startup_messages, R.string.do_not_show_startup_messages_desc));
misc.addPreference(createCheckBoxPreference(settings.ANIMATE_MY_LOCATION,R.string.animate_my_location, R.string.animate_my_location_desc));
OsmandApplication app = getMyApplication(); OsmandApplication app = getMyApplication();
if (Version.isGooglePlayEnabled(getMyApplication()) && !Version.isPaidVersion(app)) { if (Version.isGooglePlayEnabled(getMyApplication()) && !Version.isPaidVersion(app)) {
misc.addPreference(createCheckBoxPreference(settings.DO_NOT_SEND_ANONYMOUS_APP_USAGE, R.string.do_not_send_anonymous_app_usage, R.string.do_not_send_anonymous_app_usage_desc)); misc.addPreference(createCheckBoxPreference(settings.DO_NOT_SEND_ANONYMOUS_APP_USAGE, R.string.do_not_send_anonymous_app_usage, R.string.do_not_send_anonymous_app_usage_desc));

View file

@ -44,25 +44,21 @@ public class SettingsDevelopmentActivity extends SettingsBaseActivity {
PreferenceScreen cat = getPreferenceScreen(); PreferenceScreen cat = getPreferenceScreen();
Preference pref; Preference pref;
// 2 should be in main settings
cat.addPreference(createCheckBoxPreference(settings.USE_OPENGL_RENDER, cat.addPreference(createCheckBoxPreference(settings.USE_OPENGL_RENDER,
R.string.use_opengl_render,R.string.use_opengl_render_descr)); R.string.use_opengl_render,R.string.use_opengl_render_descr));
cat.addPreference(createCheckBoxPreference(settings.ANIMATE_MY_LOCATION, // pref = new Preference(this);
R.string.animate_my_location, R.string.animate_my_location_desc)); // pref.setTitle(R.string.app_modes_choose);
// pref.setSummary(R.string.app_modes_choose_descr);
pref = new Preference(this); // pref.setKey("available_application_modes");
pref.setTitle(R.string.app_modes_choose); // pref.setOnPreferenceClickListener(new OnPreferenceClickListener() {
pref.setSummary(R.string.app_modes_choose_descr); // @Override
pref.setKey("available_application_modes"); // public boolean onPreferenceClick(Preference preference) {
pref.setOnPreferenceClickListener(new OnPreferenceClickListener() { // availableProfileDialog();
@Override // return true;
public boolean onPreferenceClick(Preference preference) { // }
availableProfileDialog(); // });
return true; // cat.addPreference(pref);
}
});
cat.addPreference(pref);
PreferenceCategory navigation = new PreferenceCategory(this); PreferenceCategory navigation = new PreferenceCategory(this);
navigation.setTitle(R.string.routing_settings); navigation.setTitle(R.string.routing_settings);