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

Commit 5d69c245 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Show non-work apps before work apps." into qt-dev

parents ead4dfd1 7f0c7a24
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -237,7 +237,13 @@ public final class PermissionAppsFragment extends SettingsWithLargeHeader implem
        boolean hasPermissionWithBackgroundMode = false;

        ArrayList<PermissionApp> sortedApps = new ArrayList<>(permissionApps.getApps());
        sortedApps.sort((x, y) -> mCollator.compare(x.getLabel(), y.getLabel()));
        sortedApps.sort((x, y) -> {
            int result = mCollator.compare(x.getLabel(), y.getLabel());
            if (result == 0) {
                result = x.getUid() - y.getUid();
            }
            return result;
        });

        for (int i = 0; i < sortedApps.size(); i++) {
            PermissionApp app = sortedApps.get(i);