Android 5 Lollipop compatibility

This commit is contained in:
M66B
2018-12-09 18:49:52 +01:00
parent be415c6a5f
commit ea895040f5
16 changed files with 85 additions and 48 deletions

View File

@@ -1440,7 +1440,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
db.identity().setIdentityError(message.identity, null);
NotificationManager nm = context.getSystemService(NotificationManager.class);
NotificationManager nm = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
nm.cancel("send", message.identity.intValue());
} else
EntityOperation.queue(db, message, EntityOperation.DELETE);