Keep media sessions for stopping user until the stopping is completed am: f281109786 am: c3d57f029b
Change-Id: I110c70af2425bfe770dcb01fda01fc0d4e2aff39
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user