bug fix in tap for bpm fixed

This commit is contained in:
toni
2017-11-20 21:57:38 +01:00
parent 96abc0a4da
commit 4b21120d2b

View File

@@ -187,7 +187,7 @@ public class MainActivity extends WearableActivity implements WorkerFragment.OnF
if(ev.getAction() == MotionEvent.ACTION_UP) {
if(!mTapBpmThread.isAlive()){
if(!mTapBpmThread.isAlive() && mTapRecognized){
mTapBpmThread.start();
mCroller.setLabel("Tippe weiter");
}
@@ -301,6 +301,7 @@ public class MainActivity extends WearableActivity implements WorkerFragment.OnF
});
mTapBpm.clearTimestamps();
mTapRecognized = false;
mTapBpmThread.interrupt();
try {
mTapBpmThread.join();