Merge "Fixed an issue where we would access the wrong drawable"

This commit is contained in:
Selim Cinek
2018-02-06 23:29:10 +00:00
committed by Android (Google) Code Review

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;