Bug 1177597 & 1183210 - Search screen does not show on iOS9#715
Conversation
There was a problem hiding this comment.
Nit: Chracters -> Characters
|
Can you explain these changes, maybe adding some comments? I understand the |
61b2b21 to
1429b8b
Compare
There was a problem hiding this comment.
Removes autocompletion before changing any characters.
|
@thebnich added comments. We are doing same thing as previous. In Please let me know if any further clarification needed. |
|
This seems to work well on English keyboards, though I found a regression switching to Japanese. Steps:
This should show the Hiragana symbol for "ha" (あ); however, it shows hあ, so it looks like this change is breaking text composition somehow. I filed bug 1183914 to get some automated tests for non-English text entry -- it's very fragile! |
|
@thebnich updated the pull request. Fixed flicker issue and Japanese character issue. Please let me know your thoughts and if any clarification needed. |
1f75631 to
25f6982
Compare
|
Hi @thebnich, |
|
Hi @thebnich It also resolve Bug-1183210 flicker issue while entering text. |
|
@thebnich removed |
19036fe to
87a2eb4
Compare
|
@thebnich updated the pull request. Resolved conflicts. |
8228108 to
187b23a
Compare
|
@thebnich updated the pull request to address comments. I have made separate commit for that and squashed in to "Hitting history db only when required". I hope that is fine :) . |
|
Hi @thebnich |
|
@thebnich |
a414cb4 to
e035a98
Compare
|
Hi @thebnich |
There was a problem hiding this comment.
Do we need this change? I think it's safe to just use self.text here.
There was a problem hiding this comment.
@thebnich Here we need enteredText because notifyTextChanged is also called from SELtextDidChange may be after some delay. So self.text may have complete string with auto completion, not the user entered text. So cached query in SearchLoader may save auto- completed string and may give bad results.
There was a problem hiding this comment.
OK. I see we are doing this enteredText calculation in lots of places. Maybe it would make sense to just store enteredText directly as a class variable, and remove enteredTextLength? If there are places we still need the entered text length, we could just use count(enteredText). And then we don't need to use substringToIndex everywhere.
There was a problem hiding this comment.
@thebnich You always know what is best :).
Changed enteredTextLength to entredText working good.
As we are not calculating enteredTextLength when not in auto-completion mode so if user enters text in between somewhere than it will be calculated in SELtextDidChange so enteredText will work good. Thanks for your suggestion.
There was a problem hiding this comment.
Nit: } else if ... { on same line
7ede6e0 to
7441cdc
Compare
There was a problem hiding this comment.
How about we return early here and remove the if else below? Then, at the very bottom of this function outside of all the if statements, you do removeCompletion? That way, if the setting the suggestion fails for any reason, we always clear the existing completion if there is one.
There was a problem hiding this comment.
Thanks great 👍.
Done that
4482355 to
82df592
Compare
|
@thebnich Thanks for suggestion. Updated the pull request. |
Bug 1177597 & 1183210 - Search screen does not show on iOS9
* Start building add search engine settings screen * add persisting custom search engines * Add search engine editing * add image * a few changes to the custom search engine screens * Add placeholder to UITextView * Fix image display for custom search engines * address ui issues * address ui issues * Add UI Tests * adjust selected bg color and seperator * change selected engine color * remove unfinished tests and switch to leading
In iOS9 due to some bug
UIKeyInputmethodinsertTextis not calling.This commit resolve the issue.