[Android] Fix argument nullability

Geoffrey Métais git at videolan.org
Tue Dec 18 14:55:49 CET 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Dec 18 11:37:48 2018 +0100| [fbaf342bde4f182ff42c5f76c750e73059533383] | committer: Geoffrey Métais

Fix argument nullability

> https://code.videolan.org/videolan/vlc-android/commit/fbaf342bde4f182ff42c5f76c750e73059533383
---

 .../src/org/videolan/vlc/gui/network/MRLPanelFragment.kt     | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/network/MRLPanelFragment.kt b/vlc-android/src/org/videolan/vlc/gui/network/MRLPanelFragment.kt
index 44ad7aece..d3a45e0b2 100644
--- a/vlc-android/src/org/videolan/vlc/gui/network/MRLPanelFragment.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/network/MRLPanelFragment.kt
@@ -20,15 +20,8 @@
  */
 package org.videolan.vlc.gui.network
 
-import androidx.lifecycle.Observer
-import androidx.lifecycle.ViewModelProviders
 import android.net.Uri
 import android.os.Bundle
-import com.google.android.material.textfield.TextInputLayout
-import androidx.fragment.app.DialogFragment
-import androidx.appcompat.app.AlertDialog
-import androidx.recyclerview.widget.DividerItemDecoration
-import androidx.recyclerview.widget.LinearLayoutManager
 import android.text.TextUtils
 import android.view.KeyEvent
 import android.view.LayoutInflater
@@ -37,6 +30,9 @@ import android.view.ViewGroup
 import android.view.inputmethod.EditorInfo
 import android.widget.EditText
 import android.widget.TextView
+import androidx.appcompat.app.AlertDialog
+import androidx.lifecycle.Observer
+import androidx.lifecycle.ViewModelProviders
 import kotlinx.coroutines.channels.actor
 import org.videolan.medialibrary.media.MediaWrapper
 import org.videolan.tools.coroutineScope
@@ -122,7 +118,7 @@ class MRLPanelFragment : androidx.fragment.app.DialogFragment(), View.OnKeyListe
         dismiss()
     }
 
-    override fun onEditorAction(v: TextView, actionId: Int, event: KeyEvent) = false
+    override fun onEditorAction(v: TextView, actionId: Int, event: KeyEvent?) = false
 
     override fun onClick(v: View) {
         processUri()



More information about the Android mailing list