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

Commit 6566b9b2 authored by LuK1337's avatar LuK1337 Committed by Jan Altensen
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 1f88c30d
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -367,9 +367,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;
        }

@@ -412,8 +411,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()));
            }