Skip to content

Text not being reset after item selection #308

@kaushal2406

Description

@kaushal2406

On Galaxy S6 with Android 7.1 there is a weird bug: with latest repository with samsung keyboard. with other keyboard like swift it working perfect.

  1. open the sample project.
  2. Remove Line completionView.setPrefix("To: ", Color.parseColor("blue")); in sample Project TokenActivity.java and then run Sample Application.
  3. change defaultObject method in ContactsCompletionView.java
    @OverRide
    protected Person defaultObject(String completionText) {
    return new Person(completionText, completionText.replace(" ", ""));
    }
  4. change variable initialization of people in TokenActivity.java
    people = new Person[]{
    new Person("kaushal Prajapati", "kaushalap"),
    new Person("dhrumil shah", "dhrumilas"),
    new Person("narendra zala", "narendrabz"),
    new Person("kirti c", "kirtirc")
    };
  5. start typing "nare" .
  6. choose the last item ("narendra zala") .
  7. you see just the new item being added, no text next to it (which is what it should be).
  8. continue typing - write "d"

Expected result: seeing the new item, and only the new text next to it.
Actual result: seeing the new item, and the text "nared" next to it.

See attached gif.
autocomplete_samsung_keyboard_problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions