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

Commit f5bf0cb2 authored by Suprabh Shukla's avatar Suprabh Shukla
Browse files

Minor fixes

Added a synchronized block around a locked method call, updated javadoc
for a method in RecentTasks.

Change-Id: Ie58ac1d1755485902dbb453eb72a1291f9e65861
parent 11cbea90
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -20892,8 +20892,10 @@ public final class ActivityManagerService extends ActivityManagerNative
    }
    public boolean isUserStopped(int userId) {
        synchronized (this) {
            return mUserController.getStartedUserStateLocked(userId) == null;
        }
    }
    ActivityInfo getActivityInfoForUser(ActivityInfo aInfo, int userId) {
        if (aInfo == null
+2 −2
Original line number Diff line number Diff line
@@ -77,8 +77,8 @@ class RecentTasks extends ArrayList<TaskRecord> {
    }

    /**
     * Loads the persistent recentTasks for {@code userId} into {@link #mRecentTasks} from
     * persistent storage. Does nothing if they are already loaded.
     * Loads the persistent recentTasks for {@code userId} into this list from persistent storage.
     * Does nothing if they are already loaded.
     *
     * @param userId the user Id
     */