Skip to content

Commit

Permalink
Fixed labels random position on the thread details screen.| #74
Browse files Browse the repository at this point in the history
  • Loading branch information
DenBond7 committed Nov 12, 2024
1 parent 528c8cd commit 092ec24
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,14 @@ class MessagesInThreadListAdapter(
flexDirection = FlexDirection.ROW
justifyContent = JustifyContent.FLEX_START
}
addItemDecoration(
MarginItemDecoration(
marginRight = resources.getDimensionPixelSize(R.dimen.default_margin_small),
marginTop = resources.getDimensionPixelSize(R.dimen.default_margin_small)
if (itemDecorationCount == 0) {
addItemDecoration(
MarginItemDecoration(
marginRight = resources.getDimensionPixelSize(R.dimen.default_margin_small),
marginTop = resources.getDimensionPixelSize(R.dimen.default_margin_small)
)
)
)
}
adapter = gmailApiLabelsListAdapter
}

Expand Down

0 comments on commit 092ec24

Please sign in to comment.