mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 20:13:36 +00:00
More workout mode fixes.
This commit is contained in:
parent
a6c39bc407
commit
e2c1bb0195
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="org.musikcube"
|
package="org.musikcube"
|
||||||
android:versionName="1.0.3" android:versionCode="3">
|
android:versionName="1.0.5" android:versionCode="5">
|
||||||
<application android:icon="@drawable/icon" android:label="@string/app_name" android:name="App" android:debuggable="false">
|
<application android:icon="@drawable/icon" android:label="@string/app_name" android:name="App" android:debuggable="false">
|
||||||
<activity android:name=".main"
|
<activity android:name=".main"
|
||||||
android:label="@string/app_name" android:launchMode="singleTask" android:screenOrientation="portrait">
|
android:label="@string/app_name" android:launchMode="singleTask" android:screenOrientation="portrait">
|
||||||
|
@ -111,6 +111,7 @@ public class Workout implements OnBPMListener, Runnable, OnQueryResultListener {
|
|||||||
public void SetBPM(float bpm){
|
public void SetBPM(float bpm){
|
||||||
synchronized(lock){
|
synchronized(lock){
|
||||||
if(this.paceDetector==null){
|
if(this.paceDetector==null){
|
||||||
|
this.reportBPM = bpm;
|
||||||
this.bpm = bpm;
|
this.bpm = bpm;
|
||||||
if(this.active){
|
if(this.active){
|
||||||
this.QueryTracks(true);
|
this.QueryTracks(true);
|
||||||
@ -180,6 +181,7 @@ public class Workout implements OnBPMListener, Runnable, OnQueryResultListener {
|
|||||||
|
|
||||||
public void OnQueryResults(IQuery query) {
|
public void OnQueryResults(IQuery query) {
|
||||||
synchronized(this.lock){
|
synchronized(this.lock){
|
||||||
|
if(this.active){
|
||||||
this.lastQueryTime = android.os.SystemClock.elapsedRealtime();
|
this.lastQueryTime = android.os.SystemClock.elapsedRealtime();
|
||||||
BPMQuery bpmQuery = (BPMQuery)query;
|
BPMQuery bpmQuery = (BPMQuery)query;
|
||||||
if(!bpmQuery.trackList.isEmpty() && this.context!=null){
|
if(!bpmQuery.trackList.isEmpty() && this.context!=null){
|
||||||
@ -191,5 +193,6 @@ public class Workout implements OnBPMListener, Runnable, OnQueryResultListener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user