Skip to content

Text not being reset after item selection #308

Closed

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

Activity

  1. mgod commented on Aug 15, 2017

    @mgod
    Contributor

    Which keyboard are you using here? These kinds of issues tend to be keyboard specific.

  2. cyroxis commented on Sep 12, 2017

    @cyroxis

    I'm having the same issue with the stock google keyboard on a Nexus 5X I don't think it is just keyboard specific.

  3. mgod commented on Sep 18, 2017

    @mgod
    Contributor

    It's absolutely keyboard specific, but this appears to be a common keyboard pattern I'm not accounting for correctly. Please keep including notes on which keyboard I need to figure this out for. Stock Android keyboard in the emulator and many custom keyboards don't have this issue.

  4. mgod commented on Dec 5, 2017

    @mgod
    Contributor

    Closed in #333.

  5. jndefosse commented on Sep 24, 2019

    @jndefosse

    This bug is not resolve.
    On samsung J6, we have the same issue with the default keyboard

  6. mgod commented on Sep 24, 2019

    @mgod
    Contributor

    @jndefosse you're using version 3.0.2? I would not be surprised to discover another edge case where keyboards are doing something unusual, but I'd be extremely surprised if this specific bug is what you're running into. Are you able to reproduce the issue using the example app?

  7. jndefosse commented on Sep 25, 2019

    @jndefosse

    @mgod I download the master yesterday.
    When the app started, we have two addresses in the textfield. I types mar, i select the first item in the list and after i type another letter, and it's appear mar + the letter.

    Screenshot_20190925-161824_SplitwiseTokenExample

    Screenshot_20190925-161831_SplitwiseTokenExample

    Screenshot_20190925-161835_SplitwiseTokenExample

  8. mgod commented on Sep 25, 2019

    @mgod
    Contributor

    Thank you! I'll take a look and see if I can see what's going wrong here, but it might take me a while. I thought I'd done a pretty thorough job on this bug, so my next step might be to build a debug logging system into the library so you can reproduce the bug and send me the exact input logs that happened.

  9. reopened this on Sep 25, 2019
  10. jndefosse commented on Oct 9, 2019

    @jndefosse

    Great.
    Notify me when the library is ready

  11. mgod commented on Aug 3, 2020

    @mgod
    Contributor

    I'm pretty sure I found the issue here and plan to include a fix in the 4.0.0 release.

  12. added this to the 4.0.0 milestone on Aug 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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