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

Commit a79e2bed authored by Yorke Lee's avatar Yorke Lee
Browse files

Block access to call logs from the corp profile

Bug: 16812842
Change-Id: Ie4342b5efb2419097c35c0ddebd486a098cea523
parent 1584609f
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) {