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

Commit f8543809 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Better public volumes handling on secondary users.

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
parent ff23ffa8
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -323,10 +323,10 @@ public class StorageNotification extends SystemUI {


        if (notif != null) {
        if (notif != null) {
            mNotificationManager.notifyAsUser(vol.getId(), SystemMessage.NOTE_STORAGE_PUBLIC,
            mNotificationManager.notifyAsUser(vol.getId(), SystemMessage.NOTE_STORAGE_PUBLIC,
                    notif, UserHandle.ALL);
                    notif, UserHandle.of(vol.getMountUserId()));
        } else {
        } else {
            mNotificationManager.cancelAsUser(vol.getId(), SystemMessage.NOTE_STORAGE_PUBLIC,
            mNotificationManager.cancelAsUser(vol.getId(), SystemMessage.NOTE_STORAGE_PUBLIC,
                    UserHandle.ALL);
                    UserHandle.of(vol.getMountUserId()));
        }
        }
    }
    }