1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2025-02-09 16:36:48 +01:00

Huawei: set supportsFlashing to true

This commit is contained in:
Me7c7 2025-02-03 14:25:42 +02:00
parent e2dd3fc7c3
commit 63f5b2a025
3 changed files with 14 additions and 0 deletions

View File

@ -144,6 +144,11 @@ public abstract class HuaweiBRCoordinator extends AbstractBLClassicDeviceCoordin
return huaweiCoordinator.getSupportsCachedAppManagement(device);
}
@Override
public boolean supportsFlashing() {
return huaweiCoordinator.getSupportsFlashing();
}
@Override
public int getAlarmSlotCount(GBDevice device) {
return huaweiCoordinator.getAlarmSlotCount(device);

View File

@ -951,6 +951,10 @@ public class HuaweiCoordinator {
return false;
}
public boolean getSupportsFlashing() {
return true;
}
public InstallHandler getInstallHandler(Uri uri, Context context) {
HuaweiInstallHandler handler = new HuaweiInstallHandler(uri, context);
return handler.isValid() ? handler : null;

View File

@ -153,6 +153,11 @@ public abstract class HuaweiLECoordinator extends AbstractBLEDeviceCoordinator i
return huaweiCoordinator.getSupportsCachedAppManagement(device);
}
@Override
public boolean supportsFlashing() {
return huaweiCoordinator.getSupportsFlashing();
}
@Override
public int getAlarmSlotCount(GBDevice device) {
return huaweiCoordinator.getAlarmSlotCount(device);