Fix crash on fast forward

pull/4410/head
Stypox 2020-10-05 15:53:50 +02:00
rodzic 10e95bf1b1
commit 06fb89fae2
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4BDF1B40A49FDD23
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -148,7 +148,10 @@ public final class NotificationUtil {
@SuppressLint("RestrictedApi")
boolean shouldUpdateBufferingSlot() {
if (notificationBuilder.mActions.size() < 3) {
if (notificationBuilder == null) {
// if there is no notification active, there is no point in updating it
return false;
} else if (notificationBuilder.mActions.size() < 3) {
// this should never happen, but let's make sure notification actions are populated
return true;
}