Loading core/java/android/service/notification/Adjustment.java +8 −2 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ import android.annotation.Nullable; import android.annotation.StringDef; import android.annotation.SystemApi; import android.app.Notification; import android.os.Build; import android.os.Bundle; import android.os.Parcel; import android.os.Parcelable; Loading Loading @@ -146,8 +147,13 @@ public final class Adjustment implements Parcelable { /** * Data type: boolean, when true it suggests that the content text of this notification is * sensitive. A notification listener can use this information to redact notifications on locked * devices. * sensitive. The system uses this information to improve privacy around the notification * content. In {@link Build.VERSION_CODES#VANILLA_ICE_CREAM}, sensitive notification content is * redacted from updates to most {@link NotificationListenerService * NotificationListenerServices}. Also if an app posts a sensitive notification while * {@link android.media.projection.MediaProjection screen-sharing} is active, that app's windows * are blocked from screen-sharing and a {@link android.widget.Toast Toast} is shown to inform * the user about this. */ public static final String KEY_SENSITIVE_CONTENT = "key_sensitive_content"; Loading Loading
core/java/android/service/notification/Adjustment.java +8 −2 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ import android.annotation.Nullable; import android.annotation.StringDef; import android.annotation.SystemApi; import android.app.Notification; import android.os.Build; import android.os.Bundle; import android.os.Parcel; import android.os.Parcelable; Loading Loading @@ -146,8 +147,13 @@ public final class Adjustment implements Parcelable { /** * Data type: boolean, when true it suggests that the content text of this notification is * sensitive. A notification listener can use this information to redact notifications on locked * devices. * sensitive. The system uses this information to improve privacy around the notification * content. In {@link Build.VERSION_CODES#VANILLA_ICE_CREAM}, sensitive notification content is * redacted from updates to most {@link NotificationListenerService * NotificationListenerServices}. Also if an app posts a sensitive notification while * {@link android.media.projection.MediaProjection screen-sharing} is active, that app's windows * are blocked from screen-sharing and a {@link android.widget.Toast Toast} is shown to inform * the user about this. */ public static final String KEY_SENSITIVE_CONTENT = "key_sensitive_content"; Loading