Android Question How to re-enable spell check ?

mddmx

Member
Licensed User
Longtime User
If I disable spell check with

Ed.InputType = Bit.OR(Ed.InputType, 524288)

how would I turn it back on again?
 

DonManfred

Expert
Licensed User
Longtime User
Ed.InputType = Bit.OR(Ed.InputType, 524288)
how would I turn it back on again?

I dont know how to calc back the "OR"...
But you can do it like this

B4X:
Log("old:"&EditText1.InputType)
' remember the old input-type
Dim remark As Int = EditText1.InputType
EditText1.InputType = Bit.OR(EditText1.InputType, 524288)
Log("no suggestion"&EditText1.InputType)
'
' Do whatever you need to do without suggestions...
'
' restore the old inputtype to put on suggestions again
EditText1.InputType = remark
Log("after restoring:"&EditText1.InputType)
 
Upvote 0
Top