Merge "Fix at-clause typo for Handler." into main am: 9f086e5d7a am: 1837a51fd1 am: a45f3babbf
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2666076 Change-Id: Ied5bbeb195817fd470df8da2b0cf77bbd82f9e3d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -119,7 +119,7 @@ public class Handler {
|
|||||||
* crashes (if a handler is sometimes created on a thread without a Looper active), or race
|
* crashes (if a handler is sometimes created on a thread without a Looper active), or race
|
||||||
* conditions, where the thread a handler is associated with is not what the author
|
* conditions, where the thread a handler is associated with is not what the author
|
||||||
* anticipated. Instead, use an {@link java.util.concurrent.Executor} or specify the Looper
|
* anticipated. Instead, use an {@link java.util.concurrent.Executor} or specify the Looper
|
||||||
* explicitly, using {@link Looper#getMainLooper}, {link android.view.View#getHandler}, or
|
* explicitly, using {@link Looper#getMainLooper}, {@link android.view.View#getHandler}, or
|
||||||
* similar. If the implicit thread local behavior is required for compatibility, use
|
* similar. If the implicit thread local behavior is required for compatibility, use
|
||||||
* {@code new Handler(Looper.myLooper())} to make it clear to readers.
|
* {@code new Handler(Looper.myLooper())} to make it clear to readers.
|
||||||
*
|
*
|
||||||
@@ -144,7 +144,7 @@ public class Handler {
|
|||||||
* crashes (if a handler is sometimes created on a thread without a Looper active), or race
|
* crashes (if a handler is sometimes created on a thread without a Looper active), or race
|
||||||
* conditions, where the thread a handler is associated with is not what the author
|
* conditions, where the thread a handler is associated with is not what the author
|
||||||
* anticipated. Instead, use an {@link java.util.concurrent.Executor} or specify the Looper
|
* anticipated. Instead, use an {@link java.util.concurrent.Executor} or specify the Looper
|
||||||
* explicitly, using {@link Looper#getMainLooper}, {link android.view.View#getHandler}, or
|
* explicitly, using {@link Looper#getMainLooper}, {@link android.view.View#getHandler}, or
|
||||||
* similar. If the implicit thread local behavior is required for compatibility, use
|
* similar. If the implicit thread local behavior is required for compatibility, use
|
||||||
* {@code new Handler(Looper.myLooper(), callback)} to make it clear to readers.
|
* {@code new Handler(Looper.myLooper(), callback)} to make it clear to readers.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user