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

Commit 006a6fa8 authored by Adam Lesinski's avatar Adam Lesinski Committed by android-build-merger
Browse files

Merge "Resources: fix race with creating theme" into oc-dev

am: 5f70bc89

Change-Id: I73bb76a7ff3fe6d3e0a974b5cbaed34c632ee8ae
parents e1340baf 5f70bc89
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1760,7 +1760,9 @@ public class Resources {
    public final Theme newTheme() {
        Theme theme = new Theme();
        theme.setImpl(mResourcesImpl.newThemeImpl());
        synchronized (mThemeRefs) {
            mThemeRefs.add(new WeakReference<>(theme));
        }
        return theme;
    }