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

Commit 7b4a8a4e authored by Fyodor Kupolov's avatar Fyodor Kupolov
Browse files

Return USER_OP_SUCCESS when force stopping a user

Bug: 26379502
Change-Id: I08dc18eec5b8dccf63a806acc9b3bfda890ceedb
parent ecd7f715
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -304,7 +304,10 @@ final class UserController {
                        + relatedUserId);
                // We still need to stop the requested user if it's a force stop.
                if (force) {
                    Slog.i(TAG,
                            "Force stop user " + userId + ". Related users will not be stopped");
                    stopSingleUserLocked(userId, callback);
                    return USER_OP_SUCCESS;
                }
                return USER_OP_ERROR_RELATED_USERS_CANNOT_STOP;
            }