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

Commit 42c8bd1b authored by Deepanshu Gupta's avatar Deepanshu Gupta
Browse files

Add missing setAccessible to Choreographer's threadInstance

Change-Id: I753660cf68ba5a9c375942222e32059d952739bb
parent 61ccc919
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();