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

Commit d77f3fe7 authored by Lyn's avatar Lyn
Browse files

Rename API: NotificationManager canUseFullScreenIntent

Developers are more likely to search for "canUse" instead of
"canSend" since "use" is part of the permission name
USE_FULL_SCREEN_INTENT

Fixes: 270704695
Test: cts
Change-Id: I26a17bc13dd8f458be0c17c68597f4f5545e1d73
parent c122093e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6784,7 +6784,7 @@ package android.app {
    method public boolean areNotificationsEnabled();
    method public boolean areNotificationsPaused();
    method public boolean canNotifyAsPackage(@NonNull String);
    method public boolean canSendFullScreenIntent();
    method public boolean canUseFullScreenIntent();
    method public void cancel(int);
    method public void cancel(@Nullable String, int);
    method public void cancelAll();
+1 −1
Original line number Diff line number Diff line
@@ -873,7 +873,7 @@ public class NotificationManager {
     * permission to your manifest, and use
     * {@link android.provider.Settings#ACTION_MANAGE_APP_USE_FULL_SCREEN_INTENT}.
     */
    public boolean canSendFullScreenIntent() {
    public boolean canUseFullScreenIntent() {
        final int result = PermissionChecker.checkPermissionForPreflight(mContext,
                android.Manifest.permission.USE_FULL_SCREEN_INTENT,
                mContext.getAttributionSource());