Skip to content

Commit d6e8bf0

Browse files
committed
comparison changed.
1 parent dd5c34f commit d6e8bf0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mobile/src/main/java/io/syslogic/github/dialog/ProgressDialogFragment.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ public void beginTask(String title, int totalWork) {
8484
public void update(int completed) {
8585
String percentage;
8686
this.currentWork += completed;
87+
88+
// prevent division by zero.
8789
if (this.totalWork == 0) {
8890
percentage = "0.00%";
8991
} else {

0 commit comments

Comments
 (0)