trim the input string in the conversation view for better lexical matching
This commit is contained in:
1 parent
594c71f35d
commit
8325802c22
1 file changed
+1
-1
@@ -82,7 +82,7 @@ public class ConversationView extends ScrollView {
|
||||
inputMethodManager.toggleSoftInput(InputMethodManager.SHOW_IMPLICIT, 0);
|
||||
}
|
||||
if (mSpeechListener != null)
|
||||
mSpeechListener.onSpeechInput(text.toString());
|
||||
mSpeechListener.onSpeechInput(text.toString().trim());
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user