mirror of
https://github.com/yuliskov/SmartTube.git
synced 2025-08-06 11:59:40 +08:00
mic exception fix
This commit is contained in:
@ -751,7 +751,13 @@ public class SearchBar extends RelativeLayout {
|
||||
});
|
||||
|
||||
mListening = true;
|
||||
mSpeechRecognizer.startListening(recognizerIntent);
|
||||
try {
|
||||
mSpeechRecognizer.startListening(recognizerIntent);
|
||||
} catch (SecurityException e) {
|
||||
// MOD: Swallow the exception
|
||||
// Not allowed to bind to service Intent { act=android.speech.RecognitionService cmp=com.touchtype.swiftkey/com.swiftkey.microsoftspeechservice.MicrosoftSpeechRecognitionService }
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
void updateUi(boolean hasFocus) {
|
||||
|
Reference in New Issue
Block a user