Avoid varname shadowed

This commit is contained in:
sim 2023-08-31 22:43:03 +02:00
parent 17c402e8cd
commit fe731eb352
1 changed files with 2 additions and 2 deletions

View File

@ -28,9 +28,9 @@ class AppListAdapter(context: Context, private val resource: Int, apps: List<App
var description: TextView? = null
}
override fun getView(position: Int, convertView: View?, parent: ViewGroup): View {
override fun getView(position: Int, pConvertView: View?, parent: ViewGroup): View {
var viewHolder: ViewHolder? = null
val convertView = convertView?.apply {
val convertView = pConvertView?.apply {
viewHolder = tag as ViewHolder
} ?: run {
val rConvertView = inflater.inflate(resource, parent, false)