OSDN Git Service

Add factory methods for async Handlers
authorAdam Powell <adamp@google.com>
Wed, 21 Feb 2018 18:18:25 +0000 (10:18 -0800)
committerAdam Powell <adamp@google.com>
Mon, 19 Mar 2018 15:54:13 +0000 (15:54 +0000)
commit8709ba863eeef0166a1ed2139aa066498eb42ba5
treec3c633151d37ff70f30ef25b9ff37300f1824e1f
parentf8cb545afb8f8ec35c3b028f47247e359a6602db
Add factory methods for async Handlers

Message.setAsynchronous is already public and this makes working
with posted messages that do not interact with UIs quite a bit nicer.

Added as factory methods for better integration with support shims
as well as generally encouraging the use of the handler callback
instead of subclassing for working with custom messages.

Bug: 73124158

Change-Id: I1210e7dc524fdf771e7af19297d5a822fdbd502c
api/current.txt
core/java/android/os/Handler.java