Skip to content

Commit 3377b40

Browse files
raphlinusAndroid (Google) Code Review
authored andcommitted
Merge "Fix for bug 7358703 Gmail ANR when trying to compose a message" into jb-mr1-dev
2 parents 964629a + 8b17969 commit 3377b40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/java/android/widget/TextView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6321,7 +6321,7 @@ protected void onLayout(boolean changed, int left, int top, int right, int botto
63216321
if (mDeferScroll >= 0) {
63226322
int curs = mDeferScroll;
63236323
mDeferScroll = -1;
6324-
bringPointIntoView(curs);
6324+
bringPointIntoView(Math.min(curs, mText.length()));
63256325
}
63266326
if (changed && mEditor != null) mEditor.invalidateTextDisplayList();
63276327
}

0 commit comments

Comments
 (0)