Hell this is embarrassing but I need help. am fail...
# android
r
Hell this is embarrassing but I need help. am failing to assign a string as as the first item using listOf
Copy code
var myString = "1234567"
val myListOfStrings = listOf(myString)
e
it works as expected. https://pl.kotl.in/3cD_OENpx can you provide a reproducible example demonstrating your issue?
r
yes shortly
thanks @ephemient i guess am just tired for today the problem was right in front of my eyes the whole time
Copy code
it?.forEachIndexed { _,theChannels ->
                            var channel = theChannels
                            //This is the problem it gets back only the first element 
                            println(channel)
                           // appBroadcastIntent.putExtra(
                           //     channel.toString(),
                               // channel
                           // )
                        }