mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-01-28 18:09:30 +01:00
fixing single character emoji searches retaining the original query
- not entirely sure why this works but replacing the replace with separate delete + insert commands allows the previous query to be fully removed
This commit is contained in:
parent
540158316e
commit
dffed4445d
@ -194,7 +194,8 @@ class AutoCompleter @AssistedInject constructor(
|
||||
}
|
||||
|
||||
// Replace the word by its completion
|
||||
editable.replace(startIndex, endIndex, item)
|
||||
editable.delete(startIndex, endIndex)
|
||||
editable.insert(startIndex, item)
|
||||
return true
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user