Skip to content

Commit e800f9e

Browse files
committed
Refactor
1 parent a06efca commit e800f9e

File tree

1 file changed

+30
-25
lines changed

1 file changed

+30
-25
lines changed

codec2talkie/src/main/java/com/radio/codec2talkie/settings/SettingsActivity.java

Lines changed: 30 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -17,34 +17,39 @@
1717
public class SettingsActivity extends AppCompatActivity
1818
{
1919
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
4347
};
4448

4549
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
4853
};
4954

5055
public static void setNumberInputType(PreferenceManager preferenceManager) {

0 commit comments

Comments
 (0)