remove unused methods

This commit is contained in:
Daniel Gultsch 2021-01-28 17:40:58 +01:00
parent c11ac40df4
commit 10382e83bf
2 changed files with 1 additions and 8 deletions

View File

@ -1037,7 +1037,6 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke
messageListAdapter = new MessageAdapter((XmppActivity) getActivity(), this.messageList); messageListAdapter = new MessageAdapter((XmppActivity) getActivity(), this.messageList);
messageListAdapter.setOnContactPictureClicked(this); messageListAdapter.setOnContactPictureClicked(this);
messageListAdapter.setOnContactPictureLongClicked(this); messageListAdapter.setOnContactPictureLongClicked(this);
messageListAdapter.setOnQuoteListener(this::quoteText);
binding.messagesView.setAdapter(messageListAdapter); binding.messagesView.setAdapter(messageListAdapter);
registerForContextMenu(binding.messagesView); registerForContextMenu(binding.messagesView);
@ -1055,7 +1054,6 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke
Log.d(Config.LOGTAG, "ConversationFragment.onDestroyView()"); Log.d(Config.LOGTAG, "ConversationFragment.onDestroyView()");
messageListAdapter.setOnContactPictureClicked(null); messageListAdapter.setOnContactPictureClicked(null);
messageListAdapter.setOnContactPictureLongClicked(null); messageListAdapter.setOnContactPictureLongClicked(null);
messageListAdapter.setOnQuoteListener(null);
} }
private void quoteText(String text) { private void quoteText(String text) {

View File

@ -88,7 +88,6 @@ public class MessageAdapter extends ArrayAdapter<Message> {
private OnContactPictureClicked mOnContactPictureClickedListener; private OnContactPictureClicked mOnContactPictureClickedListener;
private OnContactPictureLongClicked mOnContactPictureLongClickedListener; private OnContactPictureLongClicked mOnContactPictureLongClickedListener;
private boolean mUseGreenBackground = false; private boolean mUseGreenBackground = false;
private OnQuoteListener onQuoteListener;
public MessageAdapter(XmppActivity activity, List<Message> messages) { public MessageAdapter(XmppActivity activity, List<Message> messages) {
super(activity, 0, messages); super(activity, 0, messages);
@ -130,10 +129,6 @@ public class MessageAdapter extends ArrayAdapter<Message> {
this.mOnContactPictureLongClickedListener = listener; this.mOnContactPictureLongClickedListener = listener;
} }
public void setOnQuoteListener(OnQuoteListener listener) {
this.onQuoteListener = listener;
}
@Override @Override
public int getViewTypeCount() { public int getViewTypeCount() {
return 5; return 5;
@ -861,7 +856,7 @@ public class MessageAdapter extends ArrayAdapter<Message> {
private void promptOpenKeychainInstall(View view) { private void promptOpenKeychainInstall(View view) {
activity.showInstallPgpDialog(); activity.showInstallPgpDialog();
} }
public FileBackend getFileBackend() { public FileBackend getFileBackend() {
return activity.xmppConnectionService.getFileBackend(); return activity.xmppConnectionService.getFileBackend();
} }