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

Unverified Commit 3ff7af20 authored by LuK1337's avatar LuK1337 Committed by Michael Bestas
Browse files

SystemUI: Allow snoozing SD card notification unconditionally

FBE devices usually don't support adoptable therefore resulting
in SD notification popping up every boot which may be quite annoying.

This (kinda) reverts commit b138cb2c.

Change-Id: I4c76d05c6950b4f605450a034c1d76773f003e77
parent e58db8d3
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -394,9 +394,8 @@ public class StorageNotification implements CoreStartable {
        final VolumeRecord rec = mStorageManager.findRecordByUuid(vol.getFsUuid());
        final DiskInfo disk = vol.getDisk();

        // Don't annoy when user dismissed in past.  (But make sure the disk is adoptable; we
        // used to allow snoozing non-adoptable disks too.)
        if (rec == null || (rec.isSnoozed() && disk.isAdoptable())) {
        // Don't annoy when user dismissed in past.
        if (rec == null || (rec.isSnoozed() && (disk.isAdoptable() || disk.isSd()))) {
            return null;
        }
        if (disk.isAdoptable() && !rec.isInited() && rec.getType() != VolumeInfo.TYPE_PUBLIC
@@ -439,8 +438,7 @@ public class StorageNotification implements CoreStartable {
                            buildUnmountPendingIntent(vol)))
                    .setContentIntent(browseIntent)
                    .setCategory(Notification.CATEGORY_SYSTEM);
            // Non-adoptable disks can't be snoozed.
            if (disk.isAdoptable()) {
            if (disk.isAdoptable() || disk.isSd()) {
                builder.setDeleteIntent(buildSnoozeIntent(vol.getFsUuid()));
            }