Bad lock object.
Locking on an interned string can cause unexpected locking collisions, and we should lock the mLock object here. Change-Id: I8b6557371b0cb79e1bcbc732982cf66b9de663a5
This commit is contained in:
@@ -582,7 +582,7 @@ public class ClipboardService extends SystemService {
|
||||
|
||||
void setPrimaryClipInternal(PerUserClipboard clipboard, @Nullable ClipData clip,
|
||||
int uid) {
|
||||
synchronized ("mLock") {
|
||||
synchronized (mLock) {
|
||||
setPrimaryClipInternalLocked(clipboard, clip, uid, null);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user