Merge pull request #10489 from nextcloud/fix/crash-status-dialog-darkmode

SetStatusDialogFragment: fix nullability of itemSelected parameter
This commit is contained in:
Tobias Kaminsky 2022-07-07 14:32:10 +02:00 committed by GitHub
commit 4fc60c2ae1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -196,7 +196,7 @@ class SetStatusDialogFragment :
binding.clearStatusAfterSpinner.apply {
this.adapter = adapter
onItemSelectedListener = object : OnItemSelectedListener {
override fun onItemSelected(parent: AdapterView<*>, view: View, position: Int, id: Long) {
override fun onItemSelected(parent: AdapterView<*>, view: View?, position: Int, id: Long) {
setClearStatusAfterValue(position)
}