Cleanups
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Родитель
41f5dd9a24
Коммит
eb953d648a
|
@ -371,5 +371,4 @@ public class NotificationJob extends Job {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -28,6 +28,7 @@ import android.content.Context;
|
|||
import android.graphics.Color;
|
||||
import android.os.Build;
|
||||
import android.service.notification.StatusBarNotification;
|
||||
import android.text.TextUtils;
|
||||
|
||||
import com.nextcloud.talk.R;
|
||||
import com.nextcloud.talk.models.database.UserEntity;
|
||||
|
@ -88,8 +89,11 @@ public class NotificationUtils {
|
|||
StatusBarNotification statusBarNotifications[] = notificationManager.getActiveNotifications();
|
||||
for (StatusBarNotification statusBarNotification : statusBarNotifications) {
|
||||
|
||||
if (statusBarNotification.getGroupKey().equals(crc32GroupString)) {
|
||||
notificationManager.cancel(statusBarNotification.getId());
|
||||
if (statusBarNotification.getNotification() != null &&
|
||||
!TextUtils.isEmpty(statusBarNotification.getNotification().getGroup())) {
|
||||
if (statusBarNotification.getNotification().getGroup().equals(crc32GroupString)) {
|
||||
notificationManager.cancel(statusBarNotification.getId());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче