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:
Yorke Lee
2014-08-11 16:52:59 +00:00
committed by Android Git Automerger

View File

@@ -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) {