splitwise / TokenAutoComplete

Gmail style MultiAutoCompleteTextView for Android
Apache License 2.0
1.3k stars 383 forks source link

Fix wrong selection problem on restore setText call #187

Closed bugraoral closed 8 years ago

bugraoral commented 8 years ago

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.

mgod commented 8 years ago

Generally, I'd prefer not to have all the whitespace changes included in a PR.

bugraoral commented 8 years ago

Sorry about the spaces, ide autoformated and i did not notice