mirror of https://github.com/M66B/FairEmail.git
Spellchecker workaround
This commit is contained in:
parent
55161624a3
commit
021fd06de8
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue