mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-27 12:26:48 +01:00
Zepp OS: Only cache apps and watchfaces
This commit is contained in:
parent
fad7fa395b
commit
8f5bbec881
@ -50,11 +50,14 @@ public abstract class AbstractHuami2021FWInstallHandler extends AbstractMiBandFW
|
||||
@Override
|
||||
public void onStartInstall(final GBDevice device) {
|
||||
final AbstractHuamiFirmwareInfo firmwareInfo = getHelper().getFirmwareInfo();
|
||||
final boolean shouldCache = firmwareInfo.getFirmwareType().isApp() || firmwareInfo.getFirmwareType().isWatchface();
|
||||
if (shouldCache) {
|
||||
if (firmwareInfo instanceof Huami2021FirmwareInfo) {
|
||||
saveToCache((Huami2021FirmwareInfo) firmwareInfo, device);
|
||||
} else {
|
||||
LOG.warn("firmwareInfo is {} - this should never happen", firmwareInfo.getClass());
|
||||
}
|
||||
}
|
||||
|
||||
// Unset the firmware bytes
|
||||
// Huami2021 firmwares are large (> 130MB). With the current architecture, the update operation
|
||||
|
Loading…
Reference in New Issue
Block a user