1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-09-27 16:56:57 +02:00

Fossil: Fix crash due to voice helper

This commit is contained in:
José Rebelo 2023-09-18 21:36:12 +01:00
parent 608b984119
commit 02b704b0ba

View File

@ -366,8 +366,13 @@ public class FossilHRWatchAdapter extends FossilWatchAdapter implements VoiceHel
} }
private void attachToVoiceService(){ private void attachToVoiceService(){
if (voiceHelper == null) {
voiceHelper = new VoiceHelper(getContext(), this);
}
if (!voiceHelper.isConnected()) {
voiceHelper.connect(); voiceHelper.connect();
} }
}
private void detachFromVoiceService(){ private void detachFromVoiceService(){
// TODO // TODO