Skip to content

Commit

Permalink
feat(profile): display DecentralizationExplainerSheet by clicking on …
Browse files Browse the repository at this point in the history
…username
  • Loading branch information
FineFindus committed Mar 17, 2024
1 parent 4a13398 commit a488776
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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->{
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit a488776

Please sign in to comment.