Skip to content

Commit

Permalink
Merge pull request #60 from madhur/master
Browse files Browse the repository at this point in the history
fixed crash on long back press
  • Loading branch information
mgod committed Jul 7, 2014
2 parents 337ba55 + ab7a380 commit 3936387
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,10 @@ protected void onSelectionChanged(int selStart, int selEnd) {
for (TokenImageSpan span: spans) {
int spanEnd = text.getSpanEnd(span);
if (selStart <= spanEnd && text.getSpanStart(span) < selStart) {
setSelection(spanEnd + 1);
if(spanEnd==text.length())
setSelection(spanEnd);
else
setSelection(spanEnd+1);
return;
}
}
Expand Down

0 comments on commit 3936387

Please sign in to comment.