Release notes
This commit is contained in:
parent
24ec69d7f7
commit
d6f1a360d2
|
@ -9,8 +9,8 @@ android {
|
|||
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 30
|
||||
versionCode 33
|
||||
versionName "1.10.2"
|
||||
versionCode 34
|
||||
versionName "1.11.0"
|
||||
multiDexEnabled true
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
|
|
|
@ -375,6 +375,8 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd
|
|||
binding.peertubeReblog.setVisibility(View.VISIBLE);
|
||||
binding.peertubeFavorite.setVisibility(View.VISIBLE);
|
||||
binding.peertubeBookmark.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
binding.peertubePlaylist.setVisibility(View.VISIBLE);
|
||||
}
|
||||
|
||||
binding.peertubeDescriptionMore.setOnClickListener(v -> {
|
||||
|
@ -721,7 +723,7 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd
|
|||
if (autoFullscreen && autoPlay) {
|
||||
openFullscreenDialog();
|
||||
}
|
||||
binding.peertubePlaylist.setVisibility(View.VISIBLE);
|
||||
|
||||
TimelineVM feedsViewModel = new ViewModelProvider(PeertubeActivity.this).get(TimelineVM.class);
|
||||
if (!isRemote) {
|
||||
feedsViewModel.getVideo(sepiaSearch ? peertubeInstance : null, videoUuid, isMyVideo).observe(PeertubeActivity.this, this::manageVIewVideo);
|
||||
|
@ -1222,21 +1224,33 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd
|
|||
initResolution();
|
||||
|
||||
binding.peertubeReblog.setOnClickListener(v -> {
|
||||
if (status != null) {
|
||||
MastodonPostActionsVM mastodonPostActionsVM = new ViewModelProvider(PeertubeActivity.this).get(MastodonPostActionsVM.class);
|
||||
RetrofitMastodonAPI.actionType type = status.isReblogged() ? RetrofitMastodonAPI.actionType.UNBOOST : RetrofitMastodonAPI.actionType.BOOST;
|
||||
mastodonPostActionsVM.post(type, status).observe(PeertubeActivity.this, this::manageVIewPostActionsMastodon);
|
||||
} else {
|
||||
Toasty.error(PeertubeActivity.this, getString(R.string.federation_issue), Toasty.LENGTH_LONG).show();
|
||||
}
|
||||
});
|
||||
|
||||
binding.peertubeFavorite.setOnClickListener(v -> {
|
||||
if (status != null) {
|
||||
MastodonPostActionsVM mastodonPostActionsVM = new ViewModelProvider(PeertubeActivity.this).get(MastodonPostActionsVM.class);
|
||||
RetrofitMastodonAPI.actionType type = status.isFavourited() ? RetrofitMastodonAPI.actionType.UNFAVOURITE : RetrofitMastodonAPI.actionType.FAVOURITE;
|
||||
mastodonPostActionsVM.post(type, status).observe(PeertubeActivity.this, this::manageVIewPostActionsMastodon);
|
||||
} else {
|
||||
Toasty.error(PeertubeActivity.this, getString(R.string.federation_issue), Toasty.LENGTH_LONG).show();
|
||||
}
|
||||
});
|
||||
|
||||
binding.peertubeBookmark.setOnClickListener(v -> {
|
||||
if (status != null) {
|
||||
MastodonPostActionsVM mastodonPostActionsVM = new ViewModelProvider(PeertubeActivity.this).get(MastodonPostActionsVM.class);
|
||||
RetrofitMastodonAPI.actionType type = status.isBookmarked() ? RetrofitMastodonAPI.actionType.UNBOOKMARK : RetrofitMastodonAPI.actionType.BOOKMARK;
|
||||
mastodonPostActionsVM.post(type, status).observe(PeertubeActivity.this, this::manageVIewPostActionsMastodon);
|
||||
} else {
|
||||
Toasty.error(PeertubeActivity.this, getString(R.string.federation_issue), Toasty.LENGTH_LONG).show();
|
||||
}
|
||||
});
|
||||
|
||||
binding.peertubeLikeCount.setOnClickListener(v -> {
|
||||
|
|
|
@ -79,7 +79,12 @@ public class OwnAccountsAdapter extends ArrayAdapter<Account> {
|
|||
|
||||
holder.account_un.setText(String.format("@%s", account.getAcct()));
|
||||
//Profile picture
|
||||
if (account.getAvatar() != null && account.getAvatar().getPath().startsWith("http")) {
|
||||
Helper.loadGiF(holder.account_pp.getContext(), account.getAvatar().getPath(), holder.account_pp);
|
||||
} else {
|
||||
Helper.loadGiF(holder.account_pp.getContext(), "https://" + account.getHost() + account.getAvatar().getPath(), holder.account_pp);
|
||||
}
|
||||
|
||||
return convertView;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue