should fix a problem with autocomplete and some keyboards

This commit is contained in:
Conny Duck 2017-10-23 22:55:43 +02:00
parent 87b34df892
commit d9bbb1be71
1 changed files with 5 additions and 0 deletions

View File

@ -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();