Release 3.21.0

rework_peertube_api 3.21.0
Thomas 2 years ago
parent fd4133d962
commit 740ce71ac9

@ -13,8 +13,8 @@ android {
defaultConfig { defaultConfig {
minSdk 21 minSdk 21
targetSdk 33 targetSdk 33
versionCode 486 versionCode 487
versionName "3.20.3" versionName "3.21.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
} }
flavorDimensions "default" flavorDimensions "default"

@ -1,4 +1,9 @@
[ [
{
"version": "3.21.0",
"code": "487",
"note": "Added:\n- Dedicated Peertube entry in main menu (My app)\n- Select instances (Instances picker with Filters)\n- Comment/Boost/Fav Peertube videos with Mastodon accounts\n\nFixed:\n- Fix a crash when searching and with the user directory"
},
{ {
"version": "3.20.3", "version": "3.20.3",
"code": "486", "code": "486",

@ -362,7 +362,7 @@ public class ProfileActivity extends BaseActivity {
if (account.locked) { if (account.locked) {
Drawable img = ContextCompat.getDrawable(ProfileActivity.this, R.drawable.ic_baseline_lock_24); Drawable img = ContextCompat.getDrawable(ProfileActivity.this, R.drawable.ic_baseline_lock_24);
assert img != null; assert img != null;
img.setBounds(0, 0, (int) (16 * scale + 0.5f), (int) (16 * scale + 0.5f)); img.setBounds(0, 0, (int) (Helper.convertDpToPixel(14, this) * scale + 0.5f), (int) (Helper.convertDpToPixel(14, this) * scale + 0.5f));
binding.accountUn.setCompoundDrawables(null, null, img, null); binding.accountUn.setCompoundDrawables(null, null, img, null);
} else { } else {
binding.accountUn.setCompoundDrawables(null, null, null, null); binding.accountUn.setCompoundDrawables(null, null, null, null);
@ -399,7 +399,7 @@ public class ProfileActivity extends BaseActivity {
binding.accountMoved.setVisibility(View.VISIBLE); binding.accountMoved.setVisibility(View.VISIBLE);
Drawable imgTravel = ContextCompat.getDrawable(ProfileActivity.this, R.drawable.ic_baseline_card_travel_24); Drawable imgTravel = ContextCompat.getDrawable(ProfileActivity.this, R.drawable.ic_baseline_card_travel_24);
assert imgTravel != null; assert imgTravel != null;
imgTravel.setBounds(0, 0, (int) (20 * scale + 0.5f), (int) (20 * scale + 0.5f)); imgTravel.setBounds(0, 0, (int) (Helper.convertDpToPixel(20, this) * scale + 0.5f), (int) (Helper.convertDpToPixel(20, this) * scale + 0.5f));
binding.accountMoved.setCompoundDrawables(imgTravel, null, null, null); binding.accountMoved.setCompoundDrawables(imgTravel, null, null, null);
//Retrieves content and make account names clickable //Retrieves content and make account names clickable
SpannableString spannableString = SpannableHelper.moveToText(ProfileActivity.this, account); SpannableString spannableString = SpannableHelper.moveToText(ProfileActivity.this, account);

@ -0,0 +1,7 @@
Added:
- Dedicated Peertube entry in main menu (My app)
- Select instances (Instances picker with Filters)
- Comment/Boost/Fav Peertube videos with Mastodon accounts
Fixed:
- Fix a crash when searching and with the user directory
Loading…
Cancel
Save