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

Commit 2b26492b authored by Yuri Lin's avatar Yuri Lin Committed by Android (Google) Code Review
Browse files

Merge "Log notification updates when there's visually changed text." into main

parents 9e2754d1 5bcc9b7e
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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;
@@ -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())
+10 −0
Original line number Diff line number Diff line
@@ -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