Merge "Do not initiate clip classification again when copying to profile."

This commit is contained in:
Treehugger Robot
2022-01-27 18:49:27 +00:00
committed by Gerrit Code Review

View File

@@ -571,7 +571,7 @@ public class ClipboardService extends SystemService {
final boolean canCopyIntoProfile = !hasRestriction( final boolean canCopyIntoProfile = !hasRestriction(
UserManager.DISALLOW_SHARE_INTO_MANAGED_PROFILE, id); UserManager.DISALLOW_SHARE_INTO_MANAGED_PROFILE, id);
if (canCopyIntoProfile) { if (canCopyIntoProfile) {
setPrimaryClipInternalLocked( setPrimaryClipInternalNoClassifyLocked(
getClipboardLocked(id), clip, uid, sourcePackage); getClipboardLocked(id), clip, uid, sourcePackage);
} }
} }