mirror of
https://github.com/tuskyapp/Tusky
synced 2025-02-06 17:53:17 +01:00
should fix a problem with autocomplete and some keyboards
This commit is contained in:
parent
87b34df892
commit
d9bbb1be71
@ -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…
x
Reference in New Issue
Block a user