should fix a problem with autocomplete and some keyboards
This commit is contained in:
parent
87b34df892
commit
d9bbb1be71
1 changed files with 5 additions and 0 deletions
|
@ -55,6 +55,7 @@ import android.support.v7.app.AlertDialog;
|
|||
import android.support.v7.content.res.AppCompatResources;
|
||||
import android.support.v7.widget.Toolbar;
|
||||
import android.text.Editable;
|
||||
import android.text.InputType;
|
||||
import android.text.SpannableStringBuilder;
|
||||
import android.text.Spanned;
|
||||
import android.text.TextUtils;
|
||||
|
@ -232,6 +233,10 @@ public class ComposeActivity extends BaseActivity implements ComposeOptionsFragm
|
|||
}
|
||||
});
|
||||
|
||||
//fix a bug with autocomplete and some keyboards
|
||||
int newInputType = textEditor.getInputType() & (textEditor.getInputType() ^ InputType.TYPE_TEXT_FLAG_AUTO_COMPLETE);
|
||||
textEditor.setInputType(newInputType);
|
||||
|
||||
/* Initialise all the state, or restore it from a previous run, to determine a "starting"
|
||||
* state. */
|
||||
SharedPreferences preferences = getPrivatePreferences();
|
||||
|
|
Loading…
Reference in a new issue