summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorJoachim Sauer <jsauer@google.com>2017-09-14 15:49:22 +0100
committerJoachim Sauer <jsauer@google.com>2017-09-18 11:40:46 +0100
commit2427d36d668b2f0fdad3ac5d9dff6e39f87eff7e (patch)
tree6487f2af1a6406bd4754fa54cbc82137dff2bcfc /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent7a09f7ec9c212220068cac4380e69ff9c95b8b3e (diff)
Remove use of MeasureUnit.internalGetInstance
MeasureUnit.internalGetUnit() is a method on ICU MeasureUnit which is used to construct and register MeasureUnits. Calling it from non-ICU code makes future calls to MeasureUnit.getAvailable(type) return the newly-created MeasureUnit, but that MeasureUnit will not be fully supported by ICU (no translations, ...). This code creates a MeasureUnit by calling a constructor reflectively to avoid the registration, which is a workaround. The correct long-term fix is for ICU/CLDR to support petabyte correctly (http://bugs.icu-project.org/trac/ticket/13355) and for us to just use that instead. Bug: 65632959 Test: bit CtsIcuTestCases:android.icu.dev.test.format.MeasureUnitTest Test: coretests android.text.format.FormatterTest (cherry picked from commit aa5629e60809e4775ca1f05e6f1f296a04a450dc) Change-Id: If18dd378668a59a700030856573e46917a1bd051
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions