Skip to content

Commit

Permalink
fix: spinner non nullable fields
Browse files Browse the repository at this point in the history
  • Loading branch information
CraZyLegenD committed Jan 4, 2021
1 parent 865143c commit abf3a61
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import android.widget.SpinnerAdapter
*/
fun Spinner.onItemSelected(
onNothingSelect: (parent: AdapterView<*>?) -> Unit = { _ -> },
onItemSelect: (parent: AdapterView<*>?, view: View?, position: Int?, id: Long?) -> Unit = { _, _, _, _ -> }):
onItemSelect: (parent: AdapterView<*>?, view: View?, position: Int, id: Long) -> Unit = { _, _, _, _ -> }):
AdapterView.OnItemSelectedListener {

val itemSelected = object : AdapterView.OnItemSelectedListener {
Expand Down

0 comments on commit abf3a61

Please sign in to comment.