summaryrefslogtreecommitdiffstats
path: root/core/java/android/text
diff options
context:
space:
mode:
authorRaph Levien <raph@google.com>2015-07-21 16:55:37 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-07-21 16:55:39 +0000
commit1fcb6d3ae27ac95388eb036d124bd4bd0c6559cc (patch)
treeb1278923a9f4e019f09e7484b03f19bffd3cdee0 /core/java/android/text
parent66e6683193f6a1d071710ea8a39b02f5129fc505 (diff)
parentea2b4a40f7236172398ebcaa273612e00340d847 (diff)
downloadframeworks_base-1fcb6d3ae27ac95388eb036d124bd4bd0c6559cc.zip
frameworks_base-1fcb6d3ae27ac95388eb036d124bd4bd0c6559cc.tar.gz
frameworks_base-1fcb6d3ae27ac95388eb036d124bd4bd0c6559cc.tar.bz2
Merge "Respect style boundaries when measuring text" into mnc-dev
Diffstat (limited to 'core/java/android/text')
-rw-r--r--core/java/android/text/TextLine.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/text/TextLine.java b/core/java/android/text/TextLine.java
index 605b91d..39e8694 100644
--- a/core/java/android/text/TextLine.java
+++ b/core/java/android/text/TextLine.java
@@ -741,11 +741,11 @@ class TextLine {
if (needWidth || (c != null && (wp.bgColor != 0 || wp.underlineColor != 0 || runIsRtl))) {
if (mCharsValid) {
- ret = wp.getRunAdvance(mChars, start, contextEnd, contextStart, contextEnd,
+ ret = wp.getRunAdvance(mChars, start, end, contextStart, contextEnd,
runIsRtl, end);
} else {
int delta = mStart;
- ret = wp.getRunAdvance(mText, delta + start, delta + contextEnd,
+ ret = wp.getRunAdvance(mText, delta + start, delta + end,
delta + contextStart, delta + contextEnd, runIsRtl, delta + end);
}
}