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

Commit 51aeb69d authored by Andreas Gampe's avatar Andreas Gampe Committed by Android (Google) Code Review
Browse files

Merge "Frameworks/base: Fix Notification code"

parents 84515129 1ed71f37
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -713,10 +713,10 @@ public abstract class NotificationListenerService extends Service {
                createLegacyIconExtras(sbn.getNotification());
                maybePopulateRemoteViews(sbn.getNotification());
            } catch (IllegalArgumentException e) {
                // drop corrupt notification
                sbn = null;
                // warn and drop corrupt notification
                Log.w(TAG, "onNotificationPosted: can't rebuild notification from " +
                        sbn.getPackageName());
                sbn = null;
            }

            // protect subclass from concurrent modifications of (@link mNotificationKeys}.
+1 −1
Original line number Diff line number Diff line
@@ -3686,7 +3686,7 @@ public class NotificationManagerService extends SystemService {
                    for (int i = 0; i < tokens.length; i++) {
                        String token = tokens[i];
                        if (token != null) {
                            token.trim();
                            token = token.trim();
                        }
                        if (TextUtils.isEmpty(token)) {
                            continue;