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

Commit 545a4493 authored by Ahaan Ugale's avatar Ahaan Ugale
Browse files

Adjustment#KEY_SENSITIVE_CONTENT javadoc: Describe behavior

Describe the behavior guaranteed (through CTS) from setting this value
to true.

Bug: 323580163
Test: n/a -- only javadoc
Change-Id: I43de38570f3e6fc003b7d0b8dd3dea4a823998e2
parent 912d7519
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";