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

Commit 5b758bf2 authored by Deepanshu Gupta's avatar Deepanshu Gupta Committed by Android (Google) Code Review
Browse files

Merge "Add missing setAccessible to Choreographer's threadInstance" into nyc-dev

parents c2b2f6ee 42c8bd1b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -71,6 +71,7 @@ public class Choreographer_Delegate {
    public static void dispose() {
        try {
            Field threadInstanceField = Choreographer.class.getDeclaredField("sThreadInstance");
            threadInstanceField.setAccessible(true);
            @SuppressWarnings("unchecked") ThreadLocal<Choreographer> threadInstance =
                    (ThreadLocal<Choreographer>) threadInstanceField.get(null);
            threadInstance.remove();