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

Commit b499cc56 authored by Jay Aliomer's avatar Jay Aliomer Committed by Android (Google) Code Review
Browse files

Merge "Don't disable DND permission settings for apps that have disabled NLS"

parents f9b41559 8754d401
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -70,9 +70,11 @@ public class ZenAccessController extends BasePreferenceController {
            final List<PackageInfo> pkgs = list.getList();
            if (pkgs != null) {
                for (PackageInfo info : pkgs) {
                    if (info.applicationInfo.enabled) {
                        requestingPackages.add(info.packageName);
                    }
                }
            }
        } catch (RemoteException e) {
            Log.e(TAG, "Cannot reach packagemanager", e);
        }
+0 −1
Original line number Diff line number Diff line
@@ -114,7 +114,6 @@ public class ZenAccessSettings extends EmptyTextSettings implements
        }
        ArraySet<String> autoApproved = new ArraySet<>();
        autoApproved.addAll(mNoMan.getEnabledNotificationListenerPackages());
        requesting.addAll(autoApproved);
        Collections.sort(apps, new PackageItemInfo.DisplayNameComparator(mPkgMan));
        for (ApplicationInfo app : apps) {
            final String pkg = app.packageName;