OSDN Git Service

Introduce FontsContract.requestFont and deprecate Typeface.create
authorSeigo Nonaka <nona@google.com>
Tue, 11 Apr 2017 22:59:58 +0000 (15:59 -0700)
committerSeigo Nonaka <nona@google.com>
Thu, 13 Apr 2017 13:48:07 +0000 (06:48 -0700)
commit0b73a4287e8f630c45bf7ef0a7e0b2541d6b4067
tree67f6a364895f35813f64a65124d8f029f26869ac
parent061db23b79b0f07b3b843e081420fbbcc606b451
Introduce FontsContract.requestFont and deprecate Typeface.create

Since background fetch should be synchronized with life cycle of
Activities, so should not create new background thread inside this
method. Not to break existing apps, mark as deprecated and will be
removed from public API untile next release.

New API accepts Handler so that the developer can pass their own thread
.

Test: TBD
Bug: 37253785
Change-Id: I87fdc6a354a829db679253824f42489f25698fa0
api/current.txt
api/system-current.txt
api/test-current.txt
core/java/android/provider/FontsContract.java
graphics/java/android/graphics/Typeface.java