fix gestures handling conflict in commands

This commit is contained in:
kosyak 2024-06-17 11:17:02 +02:00
parent f27240a611
commit 3d5794ea72
2 changed files with 2 additions and 3 deletions

View file

@ -2176,7 +2176,7 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl
} else {
filteredOptions = options.stream().filter(o -> o.toString().replaceAll("\\W", "").toLowerCase().contains(q)).collect(Collectors.toList());
}
adapter = new ArrayAdapter(binding.getRoot().getContext(), R.layout.simple_list_item_selectable_text, filteredOptions);
adapter = new ArrayAdapter(binding.getRoot().getContext(), R.layout.simple_list_item, filteredOptions);
binding.list.setAdapter(adapter);
int checkedPos = filteredOptions.indexOf(new Option(mValue.getContent(), ""));
@ -2715,7 +2715,7 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl
protected Context ctx;
public ActionsAdapter(Context ctx) {
super(ctx, R.layout.simple_list_item_selectable_text);
super(ctx, R.layout.simple_list_item);
this.ctx = ctx;
}

View file

@ -5,7 +5,6 @@
android:id="@+id/command"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textIsSelectable="true"
android:gravity="center_vertical"
android:minHeight="?android:attr/listPreferredItemHeightSmall"
android:paddingLeft="@dimen/avatar_item_distance"