Skip to content

Commit

Permalink
Merge pull request #11 from thefuntasty/fix/wait-for-id-or-null
Browse files Browse the repository at this point in the history
make method waitForIdOrNull able to return null
  • Loading branch information
IGPenguin committed Dec 8, 2017
2 parents 45e4afd + 97e64e5 commit d0239fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/src/main/java/com/thefuntasty/tasting/Bot.kt
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ class Bot(private val testDevice: UiDevice) {
}
}

fun waitForIdOrNull(viewId: String): UiObject2 =
fun waitForIdOrNull(viewId: String): UiObject2? =
testDevice.wait(Until.findObject(By.res(testedPackageName, viewId)), viewTimeout.toLong())

@JvmOverloads
Expand Down

0 comments on commit d0239fa

Please sign in to comment.