I am trying to update event bus function which also updates progress bar. But it is not updating. I used BACKGROUND, ASYNC, MAIN Threads in EVENT BUS but still whenever I update the page progress bar will change and its value is updated but i can not do it without updating the whole page.
@Subscribe(threadMode = ThreadMode.BACKGROUND)
fun onPercentageEvent(percent: DownloadEvent){
adapter.setOnChangeProgressListener{ id, view ->
var progress = view as ProgressBar
progress.progress = percent.percent.toInt()
Timber.tag("SSS").d("progress: ${percent.percent}")
}
}
It is the place where I am using EVENT BUS to update my progress bar