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

Commit 2d68bbe1 authored by Zemiao Zhu's avatar Zemiao Zhu
Browse files

Fix test crash because of concurrent access to mRoot.

Bug: 181072557
Test: atest DocumentsUIGoogleTests
Change-Id: I1f80afd366dcadcefd2f123006fa1d78e10b54d0
parent f0a49a12
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -439,7 +439,7 @@ public class ProvidersCache implements ProvidersAccess, LookupApplicationName {
        waitForFirstLoad();
        loadStoppedAuthorities();
        synchronized (mLock) {
            return mRoots.values();
            return new HashSet<>(mRoots.values());
        }
    }