Update MainActivity.kt

This commit is contained in:
Bella Mangunsong 2018-02-07 16:01:28 +11:00 committed by GitHub
parent 656b286e48
commit a6a20ab6ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,8 +66,7 @@ class MainActivity : AppCompatActivity(), AdapterView.OnItemClickListener {
return (convertView as? FeatureView ?: FeatureView(context)).apply {
setTitleId(demo.titleId)
setDescriptionId(demo.descriptionId)
val title: String = resources.getString(demo.titleId)
contentDescription = title
contentDescription = resources.getString(demo.titleId)
}
}
}