Fixed an issue where we would access the wrong drawable

Quick follow up fix the inline images

Test: add notification with image
Change-Id: I21c149b0cd63bc93895eee34be5e68d3caef0298
This commit is contained in:
Selim Cinek
2018-02-06 15:24:25 -08:00
parent 7199ed910e
commit 0b45fa9e65

View File

@@ -101,7 +101,7 @@ public class MessagingImageMessage extends ImageView implements MessagingMessage
e.printStackTrace();
return false;
}
int intrinsicHeight = mDrawable.getIntrinsicHeight();
int intrinsicHeight = drawable.getIntrinsicHeight();
if (intrinsicHeight == 0) {
Log.w(TAG, "Drawable with 0 intrinsic height was returned");
return false;