Bug 767541 - Allow search suggestions for string compositions. r=cpeterson

This commit is contained in:
Brian Nicholson 2012-06-22 14:48:07 -07:00
parent f18d090dd1
commit 986d85a2f8

View File

@ -172,13 +172,10 @@ public class AwesomeBar extends GeckoActivity implements GeckoEventListener {
// If the AwesomeBar has a composition string, don't call updateGoButton().
// That method resets IME and composition state will be broken.
if (hasCompositionString(s)) {
return;
if (!hasCompositionString(s)) {
updateGoButton(text);
}
// no composition string. It is safe to update IME flags.
updateGoButton(text);
// cancel previous query
if (mSuggestTask != null) {
mSuggestTask.cancel(true);