ComposeTokenizer: fix autocomplete for accounts with 1 character nickname

main
Alibek Omarov 4 years ago
parent 833803359e
commit c372848383
  1. 3
      app/src/main/java/com/keylesspalace/tusky/util/ComposeTokenizer.kt

@ -18,7 +18,6 @@ package com.keylesspalace.tusky.util
import android.text.SpannableString
import android.text.Spanned
import android.text.TextUtils
import android.util.Log
import android.widget.MultiAutoCompleteTextView
class ComposeTokenizer : MultiAutoCompleteTextView.Tokenizer {
@ -47,7 +46,7 @@ class ComposeTokenizer : MultiAutoCompleteTextView.Tokenizer {
// caught domain name, try search username
// don't ask me about this code
if(i > 3 && character == '@') {
if(i > 2 && character == '@') {
var j = i - 1
var character2 = text[i - 2]

Loading…
Cancel
Save