mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-26 08:37:29 +00:00
Fix binding change in ProfileFragment
This commit is contained in:
parent
e2bf09cc7f
commit
23f3ef45c2
@ -612,7 +612,7 @@ public class ProfileFragment extends Fragment implements SwipeRefreshLayout.OnRe
|
|||||||
profileDetailsBinding.mainBiography
|
profileDetailsBinding.mainBiography
|
||||||
.addOnURLClickListener(autoLinkItem -> Utils.openURL(getContext(), autoLinkItem.getOriginalText().trim()));
|
.addOnURLClickListener(autoLinkItem -> Utils.openURL(getContext(), autoLinkItem.getOriginalText().trim()));
|
||||||
profileDetailsBinding.mainBiography.setOnLongClickListener(v -> {
|
profileDetailsBinding.mainBiography.setOnLongClickListener(v -> {
|
||||||
if (context != null) Utils.copyText(context, biography);
|
Utils.copyText(context, biography);
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -624,13 +624,13 @@ public class ProfileFragment extends Fragment implements SwipeRefreshLayout.OnRe
|
|||||||
profileDetailsBinding.mainUrl.setText(url);
|
profileDetailsBinding.mainUrl.setText(url);
|
||||||
profileDetailsBinding.mainUrl.addOnURLClickListener(autoLinkItem -> Utils.openURL(getContext(), autoLinkItem.getOriginalText().trim()));
|
profileDetailsBinding.mainUrl.addOnURLClickListener(autoLinkItem -> Utils.openURL(getContext(), autoLinkItem.getOriginalText().trim()));
|
||||||
profileDetailsBinding.mainUrl.setOnLongClickListener(v -> {
|
profileDetailsBinding.mainUrl.setOnLongClickListener(v -> {
|
||||||
if (context != null) Utils.copyText(context, url);
|
Utils.copyText(context, url);
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!profileModel.isReallyPrivate() && isLoggedIn) {
|
if (!profileModel.isReallyPrivate() && isLoggedIn) {
|
||||||
binding.mainFollowing.setClickable(true);
|
profileDetailsBinding.mainFollowing.setClickable(true);
|
||||||
binding.mainFollowers.setClickable(true);
|
profileDetailsBinding.mainFollowers.setClickable(true);
|
||||||
|
|
||||||
if (isLoggedIn) {
|
if (isLoggedIn) {
|
||||||
final View.OnClickListener followClickListener = v -> {
|
final View.OnClickListener followClickListener = v -> {
|
||||||
|
Loading…
Reference in New Issue
Block a user