Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
class DurationCalculator {

public long calculateNewDuration(ViscosityInterpolator viscosity, long timesAnimationViewed, long currentDuration) {
if (currentDuration == 0) {
if (currentDuration.equals(0)) {
Log.e("duration was zero");
return 0;
}
if (timesAnimationViewed == 0) {
if (timesAnimationViewed.equals(0)) {
Log.v("first time viewing so no duration change");
return currentDuration;
}
Expand Down