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

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

Merge "Do not count disabled apps in PermController"

parents 89751b4b 2c16995a
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -120,6 +120,9 @@ public class PermissionApps {
    public int getGrantedCount() {
        int count = 0;
        for (PermissionApp app : mPermApps) {
            if (!app.getAppInfo().enabled) {
                continue;
            }
            if (!Utils.shouldShowPermission(mContext, app.getPermissionGroup())) {
                continue;
            }
@@ -137,6 +140,9 @@ public class PermissionApps {
    public int getTotalCount() {
        int count = 0;
        for (PermissionApp app : mPermApps) {
            if (!app.getAppInfo().enabled) {
                continue;
            }
            if (!Utils.shouldShowPermission(mContext, app.getPermissionGroup())) {
                continue;
            }