Make parameter in ContextBasedRangeFormattingCallback#addMarkdown effectively final

This commit is contained in:
Christoph Loy 2020-03-06 23:44:46 +01:00 committed by Niedermann IT-Dienstleistungen
parent af6b92fa22
commit eafadef56c

View file

@ -145,7 +145,6 @@ public class ContextBasedRangeFormattingCallback implements ActionMode.Callback
ssb.insert(start, markdown);
editText.getText().charAt(start);
editText.getText().charAt(start + 1);
end += markdown.length() * 2;
ssb.setSpan(new StyleSpan(typeface), start, end, 1);
ssb.setSpan(new StyleSpan(typeface), start, end + markdown.length() * 2, 1);
}
}