mirror of
				https://codeberg.org/tom79/Fedilab.git
				synced 2025-10-20 11:20:16 +03:00 
			
		
		
		
	Fix issue #810 - Cache issue
This commit is contained in:
		
							parent
							
								
									8c49260a67
								
							
						
					
					
						commit
						a47cbf80cd
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -71,6 +71,7 @@ import androidx.preference.PreferenceManager;
 | 
			
		|||
import androidx.recyclerview.widget.RecyclerView;
 | 
			
		||||
 | 
			
		||||
import com.bumptech.glide.Glide;
 | 
			
		||||
import com.bumptech.glide.load.engine.DiskCacheStrategy;
 | 
			
		||||
import com.bumptech.glide.request.RequestOptions;
 | 
			
		||||
import com.bumptech.glide.request.target.CustomTarget;
 | 
			
		||||
import com.bumptech.glide.request.transition.Transition;
 | 
			
		||||
| 
						 | 
				
			
			@ -1084,7 +1085,7 @@ public class ComposeAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder
 | 
			
		|||
                        if ((attachment.type != null && attachment.type.toLowerCase().startsWith("image")) || (attachment.mimeType != null && attachment.mimeType.toLowerCase().startsWith("image"))) {
 | 
			
		||||
                            Glide.with(composeAttachmentItemBinding.preview.getContext())
 | 
			
		||||
                                    .load(attachmentPath)
 | 
			
		||||
                                    //.diskCacheStrategy(DiskCacheStrategy.NONE)
 | 
			
		||||
                                    .diskCacheStrategy(DiskCacheStrategy.NONE)
 | 
			
		||||
                                    .skipMemoryCache(true)
 | 
			
		||||
                                    .into(composeAttachmentItemBinding.preview);
 | 
			
		||||
                        } else if ((attachment.type != null && attachment.type.toLowerCase().startsWith("video")) || (attachment.mimeType != null && attachment.mimeType.toLowerCase().startsWith("video"))) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue