mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-30 20:45:49 +01:00
Amazfit Cor: only send music information when needed
This commit is contained in:
parent
da58e22afe
commit
797a671ccd
@ -741,9 +741,9 @@ public class HuamiSupport extends AbstractBTLEDeviceSupport {
|
|||||||
|
|
||||||
if (bufferMusicStateSpec != stateSpec) {
|
if (bufferMusicStateSpec != stateSpec) {
|
||||||
bufferMusicStateSpec = stateSpec;
|
bufferMusicStateSpec = stateSpec;
|
||||||
|
sendMusicStateToDevice();
|
||||||
}
|
}
|
||||||
|
|
||||||
sendMusicStateToDevice();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -755,12 +755,11 @@ public class HuamiSupport extends AbstractBTLEDeviceSupport {
|
|||||||
|
|
||||||
if (bufferMusicSpec != musicSpec) {
|
if (bufferMusicSpec != musicSpec) {
|
||||||
bufferMusicSpec = musicSpec;
|
bufferMusicSpec = musicSpec;
|
||||||
|
if (isMusicAppStarted) {
|
||||||
|
sendMusicStateToDevice();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isMusicAppStarted) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
sendMusicStateToDevice();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user