2
0
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:
Albert Vaca Cintora 2024-04-05 13:29:50 +02:00
parent 1abb85c791
commit c6cb1a54e5
No known key found for this signature in database

View File

@ -198,7 +198,7 @@ class MprisNowPlayingFragment : Fragment(), VolumeKeyListener {
mprisControlBinding.playerSpinner.onItemSelectedListener = mprisControlBinding.playerSpinner.onItemSelectedListener =
object : AdapterView.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 if (pos >= playerList.size) return
val player = playerList[pos] val player = playerList[pos]