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

Commit f2874910 authored by John Spurlock's avatar John Spurlock Committed by Android (Google) Code Review
Browse files

Merge "Log errors found in notification listener callbacks."

parents 728dfd77 c133ab82
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -164,11 +164,19 @@ public abstract class NotificationListenerService extends Service {
    private class INotificationListenerWrapper extends INotificationListener.Stub {
        @Override
        public void onNotificationPosted(StatusBarNotification sbn) {
            try {
                NotificationListenerService.this.onNotificationPosted(sbn);
            } catch (Throwable t) {
                Log.w(TAG, "Error running onNotificationPosted", t);
            }
        }
        @Override
        public void onNotificationRemoved(StatusBarNotification sbn) {
            try {
                NotificationListenerService.this.onNotificationRemoved(sbn);
            } catch (Throwable t) {
                Log.w(TAG, "Error running onNotificationRemoved", t);
            }
        }
    }
}