Commit 46a73ab2 authored by Tiago Cunha's avatar Tiago Cunha

Fixes crash with placeholder vector

parent 9af2a0d2
......@@ -5,6 +5,7 @@ import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.support.graphics.drawable.VectorDrawableCompat;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.view.LayoutInflater;
......@@ -132,7 +133,7 @@ public class RocketChatMessageAttachmentsLayout extends LinearLayout {
.downloader(getDownloader())
.build()
.load(absolutize(imageURL))
.placeholder(R.drawable.image_dummy)
.placeholder(VectorDrawableCompat.create(getResources(), R.drawable.image_dummy, null))
.error(R.drawable.image_error)
.into((ImageView) attachmentView.findViewById(R.id.image));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment