|
|
@ -85,8 +85,7 @@ public class AdapterImage extends RecyclerView.Adapter<AdapterImage.ViewHolder>
|
|
|
|
tvCaption.setVisibility(TextUtils.isEmpty(attachment.name) ? View.GONE : View.VISIBLE);
|
|
|
|
tvCaption.setVisibility(TextUtils.isEmpty(attachment.name) ? View.GONE : View.VISIBLE);
|
|
|
|
|
|
|
|
|
|
|
|
if (attachment.available) {
|
|
|
|
if (attachment.available) {
|
|
|
|
if (BuildConfig.DEBUG &&
|
|
|
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P)
|
|
|
|
Build.VERSION.SDK_INT >= Build.VERSION_CODES.P)
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
Drawable d = ImageHelper.getScaledDrawable(context,
|
|
|
|
Drawable d = ImageHelper.getScaledDrawable(context,
|
|
|
|
attachment.getFile(context), attachment.getMimeType(),
|
|
|
|
attachment.getFile(context), attachment.getMimeType(),
|
|
|
|