fixed dictionary auto-loading kicking in while browsing the Settings screens
This commit is contained in:
parent
83a94ab30b
commit
7605a6bb2f
2 changed files with 9 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
package io.github.sspanak.tt9.hacks;
|
||||
|
||||
import android.content.Context;
|
||||
import android.view.inputmethod.EditorInfo;
|
||||
import android.view.inputmethod.InputConnection;
|
||||
|
||||
|
|
@ -95,6 +96,10 @@ public class InputType extends StandardInputType {
|
|||
return isAppField("com.termux", EditorInfo.TYPE_NULL) && field.fieldId > 0;
|
||||
}
|
||||
|
||||
public boolean isNotUs(Context context) {
|
||||
return !isAppField(context.getPackageName(), EditorInfo.TYPE_NULL);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isSpecialNumeric
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ import io.github.sspanak.tt9.R;
|
|||
import io.github.sspanak.tt9.db.DictionaryLoader;
|
||||
import io.github.sspanak.tt9.db.WordStoreAsync;
|
||||
import io.github.sspanak.tt9.hacks.DeviceInfo;
|
||||
import io.github.sspanak.tt9.hacks.InputType;
|
||||
import io.github.sspanak.tt9.ime.modes.InputMode;
|
||||
import io.github.sspanak.tt9.ime.modes.ModePredictive;
|
||||
import io.github.sspanak.tt9.preferences.settings.SettingsStore;
|
||||
|
|
@ -175,7 +176,9 @@ public class TraditionalT9 extends MainViewOps {
|
|||
initUi();
|
||||
}
|
||||
|
||||
if (new InputType(connection, field).isNotUs(this)) {
|
||||
DictionaryLoader.autoLoad(this, mLanguage);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue