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

Commit 32d460af authored by Yorke Lee's avatar Yorke Lee Committed by Android Git Automerger
Browse files

am b789a8ee: Block access to call logs from the corp profile

* commit 'b789a8eea4e9c94617c8c9540bdd22739cae3e3f':
  Block access to call logs from the corp profile
parents 452021f0 a79e2bed
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -510,9 +510,10 @@ public class CallLog {
                for (int i = 0; i < count; i++) {
                    final UserInfo user = users.get(i);
                    final UserHandle userHandle = user.getUserHandle();
                    if (userManager.isUserRunning(userHandle) &&
                            !userManager.hasUserRestriction(UserManager.DISALLOW_OUTGOING_CALLS,
                                    userHandle)) {
                    if (userManager.isUserRunning(userHandle)
                            && !userManager.hasUserRestriction(UserManager.DISALLOW_OUTGOING_CALLS,
                                    userHandle)
                            && !user.isManagedProfile()) {
                        Uri uri = addEntryAndRemoveExpiredEntries(context,
                                ContentProvider.maybeAddUserId(CONTENT_URI, user.id), values);
                        if (user.id == currentUserId) {