mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-27 17:08:34 +03:00
Try to fix null context
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
d4ef4d0e4a
commit
32e3203034
1 changed files with 2 additions and 1 deletions
|
@ -76,7 +76,8 @@ public class NotificationUtils {
|
|||
}
|
||||
|
||||
public static void cancelExistingNotifications(Context context, UserEntity conversationUser) {
|
||||
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M && conversationUser.getId() != -1) {
|
||||
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M && conversationUser.getId() != -1 &&
|
||||
context != null) {
|
||||
|
||||
NotificationManager notificationManager =
|
||||
(NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
|
||||
|
|
Loading…
Reference in a new issue