feat(profile): display DecentralizationExplainerSheet by clicking on username

This commit is contained in:
FineFindus 2024-03-17 15:53:49 +01:00
parent 4a13398801
commit a488776daa
No known key found for this signature in database
GPG Key ID: 64873EE210FF8E6B
1 changed files with 1 additions and 9 deletions

View File

@ -398,7 +398,7 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList
followingBtn.setOnClickListener(this::onFollowersOrFollowingClick); followingBtn.setOnClickListener(this::onFollowersOrFollowingClick);
content.findViewById(R.id.username_wrap).setOnClickListener(v->{ 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->{ content.findViewById(R.id.username_wrap).setOnLongClickListener(v->{
@ -435,14 +435,6 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList
nameEdit.addTextChangedListener(new SimpleTextWatcher(e->editDirty=true)); nameEdit.addTextChangedListener(new SimpleTextWatcher(e->editDirty=true));
bioEdit.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->{ // qrCodeButton.setOnClickListener(v->{
// Bundle args=new Bundle(); // Bundle args=new Bundle();