1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-15 06:29:24 +01: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,7 +366,12 @@ public class FossilHRWatchAdapter extends FossilWatchAdapter implements VoiceHel
}
private void attachToVoiceService(){
voiceHelper.connect();
if (voiceHelper == null) {
voiceHelper = new VoiceHelper(getContext(), this);
}
if (!voiceHelper.isConnected()) {
voiceHelper.connect();
}
}
private void detachFromVoiceService(){