mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-16 19:05:27 -04:00
Removed usage of indices for transformation
This commit is contained in:
parent
7460ee1056
commit
135e67a4f9
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user