sh123 2022-08-11 16:51:36 +03:00
rodzic 7a685a5690
commit b43f015e2f
2 zmienionych plików z 3 dodań i 4 usunięć

Wyświetl plik

@ -36,7 +36,8 @@ public class SettingsWrapper {
}
public static boolean isFreeDvSoundModemModulation(SharedPreferences sharedPreferences) {
return sharedPreferences.getString(PreferenceKeys.PORTS_SOUND_MODEM_TYPE, "1200").startsWith("F");
return isSoundModemEnabled(sharedPreferences) &&
sharedPreferences.getString(PreferenceKeys.PORTS_SOUND_MODEM_TYPE, "1200").startsWith("F");
}
public static int getFreeDvSoundModemModulation(SharedPreferences sharedPreferences) {

Wyświetl plik

@ -49,9 +49,7 @@ public class AudioTools {
}
public static String getFreedvModeAsText(SharedPreferences sharedPreferences) {
if (SettingsWrapper.isSoundModemEnabled(sharedPreferences) &&
SettingsWrapper.isFreeDvSoundModemModulation(sharedPreferences)) {
if (SettingsWrapper.isFreeDvSoundModemModulation(sharedPreferences)) {
switch (SettingsWrapper.getFreeDvSoundModemModulation(sharedPreferences)) {
case Codec2.FREEDV_MODE_700C:
return "700C";