Skip to content
Snippets Groups Projects
Commit 2aefd25b authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

VLC progress: fix float casting

(cherry picked from commit f56a3760)
parent b8cce147
No related branches found
No related tags found
No related merge requests found
......@@ -37,8 +37,8 @@ class VlcProgressDialog : VlcDialog<Dialog.ProgressDialog, VlcProgressDialogBind
get() = R.layout.vlc_progress_dialog
fun updateProgress() {
binding.progress.progress = (vlcDialog.position * 100) as Int
binding.progress.progress = (vlcDialog.position * 100f).toInt()
binding.cancel.text = vlcDialog.cancelText
binding.cancel.visibility = if (TextUtils.isEmpty(vlcDialog?.cancelText)) View.GONE else View.VISIBLE
binding.cancel.visibility = if (TextUtils.isEmpty(vlcDialog.cancelText)) View.GONE else View.VISIBLE
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment