Searched refs:resultSpan (Results 1 – 2 of 2) sorted by relevance
191 Object resultSpan = span; in invertCharSequenceColors() local192 if (resultSpan instanceof CharacterStyle) { in invertCharSequenceColors()193 resultSpan = ((CharacterStyle) span).getUnderlying(); in invertCharSequenceColors()195 if (resultSpan instanceof TextAppearanceSpan) { in invertCharSequenceColors()198 if (processedSpan != resultSpan) { in invertCharSequenceColors()199 resultSpan = processedSpan; in invertCharSequenceColors()202 resultSpan = span; in invertCharSequenceColors()204 } else if (resultSpan instanceof ForegroundColorSpan) { in invertCharSequenceColors()205 ForegroundColorSpan originalSpan = (ForegroundColorSpan) resultSpan; in invertCharSequenceColors()207 resultSpan = new ForegroundColorSpan(processColor(foregroundColor)); in invertCharSequenceColors()[all …]
3248 Object resultSpan = span; in removeTextSizeSpans() local3249 if (resultSpan instanceof CharacterStyle) { in removeTextSizeSpans()3250 resultSpan = ((CharacterStyle) span).getUnderlying(); in removeTextSizeSpans()3252 if (resultSpan instanceof TextAppearanceSpan) { in removeTextSizeSpans()3253 TextAppearanceSpan originalSpan = (TextAppearanceSpan) resultSpan; in removeTextSizeSpans()3254 resultSpan = new TextAppearanceSpan( in removeTextSizeSpans()3260 } else if (resultSpan instanceof RelativeSizeSpan in removeTextSizeSpans()3261 || resultSpan instanceof AbsoluteSizeSpan) { in removeTextSizeSpans()3264 resultSpan = span; in removeTextSizeSpans()3266 builder.setSpan(resultSpan, ss.getSpanStart(span), ss.getSpanEnd(span), in removeTextSizeSpans()[all …]