Fix issue #442 - mentions starting with a "("
This commit is contained in:
parent
dd4d0abf12
commit
e51764ae42
|
@ -895,7 +895,7 @@ public class ComposeAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder
|
||||||
holder.binding.content.setAdapter(accountsListAdapter);
|
holder.binding.content.setAdapter(accountsListAdapter);
|
||||||
final String oldContent = holder.binding.content.getText().toString();
|
final String oldContent = holder.binding.content.getText().toString();
|
||||||
if (oldContent.length() >= currentCursorPosition) {
|
if (oldContent.length() >= currentCursorPosition) {
|
||||||
String[] searchA = oldContent.substring(0, currentCursorPosition).split("\\s+@|^@");
|
String[] searchA = oldContent.substring(0, currentCursorPosition).split("\\s+@|^@|\\(+@");
|
||||||
if (searchA.length > 0) {
|
if (searchA.length > 0) {
|
||||||
final String search = searchA[searchA.length - 1];
|
final String search = searchA[searchA.length - 1];
|
||||||
holder.binding.content.setOnItemClickListener((parent, view, position, id) -> {
|
holder.binding.content.setOnItemClickListener((parent, view, position, id) -> {
|
||||||
|
|
Loading…
Reference in New Issue