Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 408c8710 authored by Gus Prevas's avatar Gus Prevas
Browse files

Fixes NPE when a notification has no snooze menu item.

Fixes: 120492561
Test: manual - swiped left on a foreground service notification
Change-Id: I96ac8fad250d60d739193fb70508cdd6fb4b34da
parent afafd66d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -267,8 +267,10 @@ public class NotificationMenuRow implements NotificationMenuRowPlugin, View.OnCl
        } else {
            mRightMenuItems.add(mInfoItem);
            mRightMenuItems.add(mAppOpsItem);
            if (!isForeground) {
                mRightMenuItems.add(mSnoozeItem);
            }
        }

        populateMenuViews();
        if (resetState) {