diff options
| author | Raph Levien <raph@google.com> | 2015-04-03 10:41:52 -0700 |
|---|---|---|
| committer | Raph Levien <raph@google.com> | 2015-04-03 10:41:52 -0700 |
| commit | 80b485daa64d0ef2339c133f0d9cbc3c2c977c32 (patch) | |
| tree | 355a416ff9da14cf572ea5bcaf7afaea4edc579e /tools/aapt2/java/JavaClassGenerator.cpp | |
| parent | 89e0a1a033e6db0316f807cee49bb51f6f6fc4b5 (diff) | |
Don't use context in measureText(char[])
The measureText(CharSequence) method calls into measureText(char[]),
using a temporary buffer, which may be longer than the CharSequence,
and may have additional characters. The existing implementation was
treating the entire char[] as potential context, but this is
incorrect.
This patch does the measurement on just the substring; measureText
doesn't process context. There are other methods for that, such as
getTextRunAdvances.
Bug: 19962931
Change-Id: Ia00cc004f9fa9d45aaf028683e78404d66c1388f
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions
