From 412e969b2802ce85f1575d1f27d67cd14862a6cc Mon Sep 17 00:00:00 2001 From: Aleksandr Zhukov Date: Tue, 23 Jul 2024 14:32:45 +0200 Subject: [PATCH] Fix ktlint --- .../ui/delegate/GamificationToolbarDelegate.kt | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/androidHyperskillApp/src/main/java/org/hyperskill/app/android/gamification_toolbar/view/ui/delegate/GamificationToolbarDelegate.kt b/androidHyperskillApp/src/main/java/org/hyperskill/app/android/gamification_toolbar/view/ui/delegate/GamificationToolbarDelegate.kt index c9234bae66..cdb2ee7331 100644 --- a/androidHyperskillApp/src/main/java/org/hyperskill/app/android/gamification_toolbar/view/ui/delegate/GamificationToolbarDelegate.kt +++ b/androidHyperskillApp/src/main/java/org/hyperskill/app/android/gamification_toolbar/view/ui/delegate/GamificationToolbarDelegate.kt @@ -202,14 +202,12 @@ class GamificationToolbarDelegate( } collapsingToolbarLayout.updateLayoutParams { - 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 }