mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-30 20:52:21 -05:00
don't react to null and empty voice replies
This commit is contained in:
parent
13ed27f91e
commit
343d895a26
@ -573,9 +573,10 @@ public class XmppConnectionService extends Service {
|
|||||||
case ACTION_REPLY_TO_CONVERSATION:
|
case ACTION_REPLY_TO_CONVERSATION:
|
||||||
Bundle remoteInput = RemoteInput.getResultsFromIntent(intent);
|
Bundle remoteInput = RemoteInput.getResultsFromIntent(intent);
|
||||||
if (remoteInput != null && c != null) {
|
if (remoteInput != null && c != null) {
|
||||||
|
final CharSequence body = remoteInput.getCharSequence("text_reply");
|
||||||
String body = remoteInput.getString("text_reply");
|
if (body != null && body.length() > 0) {
|
||||||
directReply(c,body);
|
directReply(c, body.toString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case AudioManager.RINGER_MODE_CHANGED_ACTION:
|
case AudioManager.RINGER_MODE_CHANGED_ACTION:
|
||||||
|
Loading…
Reference in New Issue
Block a user