Skip to content

Commit 8b40168

Browse files
authored
fix(CompactMode): hide avatar decos more consistently (#123)
1 parent c0e8dc2 commit 8b40168

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

plugin/CompactMode/src/main/kotlin/CompactMode.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,10 @@ class CompactMode : Plugin() {
153153
}
154154
if (settings.hideAvatar) {
155155
avatarView!!.visibility = View.GONE
156-
avatarDecoration?.visibility = View.GONE
156+
avatarDecoration?.layoutParams<ConstraintLayout.LayoutParams>()?.run {
157+
height = 0
158+
width = 0
159+
}
157160

158161
headerView.layoutParams<ConstraintLayout.LayoutParams>().marginStart = contentMargin
159162

0 commit comments

Comments
 (0)