[android-developers] Suggestions not working properly in Gingerbread 2.3.4
Hi all,
Suggestions in Gingerbread 2.3.4 is not working properly.
Steps to reproduce the issue:
1.Select the keyboard as "Android Keyboard".
2.Compose a new message by selecting Messaging->New Message->Type to
message.
3. Ensure that suggestion settings like "Quick fixes","Show
Suggestions","Auto-complete" options are turned "ON".
4. Now type youre through softkeyboard.
5.Suggestions will appear just below the editing box.
6.Now tap on space bar in soft keyboard.
Expected behavior:
Suggested word should be entered into the editing box ie "you're"
should be entered.
Observed behavior:
When we tap on space bar, the word that is entered is retained as is.
Suggested word is not entered into the editing box.
When we analyzed this issue, there is a check whether main dictionary
is there.
In the file "packages\inputmethods\LatinIME\java\src\com\android
\inputmethod\latin\Suggest.java",
there is a check for it using the follwoing code.
public boolean hasMainDictionary() {
return mMainDict.getSize() > LARGE_DICTIONARY_THRESHOLD;
}
Value of mMainDict.getSize() always returns a value less than
"LARGE_DICTIONARY_THRESHOLD" and it returns false.
Hence when the suggested word is selected using the space bar, it is
not entered in the editing box.
When we hard this function to return true, we get the expected
behavior.
Can anyone tell why this check is required and will it have some side
effects when we hard code return value to true.
Also please let us know from where the size of dictionary is got ie
value of mMainDict.getSize().
Please help us....
Thanks in advance....
Regards,
Anand.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home