Browse Source

restore copy bio

renovate/org.robolectric-robolectric-4.x
Austin Huang 4 years ago
parent
commit
a0b43ce388
No known key found for this signature in database GPG Key ID: 84C23AA04587A91F
  1. 5
      app/src/main/java/awais/instagrabber/fragments/main/ProfileFragment.java
  2. 1
      app/src/main/res/layout/fragment_profile.xml

5
app/src/main/java/awais/instagrabber/fragments/main/ProfileFragment.java

@ -573,6 +573,10 @@ public class ProfileFragment extends Fragment implements SwipeRefreshLayout.OnRe
binding.mainBiography.setText(biography);
binding.mainBiography.setMentionClickListener(null);
}
binding.mainBiography.setOnLongClickListener(v -> {
if (context != null) Utils.copyText(context, profileModel.getBiography());
return true;
});
final String url = profileModel.getUrl();
if (TextUtils.isEmpty(url)) {
@ -585,6 +589,7 @@ public class ProfileFragment extends Fragment implements SwipeRefreshLayout.OnRe
binding.mainFullName.setSelected(true);
binding.mainBiography.setEnabled(true);
binding.mainBiography.setClickable(true);
if (!profileModel.isReallyPrivate()) {
binding.mainFollowing.setClickable(true);

1
app/src/main/res/layout/fragment_profile.xml

@ -82,7 +82,6 @@
android:paddingTop="8dp"
android:paddingEnd="4dp"
android:paddingRight="4dp"
android:paddingBottom="8dp"
android:singleLine="true"
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
android:textStyle="bold"

Loading…
Cancel
Save