JavaDoc error fixes (#596)
Co-authored-by: Artak Kalantarian <artak@amazon.com>
This commit is contained in:
committed by
GitHub
parent
ff2745b9ce
commit
3321a026e0
@@ -15,7 +15,6 @@ import com.mapbox.mapboxsdk.style.layers.Layer
|
||||
import com.mapbox.mapboxsdk.style.layers.Property
|
||||
import com.mapbox.mapboxsdk.style.layers.PropertyFactory
|
||||
import com.mapbox.mapboxsdk.testapp.R
|
||||
import com.mapbox.mapboxsdk.testapp.activity.maplayout.DebugModeActivity.LayerListAdapter
|
||||
import timber.log.Timber
|
||||
import java.util.*
|
||||
|
||||
@@ -216,7 +215,7 @@ open class DebugModeActivity : AppCompatActivity(), OnMapReadyCallback, OnFpsCha
|
||||
mapView!!.onLowMemory()
|
||||
}
|
||||
|
||||
private class LayerListAdapter internal constructor(context: Context?, layers: List<Layer>) :
|
||||
private class LayerListAdapter(context: Context?, layers: List<Layer>) :
|
||||
BaseAdapter() {
|
||||
private val layoutInflater: LayoutInflater
|
||||
private val layers: List<Layer>
|
||||
@@ -232,7 +231,7 @@ open class DebugModeActivity : AppCompatActivity(), OnMapReadyCallback, OnFpsCha
|
||||
return position.toLong()
|
||||
}
|
||||
|
||||
override fun getView(position: Int, convertView: View, parent: ViewGroup): View {
|
||||
override fun getView(position: Int, convertView: View?, parent: ViewGroup): View {
|
||||
val layer = layers[position]
|
||||
var view = convertView
|
||||
if (view == null) {
|
||||
@@ -243,13 +242,13 @@ open class DebugModeActivity : AppCompatActivity(), OnMapReadyCallback, OnFpsCha
|
||||
)
|
||||
view.tag = holder
|
||||
}
|
||||
val holder = view.tag as ViewHolder
|
||||
val holder = view!!.tag as ViewHolder
|
||||
holder.text.text = layer.javaClass.simpleName
|
||||
holder.subText.text = layer.id
|
||||
return view
|
||||
}
|
||||
|
||||
private class ViewHolder internal constructor(val text: TextView, val subText: TextView)
|
||||
private class ViewHolder(val text: TextView, val subText: TextView)
|
||||
|
||||
init {
|
||||
layoutInflater = LayoutInflater.from(context)
|
||||
|
||||
Reference in New Issue
Block a user