forked from mirrors/Fedilab
3.13.6
This commit is contained in:
parent
a78a3580b3
commit
299df2cd59
4 changed files with 19 additions and 8 deletions
|
@ -13,8 +13,8 @@ android {
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdk 21
|
minSdk 21
|
||||||
targetSdk 33
|
targetSdk 33
|
||||||
versionCode 459
|
versionCode 460
|
||||||
versionName "3.13.5"
|
versionName "3.13.6"
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
flavorDimensions "default"
|
flavorDimensions "default"
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
[
|
[
|
||||||
|
{
|
||||||
|
"version": "3.13.6",
|
||||||
|
"code": "460",
|
||||||
|
"note": "Fixed:\n- Cross-compose: Wrong instance emojis\n- Custom emojis not displayed in notifications\n- Fav/Boost markers with shared messages\n- Empty notifications\n- Fix cw removed when replying\n- Fix expand media with fit preview images when sensitive\n- Fix an issue with fetch more displayed too often (cache clear will help or wait new messages)"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"version": "3.13.5",
|
"version": "3.13.5",
|
||||||
"code": "459",
|
"code": "459",
|
||||||
|
|
|
@ -68,7 +68,6 @@ import androidx.preference.PreferenceManager;
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
|
|
||||||
import com.bumptech.glide.Glide;
|
import com.bumptech.glide.Glide;
|
||||||
import com.bumptech.glide.load.engine.DiskCacheStrategy;
|
|
||||||
import com.bumptech.glide.request.RequestOptions;
|
import com.bumptech.glide.request.RequestOptions;
|
||||||
import com.bumptech.glide.request.target.CustomTarget;
|
import com.bumptech.glide.request.target.CustomTarget;
|
||||||
import com.bumptech.glide.request.transition.Transition;
|
import com.bumptech.glide.request.transition.Transition;
|
||||||
|
@ -1023,19 +1022,18 @@ public class ComposeAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder
|
||||||
for (Attachment attachment : attachmentList) {
|
for (Attachment attachment : attachmentList) {
|
||||||
ComposeAttachmentItemBinding composeAttachmentItemBinding = ComposeAttachmentItemBinding.inflate(LayoutInflater.from(context), holder.binding.attachmentsList, false);
|
ComposeAttachmentItemBinding composeAttachmentItemBinding = ComposeAttachmentItemBinding.inflate(LayoutInflater.from(context), holder.binding.attachmentsList, false);
|
||||||
composeAttachmentItemBinding.buttonPlay.setVisibility(View.GONE);
|
composeAttachmentItemBinding.buttonPlay.setVisibility(View.GONE);
|
||||||
/* if (editMessageId != null) {
|
if (editMessageId != null && attachment.url != null) {
|
||||||
composeAttachmentItemBinding.editPreview.setVisibility(View.INVISIBLE);
|
composeAttachmentItemBinding.editPreview.setVisibility(View.GONE);
|
||||||
composeAttachmentItemBinding.buttonDescription.setVisibility(View.INVISIBLE);
|
composeAttachmentItemBinding.buttonDescription.setVisibility(View.INVISIBLE);
|
||||||
composeAttachmentItemBinding.buttonOrderDown.setVisibility(View.INVISIBLE);
|
composeAttachmentItemBinding.buttonOrderDown.setVisibility(View.INVISIBLE);
|
||||||
composeAttachmentItemBinding.buttonOrderUp.setVisibility(View.INVISIBLE);
|
composeAttachmentItemBinding.buttonOrderUp.setVisibility(View.INVISIBLE);
|
||||||
composeAttachmentItemBinding.buttonRemove.setVisibility(View.INVISIBLE);
|
}
|
||||||
}*/
|
|
||||||
String attachmentPath = attachment.local_path != null && !attachment.local_path.trim().isEmpty() ? attachment.local_path : attachment.preview_url;
|
String attachmentPath = attachment.local_path != null && !attachment.local_path.trim().isEmpty() ? attachment.local_path : attachment.preview_url;
|
||||||
if (attachment.type != null || attachment.mimeType != null) {
|
if (attachment.type != null || attachment.mimeType != null) {
|
||||||
if ((attachment.type != null && attachment.type.toLowerCase().startsWith("image")) || (attachment.mimeType != null && attachment.mimeType.toLowerCase().startsWith("image"))) {
|
if ((attachment.type != null && attachment.type.toLowerCase().startsWith("image")) || (attachment.mimeType != null && attachment.mimeType.toLowerCase().startsWith("image"))) {
|
||||||
Glide.with(composeAttachmentItemBinding.preview.getContext())
|
Glide.with(composeAttachmentItemBinding.preview.getContext())
|
||||||
.load(attachmentPath)
|
.load(attachmentPath)
|
||||||
.diskCacheStrategy(DiskCacheStrategy.NONE)
|
//.diskCacheStrategy(DiskCacheStrategy.NONE)
|
||||||
.skipMemoryCache(true)
|
.skipMemoryCache(true)
|
||||||
.into(composeAttachmentItemBinding.preview);
|
.into(composeAttachmentItemBinding.preview);
|
||||||
} else if ((attachment.type != null && attachment.type.toLowerCase().startsWith("video")) || (attachment.mimeType != null && attachment.mimeType.toLowerCase().startsWith("video"))) {
|
} else if ((attachment.type != null && attachment.type.toLowerCase().startsWith("video")) || (attachment.mimeType != null && attachment.mimeType.toLowerCase().startsWith("video"))) {
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
Fixed:
|
||||||
|
- Cross-compose: Wrong instance emojis
|
||||||
|
- Custom emojis not displayed in notifications
|
||||||
|
- Fav/Boost markers with shared messages
|
||||||
|
- Empty notifications
|
||||||
|
- Fix cw removed when replying
|
||||||
|
- Fix expand media with fit preview images when sensitive
|
||||||
|
- Fix an issue with fetch more displayed too often (cache clear will help or wait new messages)
|
Loading…
Reference in a new issue