Loading services/core/java/com/android/server/storage/StorageSessionController.java +5 −4 Original line number Diff line number Diff line Loading @@ -147,17 +147,18 @@ public final class StorageSessionController { return; } String sessionId = vol.getId(); int userId = getConnectionUserIdForVolume(vol); int connectionUserId = getConnectionUserIdForVolume(vol); StorageUserConnection connection = null; synchronized (mLock) { connection = mConnections.get(userId); connection = mConnections.get(connectionUserId); if (connection != null) { Slog.i(TAG, "Notifying volume state changed for session with id: " + sessionId); connection.notifyVolumeStateChanged(sessionId, vol.buildStorageVolume(mContext, userId, false)); vol.buildStorageVolume(mContext, vol.getMountUserId(), false)); } else { Slog.w(TAG, "No available storage user connection for userId : " + userId); Slog.w(TAG, "No available storage user connection for userId : " + connectionUserId); } } } Loading Loading
services/core/java/com/android/server/storage/StorageSessionController.java +5 −4 Original line number Diff line number Diff line Loading @@ -147,17 +147,18 @@ public final class StorageSessionController { return; } String sessionId = vol.getId(); int userId = getConnectionUserIdForVolume(vol); int connectionUserId = getConnectionUserIdForVolume(vol); StorageUserConnection connection = null; synchronized (mLock) { connection = mConnections.get(userId); connection = mConnections.get(connectionUserId); if (connection != null) { Slog.i(TAG, "Notifying volume state changed for session with id: " + sessionId); connection.notifyVolumeStateChanged(sessionId, vol.buildStorageVolume(mContext, userId, false)); vol.buildStorageVolume(mContext, vol.getMountUserId(), false)); } else { Slog.w(TAG, "No available storage user connection for userId : " + userId); Slog.w(TAG, "No available storage user connection for userId : " + connectionUserId); } } } Loading