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

Commit 9161382e authored by LuK1337's avatar LuK1337
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
(cherry picked from commit 7b11a554)
parent 64202199
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -376,9 +376,8 @@ public class StorageNotification extends 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.isSnoozed() && disk.isAdoptable()) {
        // Don't annoy when user dismissed in past.
        if (rec.isSnoozed() && (disk.isAdoptable() || disk.isSd())) {
            return null;
        }

@@ -421,8 +420,7 @@ public class StorageNotification extends 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()));
            }