trim the input string in the conversation view for better lexical matching

This commit is contained in:
kr.angelov
2013-10-31 18:04:02 +00:00
parent 0b74410b01
commit 1156ed66cb

View File

@@ -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;