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

Commit bf3331f9 authored by Nate Myren's avatar Nate Myren
Browse files

Always show icons and subtitle in ReviewOngoingUsage

Bug: 162547999
Test: Go to Camera while mic is not in use, verify camera shows subtitle
and icon

Change-Id: I3af931e7c8f1116ee6ffe0fbd435277d1982c572
parent 50765ad4
Loading
Loading
Loading
Loading
+18 −22
Original line number Diff line number Diff line
@@ -331,9 +331,6 @@ public class ReviewOngoingUsageFragment extends PreferenceFragmentCompat {
            ((TextView) itemView.requireViewById(R.id.app_name)).setText(app.getLabel());
            ((ImageView) itemView.requireViewById(R.id.app_icon)).setImageDrawable(app.getIcon());

            // Add the icons for the groups this app used as long as multiple groups were used by
            // some app.
            if (usedGroups.size() > 1) {
            ArrayMap<String, CharSequence> usedGroupsThisApp = new ArrayMap<>();

            ViewGroup iconFrame = itemView.requireViewById(R.id.icons);
@@ -354,7 +351,6 @@ public class ReviewOngoingUsageFragment extends PreferenceFragmentCompat {
            TextView permissionsList = itemView.requireViewById(R.id.permissionsList);
            permissionsList.setText(getListOfPermissionLabels(usedGroupsThisApp));
            permissionsList.setVisibility(View.VISIBLE);
            }

            itemView.setOnClickListener((v) -> {
                String packageName = app.getPackageName();