* show toast for cache messages in the center of the screen to avoid hiding the keyboard when entering passwords
* Bug fix with FTP access * Bug fix with Group editing/adding * Integrated Input Language Selection for keyboard -> 0.9.3-r3
This commit is contained in:
@@ -53,6 +53,13 @@
|
||||
android:persistent="true"
|
||||
android:defaultValue="true"
|
||||
/>
|
||||
|
||||
<PreferenceScreen
|
||||
android:title="@string/language_selection_title"
|
||||
android:summary="@string/language_selection_summary">
|
||||
<intent
|
||||
android:action="keepass2android.softkeyboard.INPUT_LANGUAGE_SELECTION"/>
|
||||
</PreferenceScreen>
|
||||
|
||||
|
||||
<PreferenceCategory
|
||||
|
||||
@@ -112,24 +112,20 @@ public class InputLanguageSelection extends PreferenceActivity {
|
||||
conf.locale = locale;
|
||||
res.updateConfiguration(conf, res.getDisplayMetrics());
|
||||
|
||||
int[] dictionaries = KP2AKeyboard.getDictionary(res, ctx);
|
||||
BinaryDictionary bd = new BinaryDictionary(this, dictionaries, Suggest.DIC_MAIN);
|
||||
|
||||
// Is the dictionary larger than a placeholder? Arbitrarily chose a lower limit of
|
||||
// 4000-5000 words, whereas the LARGE_DICTIONARY is about 20000+ words.
|
||||
if (bd.getSize() > Suggest.LARGE_DICTIONARY_THRESHOLD / 4) {
|
||||
haveDictionary = true;
|
||||
//somewhat a hack. But simply querying the dictionary will always return an English
|
||||
//dictionary in KP2A so if we get a dict, we wouldn't know if it's language specific
|
||||
if (locale.getLanguage().equals("en"))
|
||||
{
|
||||
haveDictionary = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
BinaryDictionary plug = PluginManager.getDictionary(getApplicationContext(), locale.getLanguage());
|
||||
if (plug != null) {
|
||||
bd.close();
|
||||
bd = plug;
|
||||
haveDictionary = true;
|
||||
plug.close();
|
||||
haveDictionary = true;
|
||||
}
|
||||
}
|
||||
bd.close();
|
||||
conf.locale = saveLocale;
|
||||
res.updateConfiguration(conf, res.getDisplayMetrics());
|
||||
return haveDictionary;
|
||||
|
||||
Reference in New Issue
Block a user