Commit fd3b90db by Kunj Gupta

Fixed - App is crashing in chat screen.

parent 80b52de7
...@@ -279,9 +279,11 @@ public class ChatActivity extends AppCompatActivity implements OnDSListener, OnD ...@@ -279,9 +279,11 @@ public class ChatActivity extends AppCompatActivity implements OnDSListener, OnD
if(droidSpeech != null) { if(droidSpeech != null) {
droidSpeech.closeDroidSpeechOperations(); droidSpeech.closeDroidSpeechOperations();
} }
if(speaker != null) {
speaker.allow(true); speaker.allow(true);
speaker.speak(message, mNewMessageUtteranceId); speaker.speak(message, mNewMessageUtteranceId);
} }
}
mMessages.add(chatBotHistory); mMessages.add(chatBotHistory);
mAdapter.notifyItemInserted(mMessages.size() - 1); mAdapter.notifyItemInserted(mMessages.size() - 1);
......
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