am b0c60f1b: am b789a8ee: Block access to call logs from the corp profile
* commit 'b0c60f1b858b51e11f6715fe1ed078255cff1cd5': Block access to call logs from the corp profile
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user