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

Commit 97f63ba9 authored by Alison Cichowlas's avatar Alison Cichowlas Committed by Android (Google) Code Review
Browse files

Merge "Sort Uncategorized channel to the bottom." into pi-dev

parents 2483a408 83ca82f7
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -355,7 +355,13 @@ abstract public class NotificationSettingsBase extends DashboardFragment {
            (left, right) -> {
                if (left.isDeleted() != right.isDeleted()) {
                    return Boolean.compare(left.isDeleted(), right.isDeleted());
                } else if (left.getId().equals(NotificationChannel.DEFAULT_CHANNEL_ID)) {
                    // Uncategorized/miscellaneous legacy channel goes last
                    return 1;
                } else if (right.getId().equals(NotificationChannel.DEFAULT_CHANNEL_ID)) {
                    return -1;
                }

                return left.getId().compareTo(right.getId());
            };