Spellchecker workaround

This commit is contained in:
M66B 2020-11-28 12:25:17 +01:00
parent 55161624a3
commit 021fd06de8
2 changed files with 18 additions and 0 deletions

View File

@ -62,6 +62,15 @@ public class EditTextCompose extends FixedEditText {
super(context, attrs, defStyleAttr); super(context, attrs, defStyleAttr);
} }
@Override
protected void onAttachedToWindow() {
// Spellchecker workaround
boolean enabled = isEnabled();
super.setEnabled(true);
super.onAttachedToWindow();
super.setEnabled(enabled);
}
public void setRaw(boolean raw) { public void setRaw(boolean raw) {
this.raw = raw; this.raw = raw;
} }

View File

@ -37,6 +37,15 @@ public class EditTextPlain extends FixedEditText {
super(context, attrs, defStyleAttr); super(context, attrs, defStyleAttr);
} }
@Override
protected void onAttachedToWindow() {
// Spellchecker workaround
boolean enabled = isEnabled();
super.setEnabled(true);
super.onAttachedToWindow();
super.setEnabled(enabled);
}
@Override @Override
public boolean onTextContextMenuItem(int id) { public boolean onTextContextMenuItem(int id) {
try { try {