Skip to content

Releases: splitwise/TokenAutoComplete

Fix empty view handling

03 Mar 16:05
Compare
Choose a tag to compare

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

17 Feb 20:48
Compare
Choose a tag to compare
  • 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

29 Sep 15:19
Compare
Choose a tag to compare
  • 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

24 Jul 18:25
Compare
Choose a tag to compare
  • prevent double token deletes on newer SDKs

Make TokenCompleteTextView generic

28 May 17:35
Compare
Choose a tag to compare
  • TokenCompleteTextView is now generic to avoid lots of casts. If you are upgrading from 1.*, you now need to extend TokenCompleteTextView<Object> instead of TokenCompleteTextView
  • Fix some crashes and inconsistencies

Fix softkeyboard delete

24 Mar 11:57
Compare
Choose a tag to compare
1.3.3

fix softkeyboard delete

Minor project restructure

23 Mar 14:36
Compare
Choose a tag to compare
  • 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

05 Feb 16:11
Compare
Choose a tag to compare

Fix a number of small irritating behaviors:

  • Prevent undeletable comma with blank prefix (#85)
  • Prevent extra space when preventing duplicates (#97)
  • Deselect tokens when clicking not on a token. (#24)
  • Prevent 0 length strings from triggering completions. (#94, #96)

Major UI and usage improvements

09 Jan 17:12
Compare
Choose a tag to compare

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 on
  • performBestGuess(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

16 Jul 15:02
Compare
Choose a tag to compare
v1.2.1

Update build tools and version for 1.2.1