From 859c81da8dcc7d12fa5d385b39fba8f075ec703b Mon Sep 17 00:00:00 2001 From: fikrimilano Date: Wed, 8 Feb 2023 09:40:39 +0700 Subject: [PATCH] spotlessApply --- .../android/fhir/datacapture/views/MarginItemDecoration.kt | 5 +++-- .../fhir/datacapture/views/OptionSelectDialogFragment.kt | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/datacapture/src/main/java/com/google/android/fhir/datacapture/views/MarginItemDecoration.kt b/datacapture/src/main/java/com/google/android/fhir/datacapture/views/MarginItemDecoration.kt index a0e1a6b53f..c577cb89b7 100644 --- a/datacapture/src/main/java/com/google/android/fhir/datacapture/views/MarginItemDecoration.kt +++ b/datacapture/src/main/java/com/google/android/fhir/datacapture/views/MarginItemDecoration.kt @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,7 +25,8 @@ import androidx.recyclerview.widget.RecyclerView * a margin to the item's layout. * @param margin Int value for the desired margin used as item offset */ -class MarginItemDecoration(private val marginVertical: Int, private val marginHorizontal: Int) : RecyclerView.ItemDecoration() { +class MarginItemDecoration(private val marginVertical: Int, private val marginHorizontal: Int) : + RecyclerView.ItemDecoration() { override fun getItemOffsets( outRect: Rect, view: View, diff --git a/datacapture/src/main/java/com/google/android/fhir/datacapture/views/OptionSelectDialogFragment.kt b/datacapture/src/main/java/com/google/android/fhir/datacapture/views/OptionSelectDialogFragment.kt index 1ff9cca481..63fff6efb2 100644 --- a/datacapture/src/main/java/com/google/android/fhir/datacapture/views/OptionSelectDialogFragment.kt +++ b/datacapture/src/main/java/com/google/android/fhir/datacapture/views/OptionSelectDialogFragment.kt @@ -84,8 +84,10 @@ internal class OptionSelectDialogFragment( recyclerView.layoutManager = LinearLayoutManager(requireContext()) recyclerView.addItemDecoration( MarginItemDecoration( - marginVertical = resources.getDimensionPixelOffset(R.dimen.dialog_option_item_margin_vertical), - marginHorizontal = resources.getDimensionPixelOffset(R.dimen.dialog_option_item_margin_horizontal) + marginVertical = + resources.getDimensionPixelOffset(R.dimen.dialog_option_item_margin_vertical), + marginHorizontal = + resources.getDimensionPixelOffset(R.dimen.dialog_option_item_margin_horizontal) ) )