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

Commit 4fed9714 authored by Adam Lesinski's avatar Adam Lesinski
Browse files

Resources: fix race with creating theme

Bug: 38353957
Test: none
Change-Id: Id78770b475b979635da6a4067db6269e3a1b04d6
parent 367b880c
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;
    }