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