diff options
| author | 2024-04-12 22:46:30 +0000 | |
|---|---|---|
| committer | 2024-04-12 22:46:30 +0000 | |
| commit | a885727ceb19816cc8e60b11d2af8023b36f0ac7 (patch) | |
| tree | 8121bb0d25a1be221007c8ef93c2be20d2692517 | |
| parent | 4487bc7fee2d93d1b623dd0a5bbcbe5c32b82617 (diff) | |
| parent | 545a4493355bfdcae2f6c3874481fdce8c8193b8 (diff) | |
Merge "Adjustment#KEY_SENSITIVE_CONTENT javadoc: Describe behavior" into main
| -rw-r--r-- | core/java/android/service/notification/Adjustment.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/core/java/android/service/notification/Adjustment.java b/core/java/android/service/notification/Adjustment.java index 9696dbcc421b..9c1494660e8b 100644 --- a/core/java/android/service/notification/Adjustment.java +++ b/core/java/android/service/notification/Adjustment.java @@ -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; @@ -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"; |