mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-17 11:25:34 -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() {
|
class SettingsRobot : BaseRobot() {
|
||||||
|
|
||||||
private fun clickRecyclerViewItems(@StringRes vararg stringIds: Int) {
|
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(
|
onView(
|
||||||
withClassName(Matchers.`is`(RecyclerView::class.java.name))
|
withClassName(Matchers.`is`(RecyclerView::class.java.name))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user