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

Commit 63a819aa authored by Jason Monk's avatar Jason Monk
Browse files

Hide permission related summaries

We need to get this data from the PackageInstaller directly, in the
mean time hide the summaries since they are incorrect.

Bug: 21078474
Change-Id: I1c1b50ee6806cfbf16830fbff5bf8ffae344451a
parent f82cd8f4
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -135,8 +135,8 @@ public class AdvancedAppSettings extends SettingsPreferenceFragment implements
    public void onPermissionLoadComplete() {
        Activity activity = getActivity();
        if (activity == null) return;
        mAppPermsPreference.setSummary(activity.getString(R.string.app_permissions_summary,
                mPermissionsInfo.getRuntimePermAppsGrantedCount(),
                mPermissionsInfo.getRuntimePermAppsCount()));
//        mAppPermsPreference.setSummary(activity.getString(R.string.app_permissions_summary,
//                mPermissionsInfo.getRuntimePermAppsGrantedCount(),
//                mPermissionsInfo.getRuntimePermAppsCount()));
    }
}
+1 −1
Original line number Diff line number Diff line
@@ -445,7 +445,7 @@ public class InstalledAppDetails extends AppInfoBase
        // Update the preference summaries.
        Activity context = getActivity();
        mStoragePreference.setSummary(AppStorageSettings.getSummary(mAppEntry, context));
        mPermissionsPreference.setSummary(AppPermissionSettings.getSummary(mAppEntry, context));
//        mPermissionsPreference.setSummary(AppPermissionSettings.getSummary(mAppEntry, context));
        mLaunchPreference.setSummary(Utils.getLaunchByDeafaultSummary(mAppEntry, mUsbManager,
                mPm, context));
        mNotificationPreference.setSummary(getNotificationSummary(mAppEntry, context,
+2 −2
Original line number Diff line number Diff line
@@ -104,8 +104,8 @@ public class ManagePermissions extends SettingsPreferenceFragment
        public void refreshUi() {
            setTitle(mGroup.label);
            setIcon(mGroup.icon);
            setSummary(getContext().getString(R.string.app_permissions_group_summary,
                    mGroup.grantedApps.size(), mGroup.possibleApps.size()));
//            setSummary(getContext().getString(R.string.app_permissions_group_summary,
//                    mGroup.grantedApps.size(), mGroup.possibleApps.size()));
        }

        @Override