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

Commit d60188b2 authored by Liana Kazanova (xWF)'s avatar Liana Kazanova (xWF) Committed by Android (Google) Code Review
Browse files

Merge "Revert "Reduce extra invocation of ThreadLocal in AnimationHandler"" into main

parents fc01bfd8 de80503f
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -110,8 +110,7 @@ public class AnimationHandler {
        }
    };

    public static final ThreadLocal<AnimationHandler> sAnimatorHandler =
            ThreadLocal.withInitial(AnimationHandler::new);
    public final static ThreadLocal<AnimationHandler> sAnimatorHandler = new ThreadLocal<>();
    private static AnimationHandler sTestHandler = null;
    private boolean mListDirty = false;

@@ -119,6 +118,9 @@ public class AnimationHandler {
        if (sTestHandler != null) {
            return sTestHandler;
        }
        if (sAnimatorHandler.get() == null) {
            sAnimatorHandler.set(new AnimationHandler());
        }
        return sAnimatorHandler.get();
    }