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

Commit 93beea5c authored by Hai Zhang's avatar Hai Zhang
Browse files

Don't show roles that are not visible.

Bug: 124452117
Bug: 124260975
Test: manual
Change-Id: If1135d1e818ef9687c333146af57a139876bf879
parent 8f669af9
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -95,6 +95,10 @@ public class RoleListLiveData extends AsyncTaskLiveData<List<RoleItem>>
                continue;
            }

            if (!role.isVisibleAsUser(mUser, mContext)) {
                continue;
            }

            if (mExclusive && role.getQualifyingPackagesAsUser(mUser, mContext).isEmpty()) {
                continue;
            }