rename and reorganize

- settings recording
- settings sensor
This commit is contained in:
Jimmy Shih
2011-11-08 18:50:22 -08:00
parent eaa6922a95
commit 08c01f2b4e
18 changed files with 519 additions and 529 deletions
@@ -43,9 +43,10 @@ public class AntPreference extends Preference {
private void init() {
int sensorId = getPersistedInt(0);
if (sensorId == 0) {
setSummary(R.string.settings_ant_not_paired);
setSummary(R.string.settings_sensor_ant_not_paired);
} else {
setSummary(String.format(getContext().getString(R.string.settings_ant_paired), sensorId));
setSummary(
String.format(getContext().getString(R.string.settings_sensor_ant_paired), sensorId));
}
// Add actions to allow repairing.
@@ -54,7 +55,7 @@ public class AntPreference extends Preference {
@Override
public boolean onPreferenceClick(Preference preference) {
AntPreference.this.persistInt(0);
setSummary(R.string.settings_ant_not_paired);
setSummary(R.string.settings_sensor_ant_not_paired);
return true;
}
});
@@ -93,8 +93,7 @@ public class SettingsActivity extends PreferenceActivity {
getString(R.string.announcement_frequency_key));
announcementFrequency.setEnabled(false);
announcementFrequency.setValue("-1");
announcementFrequency.setSummary(
R.string.settings_announcement_frequency_not_available);
announcementFrequency.setSummary(R.string.settings_recording_voice_not_available);
}
// Hook up switching of displayed list entries between metric and imperial