TextView.onRestoreInstanceState calls settext method with its own saved values, which prompts a filter with dstart&dend= 0 in which case the filter returns """. This causes an out of bounds exception on selection change because we need to set the selection after prefix.
TextView.onRestoreInstanceState calls settext method with its own saved values, which prompts a filter with dstart&dend= 0 in which case the filter returns """. This causes an out of bounds exception on selection change because we need to set the selection after prefix.