Check for spanned before computing tab stops
Don't try to check for tab stop spans in non-Spanned text input. Change-Id: I54d69c8e0246f5a38d0713a89b8b455a478285f0
This commit is contained in:
@@ -265,11 +265,13 @@ extends Layout
|
||||
if (hasTab == false) {
|
||||
hasTab = true;
|
||||
hasTabOrEmoji = true;
|
||||
// First tab this para, check for tabstops
|
||||
TabStopSpan[] spans = spanned.getSpans(paraStart,
|
||||
paraEnd, TabStopSpan.class);
|
||||
if (spans.length > 0) {
|
||||
tabStops = new TabStops(TAB_INCREMENT, spans);
|
||||
if (spanned != null) {
|
||||
// First tab this para, check for tabstops
|
||||
TabStopSpan[] spans = spanned.getSpans(paraStart,
|
||||
paraEnd, TabStopSpan.class);
|
||||
if (spans.length > 0) {
|
||||
tabStops = new TabStops(TAB_INCREMENT, spans);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (tabStops != null) {
|
||||
|
||||
Reference in New Issue
Block a user