|
@@ -54,8 +54,8 @@ public class MetronomeActivity extends BaseActivity<ActivityMetronomeLayoutBindi
|
|
|
if (totalTime == -1) {
|
|
|
handleMusic(delayMillis,l);
|
|
|
} else {
|
|
|
- if (Math.abs(l - totalTime)-delayMillis < next) {
|
|
|
- next =Math.abs(l - totalTime)-delayMillis;
|
|
|
+ if (Math.abs(Math.abs(l - totalTime)-delayMillis) < next) {
|
|
|
+ next =0;
|
|
|
}
|
|
|
if (Math.abs(l -totalTime) >= delayMillis) {
|
|
|
handleMusic(delayMillis,l);
|