Loading core/java/android/app/Notification.java +6 −2 Original line number Diff line number Diff line Loading @@ -7134,7 +7134,9 @@ public class Notification implements Parcelable */ public CharSequence ensureColorSpanContrastOrStripStyling(CharSequence cs, int buttonFillColor) { if (Flags.cleanUpSpansAndNewLines()) { // Ongoing promoted notifications are allowed to have styling. final boolean isPromotedOngoing = mN.isPromotedOngoing(); if (!isPromotedOngoing && Flags.cleanUpSpansAndNewLines()) { return stripStyling(cs); } Loading Loading @@ -8686,7 +8688,9 @@ public class Notification implements Parcelable // Replace the text with the big text, but only if the big text is not empty. CharSequence bigTextText = mBuilder.processLegacyText(mBigText); if (Flags.cleanUpSpansAndNewLines()) { // Ongoing promoted notifications are allowed to have styling. final boolean isPromotedOngoing = mBuilder.mN.isPromotedOngoing(); if (!isPromotedOngoing && Flags.cleanUpSpansAndNewLines()) { bigTextText = normalizeBigText(stripStyling(bigTextText)); } if (!TextUtils.isEmpty(bigTextText)) { Loading Loading
core/java/android/app/Notification.java +6 −2 Original line number Diff line number Diff line Loading @@ -7134,7 +7134,9 @@ public class Notification implements Parcelable */ public CharSequence ensureColorSpanContrastOrStripStyling(CharSequence cs, int buttonFillColor) { if (Flags.cleanUpSpansAndNewLines()) { // Ongoing promoted notifications are allowed to have styling. final boolean isPromotedOngoing = mN.isPromotedOngoing(); if (!isPromotedOngoing && Flags.cleanUpSpansAndNewLines()) { return stripStyling(cs); } Loading Loading @@ -8686,7 +8688,9 @@ public class Notification implements Parcelable // Replace the text with the big text, but only if the big text is not empty. CharSequence bigTextText = mBuilder.processLegacyText(mBigText); if (Flags.cleanUpSpansAndNewLines()) { // Ongoing promoted notifications are allowed to have styling. final boolean isPromotedOngoing = mBuilder.mN.isPromotedOngoing(); if (!isPromotedOngoing && Flags.cleanUpSpansAndNewLines()) { bigTextText = normalizeBigText(stripStyling(bigTextText)); } if (!TextUtils.isEmpty(bigTextText)) { Loading