Always suppress font error during resource loading
I suppressed the font error during resource loading only if the targetSdkVersion is API 28 or before, but it turned out that this makes developers hard to use font resources since: - We don't give a list of supported font files and OEM may extend/shrink the font support. - There is no way to resolve this error during layout inflation. So, now always supress the IllegalArgumentException during building Typeface in resource loading. Bug: 127714175 Test: atest CtsTextTestCases Test: atest CtsGraphicsTestCases Test: atest FontsContractTest Test: atest CtsWidgetTestCases Change-Id: I08b9f27aaf25ff491fa36d0a4befb3c6e64abfcf
Loading
Please register or sign in to comment