Focus-android: Two characters deleted in url bar on backspace

Created on 2 Jul 2018  路  9Comments  路  Source: mozilla-mobile/focus-android

Steps to reproduce

  • Click url bar on home screen
  • Type "app"
  • Press backspace (autocomplete removed)
  • Press backspace

Expected behavior

"ap" remains

Actual behavior

"a" remains

Device information

  • Android device: Pixel 2
  • Focus version: Klar 5.2 #21731654
P3 bug testing

All 9 comments

This looks like the same bug as: https://github.com/mozilla-mobile/android-components/issues/348

Interestingly that's even in Fennec.

@mcomella Is this issue up for grab?

@codedsun Yeah, but you will have to fix that in our android-components repository (ui-autocomplete module):
https://github.com/mozilla-mobile/android-components

@pocmo Let me check it, and I will try to resolve it :)馃憤

@pocmo Wanted to ask that how can I debug the android autocomplete textview? Like I have cloned the app but wanted to know how this class is working through debugger. I have never debugged a library, can you guide me.
Thanks.

@codedsun there should be an example app that uses the autocomplete component.

Yeah, after importing the android-components project into Android Studio you should see multiple sample apps. The samples-toolbar is probably the easiest/simplest one for testing this component.

I just tried to recreate this and it seems to behave as expected. @rpappalax would you please confirm?

I fixed this in 0.26 components and Focus is using the latest components so it should no longer be an issue.

Components issue for this: https://github.com/mozilla-mobile/android-components/issues/911

Was this page helpful?
0 / 5 - 0 ratings