From 4cfb8e6a41474255ea81f444038447ae1669e598 Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Thu, 8 Jul 2021 20:42:46 -0400 Subject: [PATCH] fix reel_share layout (date/check location) --- .../awais/instagrabber/customviews/ChatMessageLayout.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/src/main/java/awais/instagrabber/customviews/ChatMessageLayout.java b/app/src/main/java/awais/instagrabber/customviews/ChatMessageLayout.java index 50d8a54d..7d09d929 100644 --- a/app/src/main/java/awais/instagrabber/customviews/ChatMessageLayout.java +++ b/app/src/main/java/awais/instagrabber/customviews/ChatMessageLayout.java @@ -94,7 +94,7 @@ public class ChatMessageLayout extends FrameLayout { heightSize += viewPartMainHeight; } 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.ivAnimatedMessage) { + || firstChildId == R.id.ivAnimatedMessage || firstChildId == R.id.reel_share_container) { widthSize += viewPartMainWidth; heightSize += viewPartMainHeight + viewPartInfoHeight; } else { @@ -104,12 +104,6 @@ public class ChatMessageLayout extends FrameLayout { if (firstChild instanceof TextView) { 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; if (textMessage != null) { viewPartMainLineCount = textMessage.getLineCount();