aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-09-21 19:04:16 +0200
committerChristian Schneppe <christian@pix-art.de>2016-09-23 22:24:05 +0200
commit06da9324fc607ac277b029422f95e27c12bc04de (patch)
tree58409f10b573beda96f858fe1f9c435383b4e4e6 /src/main/java/de/pixart
parent963ceb5d133a2a4404b834fddcff3cf0652cfeb7 (diff)
don't react to null and empty voice replies
Diffstat (limited to 'src/main/java/de/pixart')
-rw-r--r--src/main/java/de/pixart/messenger/services/XmppConnectionService.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java
index 57598f1fb..153c1c269 100644
--- a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java
+++ b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java
@@ -656,9 +656,10 @@ public class XmppConnectionService extends Service {
case ACTION_REPLY_TO_CONVERSATION:
Bundle remoteInput = RemoteInput.getResultsFromIntent(intent);
if (remoteInput != null && c != null) {
-
- String body = remoteInput.getString("text_reply");
- directReply(c,body);
+ final CharSequence body = remoteInput.getCharSequence("text_reply");
+ if (body != null && body.length() > 0) {
+ directReply(c, body.toString());
+ }
}
break;
case AudioManager.RINGER_MODE_CHANGED_ACTION: