forked from GitHub-Mirror/riotX-android
Fix regression
This commit is contained in:
parent
c13ab62187
commit
1b82ed5abb
@ -71,13 +71,17 @@ private class ContentMediaProgressUpdater(private val progressLayout: ViewGroup,
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun handleIdle(state: ContentUploadStateTracker.State.Idle) {
|
private fun handleIdle(state: ContentUploadStateTracker.State.Idle) {
|
||||||
progressLayout.visibility = View.VISIBLE
|
if (mediaData.isLocalFile()) {
|
||||||
val progressBar = progressLayout.findViewById<ProgressBar>(R.id.mediaProgressBar)
|
progressLayout.isVisible = true
|
||||||
val progressTextView = progressLayout.findViewById<TextView>(R.id.mediaProgressTextView)
|
val progressBar = progressLayout.findViewById<ProgressBar>(R.id.mediaProgressBar)
|
||||||
progressBar?.isVisible = true
|
val progressTextView = progressLayout.findViewById<TextView>(R.id.mediaProgressTextView)
|
||||||
progressBar?.isIndeterminate = true
|
progressBar?.isVisible = true
|
||||||
progressBar?.progress = 0
|
progressBar?.isIndeterminate = true
|
||||||
progressTextView?.text = progressLayout.context.getString(R.string.send_file_step_idle)
|
progressBar?.progress = 0
|
||||||
|
progressTextView?.text = progressLayout.context.getString(R.string.send_file_step_idle)
|
||||||
|
} else {
|
||||||
|
progressLayout.isVisible = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun handleEncryptingThumbnail(state: ContentUploadStateTracker.State.EncryptingThumbnail) {
|
private fun handleEncryptingThumbnail(state: ContentUploadStateTracker.State.EncryptingThumbnail) {
|
||||||
|
Loading…
Reference in New Issue
Block a user