Releases: splitwise/TokenAutoComplete
Releases · splitwise/TokenAutoComplete
Fix empty view handling
In cases where you use showDropDown
to display the completion list while the field has no user entered text, the behavior was inconsistent:
- make
currentCompletionText
accurate when the field is empty - fix an issue where the hint might get tokenized if an object was added by tapping on the drop down
Fix selection issues
- fix incorrect tokenization if the cursor is in the middle of a word
- fix bug where setting a space as a split char could prevent additional split chars from being set
- fix a crash when restoring text with a prefix would cause an index out of bounds exception
Fix indexing crashes, add unremovable tokens
- Specific tokens may be made unremovable by overriding
isTokenRemovable
- Fix index out of bounds crashes caused by edge cases allowing the prefix to be deleted
Fix double delete issue
- prevent double token deletes on newer SDKs
Make TokenCompleteTextView generic
- TokenCompleteTextView is now generic to avoid lots of casts. If you are upgrading from 1.*, you now need to extend
TokenCompleteTextView<Object>
instead ofTokenCompleteTextView
- Fix some crashes and inconsistencies
Fix softkeyboard delete
1.3.3 fix softkeyboard delete
Minor project restructure
- Extracted some classes into separate files for ease of updates
- Made , and ; the default split characters
- Total number of tokens can be limited
- Fixes for deleting with Google keyboards
Minor UX Improvements
Major UI and usage improvements
Special thanks to @wdullaer on this release for their awesome work in pull request #90 on this one.
New features
setSplitChar
will let you change or add multiple characters to complete onperformBestGuess(false)
will disable guessing (based on the suggestions adapter)- When losing focus, the field will tokenize any remaining input if it is longer than
setThreshold
- Please give feedback here! Maybe it should just complete input always when losing focus?
clear
will remove all tokens in the field
Bug fixes
- It no longer takes 2 taps to show the keyboard
- Improved behavior on collapsing to one line
- Respect maxLines in XML (while still collapsing on focus loss)
- Respect ime actions set in XML (no more hardcoded done, no return button)
- Prevent extract UI in landscape, which doesn't show the token spans
- The +x count now correctly updates when the field is not focused
Fix crash on back button long press
v1.2.1 Update build tools and version for 1.2.1