From 10382e83bf53637a026370a2c9af6b304bb19602 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Thu, 28 Jan 2021 17:40:58 +0100 Subject: [PATCH] remove unused methods --- .../eu/siacs/conversations/ui/ConversationFragment.java | 2 -- .../eu/siacs/conversations/ui/adapter/MessageAdapter.java | 7 +------ 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java index 77bec0a1b..23807b090 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java +++ b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java @@ -1037,7 +1037,6 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke messageListAdapter = new MessageAdapter((XmppActivity) getActivity(), this.messageList); messageListAdapter.setOnContactPictureClicked(this); messageListAdapter.setOnContactPictureLongClicked(this); - messageListAdapter.setOnQuoteListener(this::quoteText); binding.messagesView.setAdapter(messageListAdapter); registerForContextMenu(binding.messagesView); @@ -1055,7 +1054,6 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke Log.d(Config.LOGTAG, "ConversationFragment.onDestroyView()"); messageListAdapter.setOnContactPictureClicked(null); messageListAdapter.setOnContactPictureLongClicked(null); - messageListAdapter.setOnQuoteListener(null); } private void quoteText(String text) { diff --git a/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java b/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java index 1db84b678..f7b76e78f 100644 --- a/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java +++ b/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java @@ -88,7 +88,6 @@ public class MessageAdapter extends ArrayAdapter { private OnContactPictureClicked mOnContactPictureClickedListener; private OnContactPictureLongClicked mOnContactPictureLongClickedListener; private boolean mUseGreenBackground = false; - private OnQuoteListener onQuoteListener; public MessageAdapter(XmppActivity activity, List messages) { super(activity, 0, messages); @@ -130,10 +129,6 @@ public class MessageAdapter extends ArrayAdapter { this.mOnContactPictureLongClickedListener = listener; } - public void setOnQuoteListener(OnQuoteListener listener) { - this.onQuoteListener = listener; - } - @Override public int getViewTypeCount() { return 5; @@ -861,7 +856,7 @@ public class MessageAdapter extends ArrayAdapter { private void promptOpenKeychainInstall(View view) { activity.showInstallPgpDialog(); } - + public FileBackend getFileBackend() { return activity.xmppConnectionService.getFileBackend(); }