forked from upstream-mirrors/OpenTracks
Automated code cleanup using AndroidStudio.
This commit is contained in:
@@ -81,7 +81,7 @@ public class AnnouncementUtils {
|
||||
} else {
|
||||
//TODO This seems weird; why not use Math.round(d) or Math.ceil()?
|
||||
int count = (int) d;
|
||||
return count < 3 ? 3 : count;
|
||||
return Math.max(count, 3);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user