Prepare release 2.35.0

This commit is contained in:
tom79 2020-04-16 16:23:48 +02:00
parent 92cf0c6ff5
commit d6d7086600
3 changed files with 35 additions and 29 deletions

View File

@ -6,8 +6,8 @@ android {
defaultConfig { defaultConfig {
minSdkVersion 19 minSdkVersion 19
targetSdkVersion 29 targetSdkVersion 29
versionCode 362 versionCode 363
versionName "2.34.5" versionName "2.35.0"
multiDexEnabled true multiDexEnabled true
renderscriptTargetApi 28 as int renderscriptTargetApi 28 as int
renderscriptSupportModeEnabled true renderscriptSupportModeEnabled true

View File

@ -0,0 +1,4 @@
Fixed:
- Lot of crashes 🥺🥺🥺🥺🥺😱
- Push notifications not working
- Some issues with filters

View File

@ -1788,37 +1788,39 @@ public class Helper {
if (!accountChoice.getAvatar().startsWith("http")) if (!accountChoice.getAvatar().startsWith("http"))
accountChoice.setAvatar("https://" + accountChoice.getInstance() + accountChoice.getAvatar()); accountChoice.setAvatar("https://" + accountChoice.getInstance() + accountChoice.getAvatar());
ImageView itemIconAcc = new ImageView(activity); ImageView itemIconAcc = new ImageView(activity);
Glide.with(activity) if( !activity.isFinishing()) {
.asDrawable() Glide.with(activity)
.apply(new RequestOptions().transform(new CenterCrop(), new RoundedCorners(270))) .asDrawable()
.load(!disableGif ? accountChoice.getAvatar() : accountChoice.getAvatar_static()) .apply(new RequestOptions().transform(new CenterCrop(), new RoundedCorners(270)))
.listener(new RequestListener<Drawable>() { .load(!disableGif ? accountChoice.getAvatar() : accountChoice.getAvatar_static())
.listener(new RequestListener<Drawable>() {
@Override @Override
public boolean onResourceReady(Drawable resource, Object model, Target<Drawable> target, DataSource dataSource, boolean isFirstResource) { public boolean onResourceReady(Drawable resource, Object model, Target<Drawable> target, DataSource dataSource, boolean isFirstResource) {
return false; return false;
} }
@Override @Override
public boolean onLoadFailed(@Nullable GlideException e, Object model, Target target, boolean isFirstResource) { public boolean onLoadFailed(@Nullable GlideException e, Object model, Target target, boolean isFirstResource) {
if (MainActivity.social == UpdateAccountInfoAsyncTask.SOCIAL.MASTODON || MainActivity.social == UpdateAccountInfoAsyncTask.SOCIAL.PLEROMA) if (MainActivity.social == UpdateAccountInfoAsyncTask.SOCIAL.MASTODON || MainActivity.social == UpdateAccountInfoAsyncTask.SOCIAL.PLEROMA)
itemIconAcc.setImageResource(R.drawable.missing); itemIconAcc.setImageResource(R.drawable.missing);
else if (MainActivity.social == UpdateAccountInfoAsyncTask.SOCIAL.PEERTUBE) else if (MainActivity.social == UpdateAccountInfoAsyncTask.SOCIAL.PEERTUBE)
itemIconAcc.setImageResource(R.drawable.missing_peertube); itemIconAcc.setImageResource(R.drawable.missing_peertube);
return false; return false;
} }
}) })
.into(new CustomTarget<Drawable>() { .into(new CustomTarget<Drawable>() {
@Override @Override
public void onResourceReady(@NonNull Drawable resource, Transition<? super Drawable> transition) { public void onResourceReady(@NonNull Drawable resource, Transition<? super Drawable> transition) {
itemIconAcc.setImageDrawable(resource); itemIconAcc.setImageDrawable(resource);
} }
@Override @Override
public void onLoadCleared(@Nullable Drawable placeholder) { public void onLoadCleared(@Nullable Drawable placeholder) {
} }
}); });
}
if (accounts.size() > 2) { if (accounts.size() > 2) {
if (accountChoice.getSocial() != null && accountChoice.getSocial().equals("PEERTUBE")) if (accountChoice.getSocial() != null && accountChoice.getSocial().equals("PEERTUBE"))