brave / link-bubble

Brave Link Bubble Browser
https://www.brave.com
1.01k stars 183 forks source link

Autocomplete #866

Closed CedricBabeix closed 8 years ago

CedricBabeix commented 8 years ago

In android 5.0.2, the URL autocompletion wasn't working properly, every text appened to the URL was unselected before the user enters a new character. "a" was autocompleted to "abcnews.com", the cursor being between "a" and "b", if the user then typed "b", the resulting URL was "abbcnews.com".

SergeyZhukovsky commented 8 years ago

I have a device with exactly the same version and don't have any problems with that. I've tried it on several devices and that condition if(difference == 1) { is always false for me. @CedricBabeix do you have any other steps how to reproduce it? Thanks.

CedricBabeix commented 8 years ago

Hello,

I tried to reproduce this bug on several virtual devices after reading your comment and I finally found out where it comes from : the ZenUI keyboard.

I got an Asus ZenPad 80, running Android 5.0.2 with the ZenUI user interface and all it's related apps.

I was able to reproduce the bug using the following procedure :

I reproduced the bug on two virtual devices, one running on Android 5.0.0 and the other running on Android 6.0.0.

Cédric

SergeyZhukovsky commented 8 years ago

Thank you for the detailed steps @CedricBabeix. I was able to replicate it with emulator and ZenUI keyboard. It seems like the fix is fine to me. Could you only correct that private String previousMetUrl; private String previousAppenedString; to make them the same style as we have in Link Bubble private String mPreviousMetUrl; private String mPreviousAppenedString;

I'm going to land that after that fix. Thanks.

CedricBabeix commented 8 years ago

You're welcome. Correction is done.

SergeyZhukovsky commented 8 years ago

Thanks @CedricBabeix, nice catch!