mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-24 21:45:14 -04:00
#1212 avoid NPE on null resources - increase timeout for zim_downloader_list
This commit is contained in:
parent
2758f36392
commit
23cf15456c
@ -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-" })
|
||||
|
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user