summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorRaph Levien <raph@google.com>2014-12-04 13:26:07 -0800
committerRaph Levien <raph@google.com>2014-12-04 22:32:48 +0000
commit0e3c5e827235911d33312e431975533f046421e7 (patch)
tree15b642335c97e3802f53adbda19cacd6762f3bf8 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent6ca3ba73b78be57dd50fe5813f076b3e166cc659 (diff)
Fix off-by-one error in computeEllipsis
In the Truncate.MIDDLE case, when the line is less than half the layout width, the computeEllipsis logic could go past the left edge of the string. This patch fixes the off-by-one and avoids the resulting index out of bounds crash, and also changes the behavior so that when ellipsizing at the middle, the string to the end of the paragraph is taken into account. Bug: 18508627 Change-Id: I24be09c23a5aa158791a9717419307613b8a22e8
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions