diff --git a/app/src/main/java/de/kuschku/quasseldroid/util/helper/ActivityHelper.kt b/app/src/main/java/de/kuschku/quasseldroid/util/helper/ActivityHelper.kt index 4f59ce22a2479cf4d66d77f8a32a5c875a6aae36..ec6c7441c8a68347f745f3db41ef93a5f49ffa9c 100644 --- a/app/src/main/java/de/kuschku/quasseldroid/util/helper/ActivityHelper.kt +++ b/app/src/main/java/de/kuschku/quasseldroid/util/helper/ActivityHelper.kt @@ -38,8 +38,8 @@ import androidx.annotation.StringRes * @param colorPrimary The color used as background for the header of the recents card - passed as Android * Color Resource */ -fun Activity.updateRecentsHeaderIfExisting( - label: String, @DrawableRes icon: Int, @ColorRes colorPrimary: Int) { +fun Activity.updateRecentsHeaderIfExisting(label: String, @DrawableRes icon: Int, + @ColorRes colorPrimary: Int) { val iconRaw = BitmapFactory.decodeResource(resources, icon) val colorPrimaryRaw = resources.getColorBackport(colorPrimary, theme) updateRecentsHeaderIfExisting(label, iconRaw, colorPrimaryRaw) @@ -54,8 +54,8 @@ fun Activity.updateRecentsHeaderIfExisting( * @param colorPrimary The color used as background for the header of the recents card - passed as Android * Color Resource */ -fun Activity.updateRecentsHeaderIfExisting(@StringRes label: Int, @DrawableRes icon: Int, @ColorRes -colorPrimary: Int) { +fun Activity.updateRecentsHeaderIfExisting(@StringRes label: Int, @DrawableRes icon: Int, + @ColorRes colorPrimary: Int) { val labelRaw = resources.getString(label) val iconRaw = BitmapFactory.decodeResource(resources, icon) val colorPrimaryRaw = resources.getColorBackport(colorPrimary, theme)