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

Commit 7699a19d authored by Tony Mak's avatar Tony Mak
Browse files

Remove @removed trySetQuietModeEnabled

Context:
Updated the API according to API council feedback. Marked it as
@Removed and keep it for a while for Launcher. But now Launcher
prebuilt is updated, we are safe to remove it.

Test: Build

BUG: 71818127

Change-Id: I33fec12addf7031bfbcd86bce9e636c31d0ea4d3
parent f12f652c
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -265,7 +265,6 @@ package android.os {
    method public android.graphics.drawable.Drawable getBadgedDrawableForUser(android.graphics.drawable.Drawable, android.os.UserHandle, android.graphics.Rect, int);
    method public android.graphics.drawable.Drawable getBadgedIconForUser(android.graphics.drawable.Drawable, android.os.UserHandle);
    method public java.lang.CharSequence getBadgedLabelForUser(java.lang.CharSequence, android.os.UserHandle);
    method public deprecated boolean trySetQuietModeEnabled(boolean, android.os.UserHandle);
  }

}
+0 −6
Original line number Diff line number Diff line
@@ -2259,12 +2259,6 @@ public class UserManager {
        }
    }

    /** @removed */
    @Deprecated
    public boolean trySetQuietModeEnabled(boolean enableQuietMode, @NonNull UserHandle userHandle) {
        return requestQuietModeEnabled(enableQuietMode, userHandle);
    }

    /**
     * Enables or disables quiet mode for a managed profile. If quiet mode is enabled, apps in a
     * managed profile don't run, generate notifications, or consume data or battery.