Merge "Use the correct object to guard |mConversationsListeners|" into udc-dev

This commit is contained in:
Yuichiro Hanada
2023-04-04 15:11:23 +00:00
committed by Android (Google) Code Review

View File

@@ -1339,7 +1339,7 @@ public class DataManager {
/** Adds {@code listener} to be notified on conversation changes. */
public void addConversationsListener(
@NonNull PeopleService.ConversationsListener listener) {
synchronized (mConversationsListeners) {
synchronized (mLock) {
mConversationsListeners.add(Objects.requireNonNull(listener));
}
}