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

Commit c9752ebb authored by Oleg Kibirev's avatar Oleg Kibirev
Browse files

Fix a comment on PowerManager.dream to indicate all required permissions

Bug: 119130690
Test: not needed
Change-Id: Ib4fff5c5b3507c9f5bda7b97d8e76178b7335bab
parent 9d7964b9
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -1008,7 +1008,8 @@ public final class PowerManager {
     * progress, does nothing. Unlike {@link #nap(long)}, this does not put device to sleep when
     * dream ends.
     * </p><p>
     * Requires the {@link android.Manifest.permission#WRITE_DREAM_STATE} permission.
     * Requires the {@link android.Manifest.permission#READ_DREAM_STATE} and
     * {@link android.Manifest.permission#WRITE_DREAM_STATE} permissions.
     * </p>
     *
     * @param time The time when the request to nap was issued, in the
@@ -1019,7 +1020,9 @@ public final class PowerManager {
     * @hide
     */
    @SystemApi
    @RequiresPermission(android.Manifest.permission.WRITE_DREAM_STATE)
    @RequiresPermission(allOf = {
            android.Manifest.permission.READ_DREAM_STATE,
            android.Manifest.permission.WRITE_DREAM_STATE })
    public void dream(long time) {
        Sandman.startDreamByUserRequest(mContext);
    }