Problems adding values to ArrayList
I'm trying to add url values (imgURL variable) taken from JSON into an ArrayList with Kotlin, but somehow when in the scope of the for loop it doesn't seem to work regardless of having my newArrayURLs array declared as a function variable. Any ideas why is this?
private fun getJsonObjectImg(Url: String): ArrayList{
    var paths: ArrayList =ArrayList()
    val params = HashMap()
    var newArrayURLs = ArrayList()
    val stringRequest = object : StringRequest(
Request.Method.POST, Url,...