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

Commit 11bd8bd2 authored by Deepanshu Gupta's avatar Deepanshu Gupta Committed by android-build-merger
Browse files

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

am: 5b758bf2

* commit '5b758bf2':
  Add missing setAccessible to Choreographer's threadInstance

Change-Id: I276f1450023cb31b2c6cfd2e0033c4fd1db5a6fc
parents cccd0f59 5b758bf2
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();