We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 504e703 commit bdb93efCopy full SHA for bdb93ef
android/app/src/main/java/me/kavishdevar/librepods/screens/HearingAidScreen.kt
@@ -155,7 +155,7 @@ fun HearingAidScreen(navController: NavController) {
155
LaunchedEffect(hearingAidEnabled.value) {
156
if (hearingAidEnabled.value && !initialLoad.value) {
157
showDialog.value = true
158
- } else if (!hearingAidEnabled.value) {
+ } else if (!hearingAidEnabled.value && !initialLoad.value) {
159
aacpManager?.sendControlCommand(AACPManager.Companion.ControlCommandIdentifiers.HEARING_AID.value, byteArrayOf(0x01, 0x02))
160
aacpManager?.sendControlCommand(AACPManager.Companion.ControlCommandIdentifiers.HEARING_ASSIST_CONFIG.value, 0x02.toByte())
161
hearingAidEnabled.value = false
0 commit comments