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
1 changed files with 6 additions and 1 deletions

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(){