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

Commit 869f53b3 authored by Oli Lan's avatar Oli Lan
Browse files

Do not initiate clip classification again when copying to profile.

This is a follow-on from aosp/1942953.

After the changes in that CL, when copying a clip to a profile the
new method setPrimaryClipInternalNoClassifyLocked must be used, so
that classification is not started multiple times.

Bug: 215505009
Test: build and manual check
Test: atest ClipDescriptionTest
Change-Id: If4b7d863b1aa70d14e28d6cbd0cb9252a606fc66
parent 07026227
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -571,7 +571,7 @@ public class ClipboardService extends SystemService {
                        final boolean canCopyIntoProfile = !hasRestriction(
                                UserManager.DISALLOW_SHARE_INTO_MANAGED_PROFILE, id);
                        if (canCopyIntoProfile) {
                            setPrimaryClipInternalLocked(
                            setPrimaryClipInternalNoClassifyLocked(
                                    getClipboardLocked(id), clip, uid, sourcePackage);
                        }
                    }