Skip to content

Commit 9643eb0

Browse files
authored
Merge pull request #11 from Rolf-Smit/bugfix/crash-when-showing-agent-typing
Fix: crash when showing the 'agent typing' message
2 parents ce009bc + 3b2ef75 commit 9643eb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parley/src/main/java/nu/parley/android/view/chat/holder/AgentTypingMessageViewHolder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ private void applyStyle() {
5959
contentLayout.setBackground(StyleUtil.getDrawable(getContext(), ta, R.styleable.ParleyMessageAgentTyping_parley_background));
6060
StyleUtil.Helper.applyBackgroundColor(contentLayout, ta, R.styleable.ParleyMessageAgentTyping_parley_background_tint_color);
6161

62-
StyleUtil.StyleSpacing styleSpacingMargin = StyleUtil.getSpacingData(ta, R.styleable.ParleyMessageAgentTyping_parley_margin, R.styleable.ParleyMessageAgentTyping_parley_margin_top, R.styleable.ParleyMessageAgentTyping_parley_margin_right, R.styleable.ParleyMessageBase_parley_margin_bottom, R.styleable.ParleyMessageAgentTyping_parley_margin_left);
62+
StyleUtil.StyleSpacing styleSpacingMargin = StyleUtil.getSpacingData(ta, R.styleable.ParleyMessageAgentTyping_parley_margin, R.styleable.ParleyMessageAgentTyping_parley_margin_top, R.styleable.ParleyMessageAgentTyping_parley_margin_right, R.styleable.ParleyMessageAgentTyping_parley_margin_bottom, R.styleable.ParleyMessageAgentTyping_parley_margin_left);
6363
itemView.setPadding(styleSpacingMargin.left, styleSpacingMargin.top, styleSpacingMargin.right, styleSpacingMargin.bottom);
6464
StyleUtil.StyleSpacing styleSpacingPadding = StyleUtil.getSpacingData(ta, R.styleable.ParleyMessageAgentTyping_parley_content_padding, R.styleable.ParleyMessageAgentTyping_parley_content_padding_top, R.styleable.ParleyMessageAgentTyping_parley_content_padding_right, R.styleable.ParleyMessageAgentTyping_parley_content_padding_bottom, R.styleable.ParleyMessageAgentTyping_parley_content_padding_left);
6565
contentLayout.setPadding(styleSpacingPadding.left, styleSpacingPadding.top, styleSpacingPadding.right, styleSpacingPadding.bottom);

0 commit comments

Comments
 (0)