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

Commit c6dd5210 authored by Selim Cinek's avatar Selim Cinek
Browse files

Allow clicking fullscreen intent notifications now

When an app didn’t set a contentIntent but only a fullscreen
intent, we couldn’t click on it.

Change-Id: Ib779d06bb289bedaa0689c027ec21fc9cb9eb980
parent a6c6bfb6
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -1664,7 +1664,10 @@ public abstract class BaseStatusBar extends SystemUI implements
                return;
            }

            final PendingIntent intent = sbn.getNotification().contentIntent;
            Notification notification = sbn.getNotification();
            final PendingIntent intent = notification.contentIntent != null
                    ? notification.contentIntent
                    : notification.fullScreenIntent;
            final String notificationKey = sbn.getKey();

            // Mark notification for one frame.
@@ -1746,8 +1749,8 @@ public abstract class BaseStatusBar extends SystemUI implements
        }

        public void register(ExpandableNotificationRow row, StatusBarNotification sbn) {
            final PendingIntent contentIntent = sbn.getNotification().contentIntent;
            if (contentIntent != null) {
            Notification notification = sbn.getNotification();
            if (notification.contentIntent != null || notification.fullScreenIntent != null) {
                row.setOnClickListener(this);
            } else {
                row.setOnClickListener(null);