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

Commit 61832952 authored by lijilou's avatar lijilou Committed by Jilou li
Browse files

add the lock in toString method.

The mConnections should be called with the mActivity lock.

Bug: none
Flag: EXEMPT minor optimization
Change-Id: Id8f34aa79a53824ee8817e8d58c6b72a1bedce58
parent 31317e8c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -142,6 +142,8 @@ public class ActivityServiceConnectionsHolder<T> {
    /** Used by {@link ActivityRecord#dump}. */
    @Override
    public String toString() {
        synchronized (mActivity) {
            return String.valueOf(mConnections);
        }
    }
}