|
@ -94,7 +94,7 @@ public class ChatMessageLayout extends FrameLayout { |
|
|
heightSize += viewPartMainHeight; |
|
|
heightSize += viewPartMainHeight; |
|
|
} else if (firstChildId == R.id.raven_media_container || firstChildId == R.id.profile_container || firstChildId == R.id.voice_media |
|
|
} else if (firstChildId == R.id.raven_media_container || firstChildId == R.id.profile_container || firstChildId == R.id.voice_media |
|
|
|| firstChildId == R.id.story_container || firstChildId == R.id.media_share_container || firstChildId == R.id.link_container |
|
|
|| firstChildId == R.id.story_container || firstChildId == R.id.media_share_container || firstChildId == R.id.link_container |
|
|
|| firstChildId == R.id.ivAnimatedMessage) { |
|
|
|
|
|
|
|
|
|| firstChildId == R.id.ivAnimatedMessage || firstChildId == R.id.reel_share_container) { |
|
|
widthSize += viewPartMainWidth; |
|
|
widthSize += viewPartMainWidth; |
|
|
heightSize += viewPartMainHeight + viewPartInfoHeight; |
|
|
heightSize += viewPartMainHeight + viewPartInfoHeight; |
|
|
} else { |
|
|
} else { |
|
@ -104,12 +104,6 @@ public class ChatMessageLayout extends FrameLayout { |
|
|
if (firstChild instanceof TextView) { |
|
|
if (firstChild instanceof TextView) { |
|
|
textMessage = (TextView) firstChild; |
|
|
textMessage = (TextView) firstChild; |
|
|
} |
|
|
} |
|
|
else if (firstChildId == R.id.reel_share_container) { |
|
|
|
|
|
textMessage = (TextView) ((ConstraintLayout) firstChild).getChildAt(5); |
|
|
|
|
|
} |
|
|
|
|
|
else if (firstChildId == R.id.story_container) { |
|
|
|
|
|
textMessage = (TextView) ((ConstraintLayout) firstChild).getChildAt(2); |
|
|
|
|
|
} |
|
|
|
|
|
else textMessage = null; |
|
|
else textMessage = null; |
|
|
if (textMessage != null) { |
|
|
if (textMessage != null) { |
|
|
viewPartMainLineCount = textMessage.getLineCount(); |
|
|
viewPartMainLineCount = textMessage.getLineCount(); |
|
|