AFSK BT only allowed with HQ demod, fix #103

usb
Georg Lukas 2015-04-03 18:54:43 +02:00
rodzic d0bd1686f7
commit b0c3796ddf
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -9,14 +9,14 @@
android:key="afsk.hqdemod"
android:title="@string/p_afsk_hqdemod"
android:summary="@string/p_afsk_hqdemod_summary"
android:defaultValue="false"
android:defaultValue="true"
/>
<CheckBoxPreference
android:key="afsk.btsco"
android:title="@string/p_afsk_btsco"
android:summary="@string/p_afsk_btsco_summary"
android:defaultValue="true"
android:defaultValue="false"
android:dependency="afsk.hqdemod"
/>

Wyświetl plik

@ -65,6 +65,6 @@ class PrefsWrapper(val context : Context) {
getPasscode(), getVersion())
def getAfskHQ() = getBoolean("afsk.hqdemod", true)
def getAfskBluetooth() = getBoolean("afsk.btsco", false)
def getAfskBluetooth() = getBoolean("afsk.btsco", false) && getAfskHQ()
def getAfskOutput() = if (getAfskBluetooth()) AudioManager.STREAM_VOICE_CALL else getStringInt("afsk.output", 0)
}