bug fix in tap for bpm fixed
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user