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