1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-25 10:05:49 +01:00

Fix config for AbstractHeadphoneDeviceSupport

Configuration changes are not passed to subclasses because
super.onSendConfiguration() is not called.
This commit is contained in:
Severin von Wnuck-Lipinski 2024-06-30 18:41:48 +02:00 committed by José Rebelo
parent d345325b46
commit 0035c52d2a

View File

@ -114,6 +114,8 @@ public abstract class AbstractHeadphoneDeviceSupport extends AbstractSerialDevic
gbTextToSpeech.setAudioFocus(prefs.getBoolean(PREF_SPEAK_NOTIFICATIONS_FOCUS_EXCLUSIVE, false) ?
AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_EXCLUSIVE :
AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK);
} else {
super.onSendConfiguration(config);
}
}