should fix a problem with autocomplete and some keyboards

main
Conny Duck 7 years ago
parent ed851cb04d
commit 58600fe8ce
  1. 5
      app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java

@ -55,6 +55,7 @@ import android.support.v7.app.AlertDialog;
import android.support.v7.content.res.AppCompatResources; import android.support.v7.content.res.AppCompatResources;
import android.support.v7.widget.Toolbar; import android.support.v7.widget.Toolbar;
import android.text.Editable; import android.text.Editable;
import android.text.InputType;
import android.text.SpannableStringBuilder; import android.text.SpannableStringBuilder;
import android.text.Spanned; import android.text.Spanned;
import android.text.TextUtils; 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" /* Initialise all the state, or restore it from a previous run, to determine a "starting"
* state. */ * state. */
SharedPreferences preferences = getPrivatePreferences(); SharedPreferences preferences = getPrivatePreferences();

Loading…
Cancel
Save