Skip to content

Commit

Permalink
Add some missing displays of actual values in the advanced prefs.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpoole committed Oct 17, 2024
1 parent bc7bc34 commit e1c7889
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ public class AdvancedPrefEditorFragment extends ExtendedPreferenceFragment {
private static final int TAG_LEN = Math.min(LOG_TAG_LEN, AdvancedPrefEditorFragment.class.getSimpleName().length());
private static final String DEBUG_TAG = AdvancedPrefEditorFragment.class.getSimpleName().substring(0, TAG_LEN);

private Resources r;
AdvancedPrefDatabase db;
private String apiPrefKey;
private Resources r;
private AdvancedPrefDatabase db;
private String apiPrefKey;

@Override
public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
Expand Down Expand Up @@ -74,9 +74,13 @@ public void onResume() {
setListPreferenceSummary(R.string.config_fullscreenMode_key, true);
setListPreferenceSummary(R.string.config_mapOrientation_key, false);
setListPreferenceSummary(R.string.config_gps_source_key, false);
setEditTextPreferenceSummary(R.string.config_gps_source_tcp_key, false);
setEditTextPreferenceSummary(R.string.config_offsetServer_key, false);
setEditTextPreferenceSummary(R.string.config_osmoseServer_key, false);
setEditTextPreferenceSummary(R.string.config_taginfoServer_key, false);
setEditTextPreferenceSummary(R.string.config_overpassServer_key, false);
setEditTextPreferenceSummary(R.string.config_oamServer_key, false);

setRestartRequiredMessage(R.string.config_enableLightTheme_key);
setRestartRequiredMessage(R.string.config_splitActionBarEnabled_key);
setListPreferenceSummary(R.string.config_followGPSbutton_key, true);
Expand Down

0 comments on commit e1c7889

Please sign in to comment.