From 135e67a4f954b4bac600bc57534aafed0accb718 Mon Sep 17 00:00:00 2001 From: s-ayush2903 Date: Tue, 8 Sep 2020 23:27:28 +0530 Subject: [PATCH] Removed usage of indices for transformation --- .../java/org/kiwix/kiwixmobile/settings/SettingsRobot.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/androidTest/java/org/kiwix/kiwixmobile/settings/SettingsRobot.kt b/app/src/androidTest/java/org/kiwix/kiwixmobile/settings/SettingsRobot.kt index 85f6ca0c5..f1dcee7de 100644 --- a/app/src/androidTest/java/org/kiwix/kiwixmobile/settings/SettingsRobot.kt +++ b/app/src/androidTest/java/org/kiwix/kiwixmobile/settings/SettingsRobot.kt @@ -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))