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

Commit a885727c authored by Ahaan Ugale's avatar Ahaan Ugale Committed by Android (Google) Code Review
Browse files

Merge "Adjustment#KEY_SENSITIVE_CONTENT javadoc: Describe behavior" into main

parents 4487bc7f 545a4493
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -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";