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

Commit 030bfe15 authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Update description of FSI behavior

When apps do and do not hold the FSI permission

Test: make
Bug: 322221491
Change-Id: I2e4bdda3757b9c00ae8736a3a64bf0b9533188eb
parent 9f2f3960
Loading
Loading
Loading
Loading
+16 −5
Original line number Diff line number Diff line
@@ -4643,14 +4643,25 @@ public class Notification implements Parcelable
         * to turn it off and use a normal notification, as this can be extremely
         * disruptive.
         *
         * <p>
         * The system UI may choose to display a heads-up notification, instead of
         * launching this intent, while the user is using the device.
         * </p>
         * <p>Apps targeting {@link Build.VERSION_CODES#Q} and above will have to request
         * a permission ({@link android.Manifest.permission#USE_FULL_SCREEN_INTENT}) in order to
         * use full screen intents. </p>
         * <p>
         * Prior to {@link Build.VERSION_CODES#TIRAMISU}, the system may display a
         * heads up notification (which may display on screen longer than other heads up
         * notifications), instead of launching the intent, while the user is using the device.
         * From {@link Build.VERSION_CODES#TIRAMISU},
         * the system UI will display a heads up notification, instead of launching this intent,
         * while the user is using the device. This notification will display with emphasized
         * action buttons. If the posting app holds
         * {@link android.Manifest.permission#USE_FULL_SCREEN_INTENT}, then the heads
         * up notification will appear persistently until the user dismisses or snoozes it, or
         * the app cancels it. If the posting app does not hold
         * {@link android.Manifest.permission#USE_FULL_SCREEN_INTENT}, then the notification will
         * appear as heads up notification even when the screen is locked or turned off, and this
         * notification will only be persistent for 60 seconds.
         * </p>
         * <p>
         * To be launched as a full screen intent, the notification must also be posted to a
         * channel with importance level set to IMPORTANCE_HIGH or higher.
         * </p>