Update recording settings to display the current

value in the summary.
This commit is contained in:
Jimmy Shih
2012-09-24 17:27:16 -07:00
parent 9e855fd589
commit df7c832b96
8 changed files with 218 additions and 140 deletions
@@ -84,6 +84,9 @@ public class PreferencesUtils {
public static final int TRACK_COLOR_MODE_MEDIUM_DEFAULT = 15;
public static final int TRACK_COLOR_MODE_PERCENTAGE_DEFAULT = 25;
public static final int TRACK_COLOR_MODE_SLOW_DEFAULT = 9;
public static final String TRACK_NAME_DEFAULT = "LOCATION";
public static final int VOICE_FREQUENCY_DEFAULT = 0;
private PreferencesUtils() {}
@@ -291,7 +291,7 @@ public class StringUtils {
* @param context the context
* @param metricUnits true to display in metric units
*/
public static String[] getFrequencyDisplayOptions(Context context, boolean metricUnits) {
public static String[] getFrequencyOptions(Context context, boolean metricUnits) {
String[] values = context.getResources().getStringArray(R.array.frequency_values);
String[] options = new String[values.length];
for (int i = 0; i < values.length; i++) {
@@ -52,7 +52,7 @@ public class TrackNameUtils {
public static String getTrackName(
Context context, long trackId, long startTime, Location location) {
String trackName = PreferencesUtils.getString(context, R.string.track_name_key,
context.getString(R.string.settings_recording_track_name_location_value));
PreferencesUtils.TRACK_NAME_DEFAULT);
if (trackName.equals(
context.getString(R.string.settings_recording_track_name_date_local_value))) {