|
17 | 17 | public class SettingsActivity extends AppCompatActivity |
18 | 18 | { |
19 | 19 | private static final String[] _numberSettings = { |
20 | | - "codec2_tx_frame_max_size", |
21 | | - "kiss_extension_radio_frequency", |
22 | | - "aprs_location_source_gps_update_time", |
23 | | - "aprs_location_source_gps_update_distance", |
24 | | - "aprs_location_source_manual_update_time", |
25 | | - "aprs_location_source_smart_fast_speed", |
26 | | - "aprs_location_source_smart_fast_rate", |
27 | | - "aprs_location_source_smart_slow_speed", |
28 | | - "aprs_location_source_smart_slow_rate", |
29 | | - "aprs_location_source_smart_min_turn_time", |
30 | | - "aprs_location_source_smart_min_turn_angle", |
31 | | - "aprs_location_source_smart_turn_slope", |
32 | | - "kiss_basic_persistence", |
33 | | - "kiss_basic_slot_time", |
34 | | - "kiss_basic_tx_delay", |
35 | | - "kiss_basic_tx_tail", |
36 | | - "ports_tcp_ip_port", |
37 | | - "ports_tcp_ip_retry_count", |
38 | | - "ports_tcp_ip_retry_delay", |
39 | | - "ports_sound_modem_preamble", |
40 | | - "ports_sound_modem_ptt_off_delay_ms", |
41 | | - "aprs_is_tcpip_server_port", |
42 | | - "opus_bit_rate" |
| 20 | + // audio |
| 21 | + PreferenceKeys.CODEC2_TX_FRAME_MAX_SIZE, |
| 22 | + PreferenceKeys.OPUS_BIT_RATE, |
| 23 | + // tnc |
| 24 | + PreferenceKeys.PORTS_TCP_IP_PORT, |
| 25 | + PreferenceKeys.PORTS_TCP_IP_RETRY_COUNT, |
| 26 | + PreferenceKeys.PORTS_TCP_IP_RETRY_DELAY, |
| 27 | + PreferenceKeys.PORTS_SOUND_MODEM_PREAMBLE, |
| 28 | + PreferenceKeys.PORTS_SOUND_MODEM_PTT_OFF_DELAY_MS, |
| 29 | + // kiss |
| 30 | + PreferenceKeys.KISS_EXTENSIONS_RADIO_FREQUENCY, |
| 31 | + PreferenceKeys.KISS_BASIC_P, |
| 32 | + PreferenceKeys.KISS_BASIC_SLOT_TIME, |
| 33 | + PreferenceKeys.KISS_BASIC_TX_DELAY, |
| 34 | + PreferenceKeys.KISS_BASIC_TX_TAIL, |
| 35 | + // aprs |
| 36 | + PreferenceKeys.APRS_LOCATION_SOURCE_GPS_UPDATE_TIME, |
| 37 | + PreferenceKeys.APRS_LOCATION_SOURCE_GPS_UPDATE_DISTANCE, |
| 38 | + PreferenceKeys.APRS_LOCATION_SOURCE_MANUAL_UPDATE_INTERVAL_MINUTES, |
| 39 | + PreferenceKeys.APRS_LOCATION_SOURCE_SMART_FAST_RATE, |
| 40 | + PreferenceKeys.APRS_LOCATION_SOURCE_SMART_FAST_SPEED, |
| 41 | + PreferenceKeys.APRS_LOCATION_SOURCE_SMART_SLOW_RATE, |
| 42 | + PreferenceKeys.APRS_LOCATION_SOURCE_SMART_SLOW_SPEED, |
| 43 | + PreferenceKeys.APRS_LOCATION_SOURCE_SMART_MIN_TURN_ANGLE, |
| 44 | + PreferenceKeys.APRS_LOCATION_SOURCE_SMART_MIN_TURN_TIME, |
| 45 | + PreferenceKeys.APRS_LOCATION_SOURCE_SMART_TURN_SLOPE, |
| 46 | + PreferenceKeys.APRS_IS_TCPIP_SERVER_PORT |
43 | 47 | }; |
44 | 48 |
|
45 | 49 | private static final String[] _signedDecimalSettings = { |
46 | | - "aprs_location_source_manual_lat", |
47 | | - "aprs_location_source_manual_lon" |
| 50 | + // aprs |
| 51 | + PreferenceKeys.APRS_LOCATION_SOURCE_MANUAL_LAT, |
| 52 | + PreferenceKeys.APRS_LOCATION_SOURCE_MANUAL_LON |
48 | 53 | }; |
49 | 54 |
|
50 | 55 | public static void setNumberInputType(PreferenceManager preferenceManager) { |
|
0 commit comments