Skip to content

Commit c5a6f62

Browse files
committed
refactor: move audio focus comment to method body
1 parent 24c196a commit c5a6f62

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

lib/features/call/utils/call_media_manager.dart

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,10 @@ class CallMediaManager {
4646
// management so CallKit controls activation instead of WebRTC doing it automatically.
4747
void _configure() {
4848
if (Platform.isAndroid) {
49+
// manageAudioFocus: false — Telecom owns audio focus for VoIP calls.
50+
// Dual ownership with AudioSwitch leaves volume stuck in call mode on older MIUI (WT-1429).
4951
AndroidNativeAudioManagement.setAndroidAudioConfiguration(
50-
AndroidAudioConfiguration(
51-
preferredOutputOrder: _voiceCallOutputOrder,
52-
// Telecom owns audio focus; dual ownership leaves volume stuck in call mode on older MIUI (WT-1429).
53-
manageAudioFocus: false,
54-
),
52+
AndroidAudioConfiguration(preferredOutputOrder: _voiceCallOutputOrder, manageAudioFocus: false),
5553
);
5654
}
5755
if (Platform.isIOS) AppleNativeAudioManagement.setUseManualAudio(true);

0 commit comments

Comments
 (0)