Merge "Fix StorageVolume creation for clone users." into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
11ce311d5d
@@ -147,17 +147,18 @@ public final class StorageSessionController {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
String sessionId = vol.getId();
|
String sessionId = vol.getId();
|
||||||
int userId = getConnectionUserIdForVolume(vol);
|
int connectionUserId = getConnectionUserIdForVolume(vol);
|
||||||
|
|
||||||
StorageUserConnection connection = null;
|
StorageUserConnection connection = null;
|
||||||
synchronized (mLock) {
|
synchronized (mLock) {
|
||||||
connection = mConnections.get(userId);
|
connection = mConnections.get(connectionUserId);
|
||||||
if (connection != null) {
|
if (connection != null) {
|
||||||
Slog.i(TAG, "Notifying volume state changed for session with id: " + sessionId);
|
Slog.i(TAG, "Notifying volume state changed for session with id: " + sessionId);
|
||||||
connection.notifyVolumeStateChanged(sessionId,
|
connection.notifyVolumeStateChanged(sessionId,
|
||||||
vol.buildStorageVolume(mContext, userId, false));
|
vol.buildStorageVolume(mContext, vol.getMountUserId(), false));
|
||||||
} else {
|
} else {
|
||||||
Slog.w(TAG, "No available storage user connection for userId : " + userId);
|
Slog.w(TAG, "No available storage user connection for userId : "
|
||||||
|
+ connectionUserId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user