mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-14 00:05:04 +01:00
Try to fix null context
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
d4ef4d0e4a
commit
32e3203034
@ -76,7 +76,8 @@ public class NotificationUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void cancelExistingNotifications(Context context, UserEntity conversationUser) {
|
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 notificationManager =
|
||||||
(NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
|
(NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
|
||||||
|
Loading…
Reference in New Issue
Block a user