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

Commit 11a8eacc authored by Jaewan Kim's avatar Jaewan Kim Committed by Automerger Merge Worker
Browse files

Keep media sessions for stopping user until the stopping is completed am:...

Keep media sessions for stopping user until the stopping is completed am: f2811097 am: c3d57f02 am: 50e1f45b am: e14dd68e

Change-Id: I3ecffbdc81b6eac8777b79eae26a994c3efc8007
parents e91cc7dd e14dd68e
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -342,13 +342,10 @@ public class MediaSessionService extends SystemService implements Monitor {
        updateUser();
    }

    // Called when the user with the userId is removed.
    @Override
    public void onStopUser(int userId) {
        if (DEBUG) Log.d(TAG, "onStopUser: " + userId);
    public void onCleanupUser(int userId) {
        if (DEBUG) Log.d(TAG, "onCleanupUser: " + userId);
        synchronized (mLock) {
            // TODO: Also handle removing user in updateUser() because adding/switching user is
            //       handled in updateUser().
            FullUserRecord user = getFullUserRecordLocked(userId);
            if (user != null) {
                if (user.mFullUserId == userId) {