@Override protected void onDetachedFromWindow() { super.onDetachedFromWindow(); if (avatarImage != null) { avatarImage.clearImage(); lastAvatar = null; } }
@Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { if (user == null && chat == null && encryptedChat == null) { super.onLayout(changed, left, top, right, bottom); return; } if (changed) { buildLayout(); } }
@Override protected void onAttachedToWindow() { super.onAttachedToWindow(); avatarImage.onAttachedToWindow(); }
@Override protected void onDetachedFromWindow() { super.onDetachedFromWindow(); avatarImage.onDetachedFromWindow(); }