[Android] Remove exception if subs language is not found

Geoffrey Métais git at videolan.org
Thu Mar 28 14:28:58 CET 2019


vlc-android | branch: 3.1.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Mar 25 11:56:54 2019 +0100| [bc4dadcfb01621d0529a6ae23194ff27246294d4] | committer: Geoffrey Métais

Remove exception if subs language is not found

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

 vlc-android/src/org/videolan/vlc/gui/MultiSelectionSpinner.kt | 1 -
 1 file changed, 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/MultiSelectionSpinner.kt b/vlc-android/src/org/videolan/vlc/gui/MultiSelectionSpinner.kt
index d319c4660..ac1c89fa1 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MultiSelectionSpinner.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/MultiSelectionSpinner.kt
@@ -81,7 +81,6 @@ class MultiSelectionSpinner : AppCompatSpinner, OnMultiChoiceClickListener, Dial
         selection = selection.map { false }.toMutableList()
         selectedIndices.forEach {
             if (it >= 0 && it < selection.size) selection[it] = true
-            else throw IllegalArgumentException("Index $it is out of bounds.")
         }
         adapter.clear()
         adapter.add(buildSelectedItemString())



More information about the Android mailing list