mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2024-12-22 16:50:04 +02:00
Fix issue #442 - mentions starting with a "("
This commit is contained in:
parent
dd4d0abf12
commit
e51764ae42
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue