Fix crash on fast forward
This commit is contained in:
parent
54e17bf9fd
commit
7d323ee148
1 changed files with 4 additions and 1 deletions
|
|
@ -148,7 +148,10 @@ public final class NotificationUtil {
|
||||||
|
|
||||||
@SuppressLint("RestrictedApi")
|
@SuppressLint("RestrictedApi")
|
||||||
boolean shouldUpdateBufferingSlot() {
|
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
|
// this should never happen, but let's make sure notification actions are populated
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue