From 2efaf1df93e6b1157bbaf19d11b22926c1817931 Mon Sep 17 00:00:00 2001 From: wch423 Date: Wed, 14 Jan 2026 14:55:59 +0100 Subject: [PATCH] Remove email address from profile --- .../org/thoughtcrime/securesms/ProfileAdapter.java | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/main/java/org/thoughtcrime/securesms/ProfileAdapter.java b/src/main/java/org/thoughtcrime/securesms/ProfileAdapter.java index 41eb6eec8..4149ad2c4 100644 --- a/src/main/java/org/thoughtcrime/securesms/ProfileAdapter.java +++ b/src/main/java/org/thoughtcrime/securesms/ProfileAdapter.java @@ -39,7 +39,6 @@ public class ProfileAdapter extends RecyclerView.Adapter public static final int ITEM_SEND_MESSAGE_BUTTON = 35; public static final int ITEM_LAST_SEEN = 40; public static final int ITEM_INTRODUCED_BY = 45; - public static final int ITEM_ADDRESS = 50; public static final int ITEM_HEADER = 53; public static final int ITEM_MEMBERS = 55; public static final int ITEM_SHARED_CHATS = 60; @@ -140,7 +139,7 @@ public class ProfileAdapter extends RecyclerView.Adapter } else if (viewType == ITEM_ALL_MEDIA_BUTTON || viewType == ITEM_SEND_MESSAGE_BUTTON) { final ProfileTextItem item = (ProfileTextItem)layoutInflater.inflate(R.layout.profile_text_item_button, parent, false); return new ViewHolder(item); - } else if (viewType == ITEM_LAST_SEEN || viewType == ITEM_INTRODUCED_BY || viewType == ITEM_ADDRESS) { + } else if (viewType == ITEM_LAST_SEEN || viewType == ITEM_INTRODUCED_BY) { final ProfileTextItem item = (ProfileTextItem)layoutInflater.inflate(R.layout.profile_text_item_small, parent, false); return new ViewHolder(item); } else { @@ -208,12 +207,9 @@ public class ProfileAdapter extends RecyclerView.Adapter item.setOnClickListener(view -> clickListener.onSettingsClicked(data.viewType)); boolean tintIcon = data.viewType != ITEM_INTRODUCED_BY; item.set(data.label, data.icon, tintIcon); - if (data.viewType == ITEM_LAST_SEEN || data.viewType == ITEM_ADDRESS) { + if (data.viewType == ITEM_LAST_SEEN) { int padding = (int)((float)context.getResources().getDimensionPixelSize(R.dimen.contact_list_normal_padding) * 1.2); item.setPadding(item.getPaddingLeft(), item.getPaddingTop(), item.getPaddingRight(), padding); - if (data.viewType == ITEM_ADDRESS) { - fragment.registerForContextMenu(item); - } } else if (data.viewType == ITEM_INTRODUCED_BY) { int padding = context.getResources().getDimensionPixelSize(R.dimen.contact_list_normal_padding); item.setPadding(item.getPaddingLeft(), padding, item.getPaddingRight(), item.getPaddingBottom()); @@ -342,10 +338,6 @@ public class ProfileAdapter extends RecyclerView.Adapter String introducedBy = context.getString(R.string.verified_by_unknown); itemData.add(new ItemData(ITEM_INTRODUCED_BY, introducedBy, R.drawable.ic_verified)); } - - if (dcContact != null) { - itemData.add(new ItemData(ITEM_ADDRESS, dcContact.getAddr(), 0)); - } } notifyDataSetChanged();