Public volumes are only mounted for a single user at a time, so only
show notifications and launch Intents for the relevant user.
Test: manual
Bug:
73642796
Change-Id: I012206bad031ed37659b6dbec2ef1eec389410da
if (notif != null) {
mNotificationManager.notifyAsUser(vol.getId(), SystemMessage.NOTE_STORAGE_PUBLIC,
- notif, UserHandle.ALL);
+ notif, UserHandle.of(vol.getMountUserId()));
} else {
mNotificationManager.cancelAsUser(vol.getId(), SystemMessage.NOTE_STORAGE_PUBLIC,
- UserHandle.ALL);
+ UserHandle.of(vol.getMountUserId()));
}
}