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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (c == null) {
|
for (int j = i, jnext; j < mlimit; j = jnext) {
|
||||||
x += handleText(wp, i, mlimit, i, inext, runIsRtl, c, x, top,
|
jnext = mCharacterStyleSpanSet.getNextTransition(mStart + j, mStart + mlimit) -
|
||||||
y, bottom, fmi, needWidth || mlimit < measureLimit);
|
mStart;
|
||||||
} else {
|
|
||||||
for (int j = i, jnext; j < mlimit; j = jnext) {
|
|
||||||
jnext = mCharacterStyleSpanSet.getNextTransition(mStart + j, mStart + mlimit) -
|
|
||||||
mStart;
|
|
||||||
|
|
||||||
wp.set(mPaint);
|
wp.set(mPaint);
|
||||||
for (int k = 0; k < mCharacterStyleSpanSet.numberOfSpans; k++) {
|
for (int k = 0; k < mCharacterStyleSpanSet.numberOfSpans; k++) {
|
||||||
// Intentionally using >= and <= as explained above
|
// Intentionally using >= and <= as explained above
|
||||||
if ((mCharacterStyleSpanSet.spanStarts[k] >= mStart + jnext) ||
|
if ((mCharacterStyleSpanSet.spanStarts[k] >= mStart + jnext) ||
|
||||||
(mCharacterStyleSpanSet.spanEnds[k] <= mStart + j)) continue;
|
(mCharacterStyleSpanSet.spanEnds[k] <= mStart + j)) continue;
|
||||||
|
|
||||||
CharacterStyle span = mCharacterStyleSpanSet.spans[k];
|
CharacterStyle span = mCharacterStyleSpanSet.spans[k];
|
||||||
span.updateDrawState(wp);
|
span.updateDrawState(wp);
|
||||||
}
|
|
||||||
|
|
||||||
x += handleText(wp, j, jnext, i, inext, runIsRtl, c, x,
|
|
||||||
top, y, bottom, fmi, needWidth || jnext < measureLimit);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
x += handleText(wp, j, jnext, i, inext, runIsRtl, c, x,
|
||||||
|
top, y, bottom, fmi, needWidth || jnext < measureLimit);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user