mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Amazfit Cor: only send music information when needed
This commit is contained in:
+4
-5
@@ -741,9 +741,9 @@ public class HuamiSupport extends AbstractBTLEDeviceSupport {
|
||||
|
||||
if (bufferMusicStateSpec != stateSpec) {
|
||||
bufferMusicStateSpec = stateSpec;
|
||||
sendMusicStateToDevice();
|
||||
}
|
||||
|
||||
sendMusicStateToDevice();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -755,12 +755,11 @@ public class HuamiSupport extends AbstractBTLEDeviceSupport {
|
||||
|
||||
if (bufferMusicSpec != musicSpec) {
|
||||
bufferMusicSpec = musicSpec;
|
||||
if (isMusicAppStarted) {
|
||||
sendMusicStateToDevice();
|
||||
}
|
||||
}
|
||||
|
||||
if (!isMusicAppStarted) {
|
||||
return;
|
||||
}
|
||||
sendMusicStateToDevice();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user