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(ev.getAction() == MotionEvent.ACTION_UP) {
|
||||||
|
|
||||||
if(!mTapBpmThread.isAlive()){
|
if(!mTapBpmThread.isAlive() && mTapRecognized){
|
||||||
mTapBpmThread.start();
|
mTapBpmThread.start();
|
||||||
mCroller.setLabel("Tippe weiter");
|
mCroller.setLabel("Tippe weiter");
|
||||||
}
|
}
|
||||||
@@ -301,6 +301,7 @@ public class MainActivity extends WearableActivity implements WorkerFragment.OnF
|
|||||||
});
|
});
|
||||||
|
|
||||||
mTapBpm.clearTimestamps();
|
mTapBpm.clearTimestamps();
|
||||||
|
mTapRecognized = false;
|
||||||
mTapBpmThread.interrupt();
|
mTapBpmThread.interrupt();
|
||||||
try {
|
try {
|
||||||
mTapBpmThread.join();
|
mTapBpmThread.join();
|
||||||
|
|||||||
Reference in New Issue
Block a user