Skip to content

Commit

Permalink
spotlessApply
Browse files Browse the repository at this point in the history
  • Loading branch information
FikriMilano committed Feb 8, 2023
1 parent f55c1a5 commit 859c81d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
)

Expand Down

0 comments on commit 859c81d

Please sign in to comment.