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

Unverified Commit bb304dd2 authored by Adnan Begovic's avatar Adnan Begovic Committed by Michael Bestas
Browse files

SystemUI: Add support for persistent usb drive notification.



Co-authored-by: default avatarAdrian DC <radian.dc@gmail.com>
Co-authored-by: default avatarHan Wang <416810799@qq.com>
Change-Id: I331a759aeb914e46e3ef4842896d3465d894707a
parent a04bd917
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -438,6 +438,11 @@ public class StorageNotification implements CoreStartable {
                            buildUnmountPendingIntent(vol)))
                    .setContentIntent(browseIntent)
                    .setCategory(Notification.CATEGORY_SYSTEM);
            // USB disks notification can be persistent
            if (disk.isUsb()) {
                builder.setOngoing(true);
            }

            if (disk.isAdoptable() || disk.isSd()) {
                builder.setDeleteIntent(buildSnoozeIntent(vol.getFsUuid()));
            }