universal7885: fm-app: Use size od passed List<Int> instead of hardcode

This commit is contained in:
roynatech2544 2022-10-22 13:05:42 +09:00
commit 225466e775

View file

@ -20,7 +20,7 @@ class ListViewAdapter(private val mContext: Context) : BaseAdapter() {
private val mListChannel = mFMInterface.mDefaultCtl.getFreqsList()
private var mListofViews = HashMap<Int, View>(30)
override fun getCount(): Int {
return 30
return mListChannel.size
}
override fun getItem(p: Int): Any {