Use link dialog on long press only when not confirming links

This commit is contained in:
M66B
2024-02-17 17:40:12 +01:00
parent f896be9835
commit e19d3f4a22
2 changed files with 24 additions and 3 deletions

View File

@@ -626,7 +626,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
@Override
public void onLongPress(@NonNull MotionEvent event) {
onClick(event, true);
boolean confirm_links = prefs.getBoolean("confirm_links", true);
if (!confirm_links)
onClick(event, true);
}
private boolean onClick(MotionEvent event, boolean longClick) {