Add missing setAccessible to Choreographer's threadInstance
Change-Id: I753660cf68ba5a9c375942222e32059d952739bb
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user