private void updateUiByTrackColorMode(String trackColorMode){
  boolean isFixedValue=trackColorMode.equals(getString(R.string.settings_map_track_color_mode_fixed_value));
  boolean isDynamicValue=trackColorMode.equals(getString(R.string.settings_map_track_color_mode_dynamic_value));
  slowPreference.setEnabled(isFixedValue);
  mediumPreference.setEnabled(isFixedValue);
  percentagePreference.setEnabled(isDynamicValue);
}

private void updateUiByTrackColorMode ( String trackColorMode ) { boolean isFixedValue = trackColorMode . equals ( getString ( R . string . settings_map_track_color_mode_fixed_value ) ) ; boolean isDynamicValue = trackColorMode . equals ( getString ( R . string . settings_map_track_color_mode_dynamic_value ) ) ; slowPreference . setEnabled ( isFixedValue ) ; mediumPreference . setEnabled ( isFixedValue ) ; percentagePreference . setEnabled ( isDynamicValue ) ; }
updates the ui by the track color mode .
