Skip to content

Commit

Permalink
Fix ktlint
Browse files Browse the repository at this point in the history
  • Loading branch information
XanderZhu committed Jul 23, 2024
1 parent bbdba81 commit 412e969
Showing 1 changed file with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,14 +202,12 @@ class GamificationToolbarDelegate(
}

collapsingToolbarLayout.updateLayoutParams<AppBarLayout.LayoutParams> {
height =
if (subtitle != null) {
context.resources.getDimensionPixelOffset(
R.dimen.gamification_toolbar_with_subtitle_height
) + subtitlePaddingVertical
} else {
R.dimen.gamification_toolbar_default_height
} + insetTop
height = if (subtitle != null) {
context.resources.getDimensionPixelOffset(R.dimen.gamification_toolbar_with_subtitle_height) +
subtitlePaddingVertical
} else {
R.dimen.gamification_toolbar_default_height
} + insetTop
}
collapsingToolbarLayout.expandedTitleMarginTop = insetTop + subtitlePaddingVertical
}
Expand Down

0 comments on commit 412e969

Please sign in to comment.