Loading services/core/java/com/android/server/notification/NotificationRecordLogger.java +6 −0 Original line number Diff line number Diff line Loading @@ -23,6 +23,8 @@ import static android.service.notification.NotificationListenerService.REASON_CA import static android.service.notification.NotificationListenerService.REASON_CLEAR_DATA; import static android.service.notification.NotificationListenerService.REASON_CLICK; import static com.android.server.notification.Flags.logVisuallyChangedUpdates; import android.annotation.DurationMillisLong; import android.annotation.NonNull; import android.annotation.Nullable; Loading Loading @@ -423,6 +425,10 @@ interface NotificationRecordLogger { return true; } if (logVisuallyChangedUpdates() && r.isTextChanged()) { return true; } return !(Objects.equals(r.getSbn().getChannelIdLogTag(), old.getSbn().getChannelIdLogTag()) && Objects.equals(r.getSbn().getGroupLogTag(), old.getSbn().getGroupLogTag()) Loading services/core/java/com/android/server/notification/flags.aconfig +10 −0 Original line number Diff line number Diff line Loading @@ -186,3 +186,13 @@ flag { purpose: PURPOSE_BUGFIX } } flag { name: "log_visually_changed_updates" namespace: "systemui" description: "Logs a notification update if it is visually changed" bug: "420989666" metadata { purpose: PURPOSE_BUGFIX } } No newline at end of file Loading
services/core/java/com/android/server/notification/NotificationRecordLogger.java +6 −0 Original line number Diff line number Diff line Loading @@ -23,6 +23,8 @@ import static android.service.notification.NotificationListenerService.REASON_CA import static android.service.notification.NotificationListenerService.REASON_CLEAR_DATA; import static android.service.notification.NotificationListenerService.REASON_CLICK; import static com.android.server.notification.Flags.logVisuallyChangedUpdates; import android.annotation.DurationMillisLong; import android.annotation.NonNull; import android.annotation.Nullable; Loading Loading @@ -423,6 +425,10 @@ interface NotificationRecordLogger { return true; } if (logVisuallyChangedUpdates() && r.isTextChanged()) { return true; } return !(Objects.equals(r.getSbn().getChannelIdLogTag(), old.getSbn().getChannelIdLogTag()) && Objects.equals(r.getSbn().getGroupLogTag(), old.getSbn().getGroupLogTag()) Loading
services/core/java/com/android/server/notification/flags.aconfig +10 −0 Original line number Diff line number Diff line Loading @@ -186,3 +186,13 @@ flag { purpose: PURPOSE_BUGFIX } } flag { name: "log_visually_changed_updates" namespace: "systemui" description: "Logs a notification update if it is visually changed" bug: "420989666" metadata { purpose: PURPOSE_BUGFIX } } No newline at end of file