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

Commit 8fe8eff7 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "getUserLogoutability() to have user id as argument" into main

parents 01694b7b 340f45bb
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -2776,7 +2776,7 @@ public class UserManager {
    }

    /**
     * Returns whether logging out is currently allowed for the context user.
     * Returns whether logging out is currently allowed for the specified user.
     *
     * <p>Logging out is not allowed in the following cases:
     * <ol>
@@ -2794,11 +2794,10 @@ public class UserManager {
     * {@link #LOGOUTABILITY_STATUS_CANNOT_SWITCH}.
     * @hide
     */
    @UserHandleAware
    @RequiresPermission(Manifest.permission.MANAGE_USERS)
    public @UserLogoutability int getUserLogoutability() {
    public @UserLogoutability int getUserLogoutability(@UserIdInt int userId) {
        try {
            return mService.getUserLogoutability(mUserId);
            return mService.getUserLogoutability(userId);
        } catch (RemoteException re) {
            throw re.rethrowFromSystemServer();
        }