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

Commit 51a2495f authored by Ibrahim Yilmaz's avatar Ibrahim Yilmaz
Browse files

Copy Notification "When" field for redacted notifications


Bug: 387452286
Change-Id: I1140e9c559f5b156fdefd03f57f6e296fd54599f
Test: Send a redacted notification and check the time.
Flag: android.app.redact_sensitive_content_notifications_on_lockscreen
parent 7d5db209
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -504,6 +504,7 @@ public class NotificationContentInflater implements NotificationRowContentBinder
        CharSequence redactedMessage = systemUiContext.getString(
                R.string.redacted_notification_single_line_text
        );
        redacted.setWhen(original.getWhen());

        if (originalStyle instanceof MessagingStyle oldStyle) {
            MessagingStyle newStyle = new MessagingStyle(oldStyle.getUser());