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

prevent ArithmeticException

parent a34cb5c6
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,7 @@
android:background="@color/transparent"
android:indeterminate="false"
android:max="100"
android:progress="@{(int)((long)100*item.time/item.length)}"
android:progress="@{item.length == 0 ? 0 : (int)((long)100*item.time/item.length)}"
android:secondaryProgress="100"
vlc:layout_constraintStart_toStartOf="parent"
vlc:layout_constraintEnd_toEndOf="parent"
......
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