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

Commit 8406ba20 authored by Ling Ma's avatar Ling Ma
Browse files

Synchronize Phone.metrics.containsCsCalls iteration

to prevent race condition.

Test: build succeeded

Bug:182131920

Change-Id: I214f77542edd407cc68ecfb5e90379eb1e520f24
parent e08749de
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -99,7 +99,7 @@ public class InProgressCallSession {
     * Check if the Call Session contains CS calls
     * @return true if there are CS calls in the call list
     */
    public boolean containsCsCalls() {
    public synchronized boolean containsCsCalls() {
        for (TelephonyCallSession.Event event : events) {
            if (event.type == TelephonyCallSession.Event.Type.RIL_CALL_LIST_CHANGED) {
                return true;