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

Commit 5f70bc89 authored by Adam Lesinski's avatar Adam Lesinski Committed by Android (Google) Code Review
Browse files

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

parents f61df432 4fed9714
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;
    }