aa5a52bbe93c585f50d5521c65c2df6f18960c20 |
10-Jan-2018 |
Ian Lake <ilake@google.com> |
Enforce Loader calls on main thread, add annotations LoaderManager is not thread safe and initializing, restarting, or destroying Loaders off the main thread can lead to invalid state, callbacks on the wrong thread, or race conditions. @MainThread and @Nullable/@NonNull annotations have been added where appropriate to help developers properly use the APIs. Test: new LoaderTest tests BUG: 70897911 Change-Id: Ic2843c8742a8a54927cc14ec47ae8f5bb56c8979
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/app/LoaderCursorSupport.java
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/app/LoaderCustomSupport.java
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/app/LoaderRetainedSupport.java
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/app/LoaderThrottleSupport.java
|