From a488776daa6e31924f35331f11b8bbecc1624b75 Mon Sep 17 00:00:00 2001
From: FineFindus <FineFindus@proton.me>
Date: Sun, 17 Mar 2024 15:53:49 +0100
Subject: [PATCH] feat(profile): display DecentralizationExplainerSheet by
 clicking on username

---
 .../android/fragments/ProfileFragment.java             | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java
index c5fad076af..9e27046bce 100644
--- a/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java
+++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java
@@ -398,7 +398,7 @@ public void getOutline(View view, Outline outline){
 		followingBtn.setOnClickListener(this::onFollowersOrFollowingClick);
 
 		content.findViewById(R.id.username_wrap).setOnClickListener(v->{
-			UiUtils.goToInstanceAboutFragment(Uri.parse(account.url).getHost(), accountID, getContext());
+			new DecentralizationExplainerSheet(getActivity(), accountID, account).show();
 		});
 
 		content.findViewById(R.id.username_wrap).setOnLongClickListener(v->{
@@ -435,14 +435,6 @@ public void getOutline(View view, Outline outline){
 		nameEdit.addTextChangedListener(new SimpleTextWatcher(e->editDirty=true));
 		bioEdit.addTextChangedListener(new SimpleTextWatcher(e->editDirty=true));
 
-		usernameDomain.setOnClickListener(v->{
-			UiUtils.goToInstanceAboutFragment(Uri.parse(account.url).getHost(), accountID, getContext());
-		});
-
-		usernameDomain.setOnLongClickListener(v->{
-			new DecentralizationExplainerSheet(getActivity(), accountID, account).show();
-			return true;
-		});
 
 //		qrCodeButton.setOnClickListener(v->{
 //			Bundle args=new Bundle();