summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorSeigo Nonaka <nona@google.com>2019-03-20 10:07:08 -0700
committerSeigo Nonaka <nona@google.com>2019-03-20 10:22:55 -0700
commit7d3d2aa286f59faad3fec15e9dbd3aee42d1da95 (patch)
tree60afc44bca086f4e6f70d4eb2374c6a1df72cdb0 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent3d0a536ec8ca042ead7753e2a538a883fcfe92ed (diff)
Revive the old behavior of unsupported filed in public APIs
The behavior of the Typeface creating function when unsuppoted font files are passed has changed unexpectedly. This CL revives the old behaviors. Here is the list of public APIs and expected behaviors. Resources#getFont for unsupported font Exception: Resources#NotFoundException Resources#getFont for unsupported font in XML Exception: Resources#NotFoundException Resources#getFont for unsupported font from provider No Exception: Typeface.DEFAULT is returned Typeface#Builder for unsupported font No Exception: null is returned Typeface#Builder for unavailable font No Exception: null is returned Typeface#createFromAsset for unsupported font Not Exception: Typeface.DEFAULT is returned Typeface#createFromAsset for unavailable font Exception: RuntimeExcetpion FontsContract#buildTypeface for unspported font No Exception: null is returned FontsContract#buildTypeface for unspported font in XML No Exception: null is returned FontsContract#buildTypeface for unspported font from provider No Exception: null is returned TextView inflation for unsupported font No Exception: Typeface.DEFAULT is set TextView inflation for unsupported font in XML No Exception: Typeface.DEFAULT is set TextView inflation for unsupported font from provider No Exception: Typeface.DEFAULT is set Bug: 127714175 Test: Manually done Change-Id: Iaab037f4168546409ead67ed8eee7340418418ed
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions