mirror of https://github.com/M66B/FairEmail.git
Fixed cancelling notifications
This commit is contained in:
parent
63b83fb480
commit
b52c3b0386
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue