Removed usage of indices for transformation

This commit is contained in:
s-ayush2903 2020-09-08 23:27:28 +05:30
parent 7460ee1056
commit 135e67a4f9
No known key found for this signature in database
GPG Key ID: B4341DD08B2371CB

View File

@ -43,7 +43,7 @@ fun settingsRobo(func: SettingsRobot.() -> Unit) =
class SettingsRobot : BaseRobot() {
private fun clickRecyclerViewItems(@StringRes vararg stringIds: Int) {
val matchers = stringIds.indices.map { withText(stringIds[it]) }.toTypedArray()
val matchers = stringIds.map { return@map withText(it) }.toTypedArray()
onView(
withClassName(Matchers.`is`(RecyclerView::class.java.name))