Skip to content

Commit

Permalink
Remove unnecessary default values
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakariaJawas committed Apr 13, 2020
1 parent e1f0287 commit a0d042d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ class ListBottomSheet<T : Any> private constructor(
private val _title: String,
private val mList: List<T>?,
private val layoutResource: Int = R.layout.bottom_sheet_list_item,
private val cancelable: Boolean = true,
private var cancelButtonVisibility: Boolean = false,
private val searchable: Boolean = false,
private val cancelable: Boolean,
private var cancelButtonVisibility: Boolean,
private val searchable: Boolean,
private var _selectedItemIndex: Int,
private val onChooseItem: ((ListBottomSheet<T>, T, Int) -> Unit)?,
private val selectedItemColor: Int
Expand All @@ -49,7 +49,7 @@ class ListBottomSheet<T : Any> private constructor(
private var cancelable: Boolean = true
private var cancelButtonVisibility: Boolean = false
private var searchable: Boolean = false
private var selectedItemIndex: Int = -1 //no selected item as deafult
private var selectedItemIndex: Int = -1 //no selected item as default
private var selectedItemColor: Int = Color.BLACK //black color

fun title(title: String) = apply { this.title = title }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
android:layout_margin="4dp"
android:background="@drawable/rounded_background"
android:padding="4dp"
android:visibility="visible">
android:visibility="gone">

<ImageView
android:id="@+id/imageView"
Expand Down

0 comments on commit a0d042d

Please sign in to comment.