mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-22 09:58:08 +00:00
Fix crash when activity is recreated
Parameter specified as non-null is null: method org.kde.kdeconnect.Plugins.MprisPlugin.MprisNowPlayingFragment$connectToPlugin$2$1$1.onItemSelected, parameter arg1
This commit is contained in:
parent
1abb85c791
commit
c6cb1a54e5
@ -198,7 +198,7 @@ class MprisNowPlayingFragment : Fragment(), VolumeKeyListener {
|
||||
|
||||
mprisControlBinding.playerSpinner.onItemSelectedListener =
|
||||
object : AdapterView.OnItemSelectedListener {
|
||||
override fun onItemSelected(arg0: AdapterView<*>?, arg1: View, pos: Int, id: Long) {
|
||||
override fun onItemSelected(arg0: AdapterView<*>?, arg1: View?, pos: Int, id: Long) {
|
||||
if (pos >= playerList.size) return
|
||||
|
||||
val player = playerList[pos]
|
||||
|
Loading…
x
Reference in New Issue
Block a user