kopia lustrzana https://github.com/sh123/codec2_talkie
Settings
rodzic
7a685a5690
commit
b43f015e2f
|
@ -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) {
|
||||
|
|
|
@ -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";
|
||||
|
|
Ładowanie…
Reference in New Issue