Skip to content

Commit

Permalink
Refactor NeedsItem using JvmOverloads
Browse files Browse the repository at this point in the history
  • Loading branch information
skydoves committed Jan 23, 2021
1 parent a357c6a commit aa981df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion needs/src/main/java/com/skydoves/needs/Needs.kt
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ class Needs(
}

@JvmSynthetic
fun setOnConfirmListener(block: () -> Unit) {
inline fun setOnConfirmListener(crossinline block: () -> Unit) {
setOnConfirmListener(OnConfirmListener { block() })
}

Expand Down
2 changes: 1 addition & 1 deletion needs/src/main/java/com/skydoves/needs/NeedsItem.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package com.skydoves.needs
import android.graphics.drawable.Drawable

/** NeedsItem is an data class for composing [Needs] popup recyclerView item. */
data class NeedsItem(
data class NeedsItem @JvmOverloads constructor(
val icon: Drawable? = null,
val title: CharSequence = "",
val require: CharSequence = "",
Expand Down

0 comments on commit aa981df

Please sign in to comment.