mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-28 11:35:48 +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) {
|
||||
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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user