Merge "Prevent NPE in MessagingImageMessage" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
5a582c83cc
@@ -198,6 +198,11 @@ public class MessagingImageMessage extends ImageView implements MessagingMessage
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getMeasuredType() {
|
public int getMeasuredType() {
|
||||||
|
if (mDrawable == null) {
|
||||||
|
Log.e(TAG, "getMeasuredType() after recycle()!");
|
||||||
|
return MEASURED_NORMAL;
|
||||||
|
}
|
||||||
|
|
||||||
int measuredHeight = getMeasuredHeight();
|
int measuredHeight = getMeasuredHeight();
|
||||||
int minImageHeight;
|
int minImageHeight;
|
||||||
if (mIsIsolated) {
|
if (mIsIsolated) {
|
||||||
|
|||||||
Reference in New Issue
Block a user