[Android] Fix IllegalArgumentException
Nicolas Pomepuy
git at videolan.org
Tue Apr 14 15:16:33 CEST 2020
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Apr 14 15:04:26 2020 +0200| [66ce87133e34a9053df889e14b2d56b6cb0522a7] | committer: Nicolas Pomepuy
Fix IllegalArgumentException
Fixes #1274
> https://code.videolan.org/videolan/vlc-android/commit/66ce87133e34a9053df889e14b2d56b6cb0522a7
---
.../src/org/videolan/vlc/gui/dialogs/NetworkServerDialog.kt | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/dialogs/NetworkServerDialog.kt b/application/vlc-android/src/org/videolan/vlc/gui/dialogs/NetworkServerDialog.kt
index 236fdbd51..1e4c0c258 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/dialogs/NetworkServerDialog.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/dialogs/NetworkServerDialog.kt
@@ -14,11 +14,9 @@ import android.widget.*
import androidx.appcompat.app.AppCompatDialog
import androidx.fragment.app.DialogFragment
import com.google.android.material.textfield.TextInputLayout
-import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import org.videolan.medialibrary.interfaces.media.MediaWrapper
import org.videolan.tools.AppScope
-import org.videolan.tools.runIO
import org.videolan.vlc.R
import org.videolan.vlc.gui.DialogActivity
import org.videolan.vlc.gui.MainActivity
@@ -181,7 +179,7 @@ class NetworkServerDialog : DialogFragment(), AdapterView.OnItemSelectedListener
}
}
- override fun onItemSelected(parent: AdapterView<*>, view: View, position: Int, id: Long) {
+ override fun onItemSelected(parent: AdapterView<*>?, view: View?, position: Int, id: Long) {
if (ignoreFirstSpinnerCb) {
ignoreFirstSpinnerCb = false
return
More information about the Android
mailing list