am 74437532: Merge "Fix for bug: Gmail (and other places): cursor placed on top of letter" into jb-mr1-dev
* commit '74437532fe2a3e9ebd15c61327fd3f2b68c299b3': Fix for bug: Gmail (and other places): cursor placed on top of letter
This commit is contained in:
@@ -939,27 +939,22 @@ class TextLine {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (c == null) {
|
||||
x += handleText(wp, i, mlimit, i, inext, runIsRtl, c, x, top,
|
||||
y, bottom, fmi, needWidth || mlimit < measureLimit);
|
||||
} else {
|
||||
for (int j = i, jnext; j < mlimit; j = jnext) {
|
||||
jnext = mCharacterStyleSpanSet.getNextTransition(mStart + j, mStart + mlimit) -
|
||||
mStart;
|
||||
for (int j = i, jnext; j < mlimit; j = jnext) {
|
||||
jnext = mCharacterStyleSpanSet.getNextTransition(mStart + j, mStart + mlimit) -
|
||||
mStart;
|
||||
|
||||
wp.set(mPaint);
|
||||
for (int k = 0; k < mCharacterStyleSpanSet.numberOfSpans; k++) {
|
||||
// Intentionally using >= and <= as explained above
|
||||
if ((mCharacterStyleSpanSet.spanStarts[k] >= mStart + jnext) ||
|
||||
(mCharacterStyleSpanSet.spanEnds[k] <= mStart + j)) continue;
|
||||
wp.set(mPaint);
|
||||
for (int k = 0; k < mCharacterStyleSpanSet.numberOfSpans; k++) {
|
||||
// Intentionally using >= and <= as explained above
|
||||
if ((mCharacterStyleSpanSet.spanStarts[k] >= mStart + jnext) ||
|
||||
(mCharacterStyleSpanSet.spanEnds[k] <= mStart + j)) continue;
|
||||
|
||||
CharacterStyle span = mCharacterStyleSpanSet.spans[k];
|
||||
span.updateDrawState(wp);
|
||||
}
|
||||
|
||||
x += handleText(wp, j, jnext, i, inext, runIsRtl, c, x,
|
||||
top, y, bottom, fmi, needWidth || jnext < measureLimit);
|
||||
CharacterStyle span = mCharacterStyleSpanSet.spans[k];
|
||||
span.updateDrawState(wp);
|
||||
}
|
||||
|
||||
x += handleText(wp, j, jnext, i, inext, runIsRtl, c, x,
|
||||
top, y, bottom, fmi, needWidth || jnext < measureLimit);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user