|
|
|
@ -109,7 +109,7 @@ class PagerPageHolder(
|
|
|
|
|
*/
|
|
|
|
|
private fun setQueued() {
|
|
|
|
|
progressIndicator.show()
|
|
|
|
|
errorLayout?.root?.isVisible = false
|
|
|
|
|
removeErrorLayout()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -117,7 +117,7 @@ class PagerPageHolder(
|
|
|
|
|
*/
|
|
|
|
|
private fun setLoading() {
|
|
|
|
|
progressIndicator.show()
|
|
|
|
|
errorLayout?.root?.isVisible = false
|
|
|
|
|
removeErrorLayout()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -125,7 +125,7 @@ class PagerPageHolder(
|
|
|
|
|
*/
|
|
|
|
|
private fun setDownloading() {
|
|
|
|
|
progressIndicator.show()
|
|
|
|
|
errorLayout?.root?.isVisible = false
|
|
|
|
|
removeErrorLayout()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -133,7 +133,6 @@ class PagerPageHolder(
|
|
|
|
|
*/
|
|
|
|
|
private suspend fun setImage() {
|
|
|
|
|
progressIndicator.setProgress(0)
|
|
|
|
|
errorLayout?.root?.isVisible = false
|
|
|
|
|
|
|
|
|
|
val streamFn = page.stream ?: return
|
|
|
|
|
|
|
|
|
@ -170,6 +169,7 @@ class PagerPageHolder(
|
|
|
|
|
pageBackground = background
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
removeErrorLayout()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -280,4 +280,12 @@ class PagerPageHolder(
|
|
|
|
|
errorLayout?.root?.isVisible = true
|
|
|
|
|
return errorLayout!!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Removes the decode error layout from the holder, if found.
|
|
|
|
|
*/
|
|
|
|
|
private fun removeErrorLayout() {
|
|
|
|
|
errorLayout?.root?.isVisible = false
|
|
|
|
|
errorLayout = null
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|