Fixed cancelling notifications

This commit is contained in:
M66B 2020-04-24 17:43:10 +02:00
parent 63b83fb480
commit b52c3b0386
2 changed files with 4 additions and 3 deletions

View File

@ -3310,7 +3310,8 @@ class Core {
.setAllowGeneratedReplies(false);
RemoteInput.Builder input = new RemoteInput.Builder("text")
.setLabel(context.getString(R.string.title_advanced_notify_action_reply));
actionReply.addRemoteInput(input.build()).setAllowGeneratedReplies(false);
actionReply.addRemoteInput(input.build())
.setAllowGeneratedReplies(false);
mbuilder.addAction(actionReply.build());
}

View File

@ -100,7 +100,7 @@ public class ServiceUI extends IntentService {
try {
String[] parts = action.split(":");
long id = (parts.length > 1 ? Long.parseLong(parts[1]) : -1);
String group = intent.getStringExtra("group");
long group = intent.getLongExtra("group", -1);
switch (parts[0]) {
case "clear":
@ -184,7 +184,7 @@ public class ServiceUI extends IntentService {
Log.i("Cleared=" + cleared);
}
private void cancel(String group, long id) {
private void cancel(long group, long id) {
String tag = "unseen." + group + ":" + id;
NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);