We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a9e3ea commit 94d478dCopy full SHA for 94d478d
app/src/main/java/com/termux/api/apis/NotificationAPI.java
@@ -385,8 +385,11 @@ public static void onReceiveReplyToNotification(TermuxApiReceiver termuxApiRecei
385
String replyKey = intent.getStringExtra("replyKey");
386
CharSequence reply = getMessageText(intent);
387
388
- String action = intent.getStringExtra("action")
389
- .replace("$REPLY", shellEscape(reply));
+ String action = intent.getStringExtra("action");
+
390
+ if (action != null && reply != null)
391
+ action = action.replace("$REPLY", shellEscape(reply));
392
393
try {
394
createAction(context, action).send();
395
} catch (PendingIntent.CanceledException e) {
0 commit comments