1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-26 16:47:30 +00:00

restore copy bio

This commit is contained in:
Austin Huang 2020-09-26 14:52:28 -04:00
parent 99a8e03578
commit a0b43ce388
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F
2 changed files with 5 additions and 1 deletions

View File

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

View File

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