Commit 59b3733d by Kunj Gupta

Fixed - Voice Speech issue.

parent 1526e0f2
......@@ -216,14 +216,13 @@ public class ChatActivity extends AppCompatActivity implements OnDSListener, OnD
scrollToBottom();
}
private void addParticipantsLog(int numUsers) {
addLog(getResources().getQuantityString(R.plurals.message_participants, numUsers, numUsers));
}
private void addMessage(String username, String message) {
if(username.isEmpty() || message.isEmpty())
return;
if(CURRENT_STATE == VOICE_STATE && !username.equals(PrefManager.getSharedPref(this, PrefManager.PREFERENCE_FIRST_NAME))) {
if(droidSpeech != null) {
droidSpeech.closeDroidSpeechOperations();
}
speaker.allow(true);
speaker.speak(message);
speaker.allow(false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment