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

Commit f12026d9 authored by Mark Cwalinski's avatar Mark Cwalinski
Browse files

Add @RequiresPermission annotation to setFullScreenIntent to match documentation.

The documentation says that this requires the USE_FULL_SCREEN_INTENT permission

Change-Id: I68f8e15d3743911ef935928fd621856aec06f38f
Flag: DOCS_ONLY
Bug: 347995512
parent 43ef074d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6699,7 +6699,7 @@ package android.app {
    method @NonNull public android.app.Notification.Builder setExtras(android.os.Bundle);
    method @NonNull public android.app.Notification.Builder setFlag(int, boolean);
    method @NonNull public android.app.Notification.Builder setForegroundServiceBehavior(int);
    method @NonNull public android.app.Notification.Builder setFullScreenIntent(android.app.PendingIntent, boolean);
    method @NonNull @RequiresPermission(android.Manifest.permission.USE_FULL_SCREEN_INTENT) public android.app.Notification.Builder setFullScreenIntent(android.app.PendingIntent, boolean);
    method @NonNull public android.app.Notification.Builder setGroup(String);
    method @NonNull public android.app.Notification.Builder setGroupAlertBehavior(int);
    method @NonNull public android.app.Notification.Builder setGroupSummary(boolean);
+1 −0
Original line number Diff line number Diff line
@@ -5058,6 +5058,7 @@ public class Notification implements Parcelable
         * @see Notification#fullScreenIntent
         */
        @NonNull
        @RequiresPermission(android.Manifest.permission.USE_FULL_SCREEN_INTENT)
        public Builder setFullScreenIntent(PendingIntent intent, boolean highPriority) {
            mN.fullScreenIntent = intent;
            setFlag(FLAG_HIGH_PRIORITY, highPriority);