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:
parent
608b984119
commit
02b704b0ba
@ -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(){
|
||||
|
Loading…
Reference in New Issue
Block a user