commit | 3c7963bb563cef3ed2924461b3b8cb9c4650f9b2 | [log] [tgz] |
---|---|---|
author | Deepanshu Gupta <deepanshu@google.com> | Wed Apr 06 12:29:55 2016 -0700 |
committer | Deepanshu Gupta <deepanshu@google.com> | Wed Apr 06 12:29:55 2016 -0700 |
tree | 67b958b83a88a5cdfafc723ed73677aacf630c08 | |
parent | 405d10472d7b8ba7ff86f46e734195128709a829 [diff] |
Add missing setAccessible to Choreographer's threadInstance Change-Id: I753660cf68ba5a9c375942222e32059d952739bb
diff --git a/bridge/src/android/view/Choreographer_Delegate.java b/bridge/src/android/view/Choreographer_Delegate.java index 6cd67c6..381eb1f 100644 --- a/bridge/src/android/view/Choreographer_Delegate.java +++ b/bridge/src/android/view/Choreographer_Delegate.java
@@ -71,6 +71,7 @@ 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();