diff --git a/app/src/main/java/com/github/libretube/preferences/InstanceSettings.kt b/app/src/main/java/com/github/libretube/preferences/InstanceSettings.kt index 7da153f88..9c5157de7 100644 --- a/app/src/main/java/com/github/libretube/preferences/InstanceSettings.kt +++ b/app/src/main/java/com/github/libretube/preferences/InstanceSettings.kt @@ -60,8 +60,8 @@ class InstanceSettings : PreferenceFragmentCompat() { val jsonObject = JSONTokener(json).nextValue() as JSONObject Log.e(TAG, jsonObject.getJSONArray("subscriptions").toString()) for ( - i in 0 until jsonObject.getJSONArray("subscriptions") - .length() + i in 0 until jsonObject.getJSONArray("subscriptions") + .length() ) { var url = jsonObject.getJSONArray("subscriptions").getJSONObject(i)