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

Commit 652dc0e0 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 6ee0230a
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -352,9 +352,8 @@ public class StorageNotification extends SystemUI {
        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;
        }

@@ -389,8 +388,7 @@ public class StorageNotification extends SystemUI {
                            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()));
            }