mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-10 17:11:56 +01:00
Fix config for AbstractHeadphoneDeviceSupport
Configuration changes are not passed to subclasses because super.onSendConfiguration() is not called.
This commit is contained in:
parent
d345325b46
commit
0035c52d2a
@ -114,6 +114,8 @@ public abstract class AbstractHeadphoneDeviceSupport extends AbstractSerialDevic
|
|||||||
gbTextToSpeech.setAudioFocus(prefs.getBoolean(PREF_SPEAK_NOTIFICATIONS_FOCUS_EXCLUSIVE, false) ?
|
gbTextToSpeech.setAudioFocus(prefs.getBoolean(PREF_SPEAK_NOTIFICATIONS_FOCUS_EXCLUSIVE, false) ?
|
||||||
AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_EXCLUSIVE :
|
AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_EXCLUSIVE :
|
||||||
AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK);
|
AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK);
|
||||||
|
} else {
|
||||||
|
super.onSendConfiguration(config);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user