From 23f3ef45c2688359cf0b6f5b4d2638525642ed16 Mon Sep 17 00:00:00 2001 From: Ammar Githam Date: Wed, 18 Nov 2020 23:27:29 +0900 Subject: [PATCH] Fix binding change in ProfileFragment --- .../instagrabber/fragments/main/ProfileFragment.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/awais/instagrabber/fragments/main/ProfileFragment.java b/app/src/main/java/awais/instagrabber/fragments/main/ProfileFragment.java index 23183c7d..86fdd839 100644 --- a/app/src/main/java/awais/instagrabber/fragments/main/ProfileFragment.java +++ b/app/src/main/java/awais/instagrabber/fragments/main/ProfileFragment.java @@ -612,7 +612,7 @@ public class ProfileFragment extends Fragment implements SwipeRefreshLayout.OnRe profileDetailsBinding.mainBiography .addOnURLClickListener(autoLinkItem -> Utils.openURL(getContext(), autoLinkItem.getOriginalText().trim())); profileDetailsBinding.mainBiography.setOnLongClickListener(v -> { - if (context != null) Utils.copyText(context, biography); + Utils.copyText(context, biography); return true; }); } @@ -624,13 +624,13 @@ public class ProfileFragment extends Fragment implements SwipeRefreshLayout.OnRe profileDetailsBinding.mainUrl.setText(url); profileDetailsBinding.mainUrl.addOnURLClickListener(autoLinkItem -> Utils.openURL(getContext(), autoLinkItem.getOriginalText().trim())); profileDetailsBinding.mainUrl.setOnLongClickListener(v -> { - if (context != null) Utils.copyText(context, url); + Utils.copyText(context, url); return true; }); } if (!profileModel.isReallyPrivate() && isLoggedIn) { - binding.mainFollowing.setClickable(true); - binding.mainFollowers.setClickable(true); + profileDetailsBinding.mainFollowing.setClickable(true); + profileDetailsBinding.mainFollowers.setClickable(true); if (isLoggedIn) { final View.OnClickListener followClickListener = v -> {