#1212 avoid NPE on null resources - increase timeout for zim_downloader_list

This commit is contained in:
Sean Mac Gillicuddy 2019-07-30 13:45:07 +01:00
parent 2758f36392
commit 23cf15456c
2 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ fun text(v: View) =
else ""
private fun resourceId(view: View) =
if (view.id > 0) " id:${view.resources.getResourceName(view.id)}"
if (view.id > 0 && view.resources != null) " id:${view.resources.getResourceName(view.id)}"
else ""
private fun numSpaces(marginOffset: Int) = (0..marginOffset).fold("", { acc, _ -> "$acc-" })

View File

@ -73,7 +73,7 @@ class ZimManageRobot : BaseRobot() {
private fun download(func: DownloadRobot.() -> Unit) = DownloadRobot().apply(func)
inner class DownloadRobot : BaseRobot() {
init {
isVisible(ViewId(R.id.zim_downloader_list))
isVisible(ViewId(R.id.zim_downloader_list), 15000L)
}
fun clickStop() {