1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 21:06:50 +01:00

Mi Watch Lite: enable install handler

Does not work as is because we do not recognize watchfaces and firmware yet
This commit is contained in:
Andreas Shimokawa 2023-10-23 20:09:23 +02:00 committed by José Rebelo
parent 29c183b88a
commit cef4b62458

View File

@ -25,6 +25,7 @@ import java.util.regex.Pattern;
import nodomain.freeyourgadget.gadgetbridge.R;
import nodomain.freeyourgadget.gadgetbridge.devices.InstallHandler;
import nodomain.freeyourgadget.gadgetbridge.devices.xiaomi.XiaomiInstallHandler;
import nodomain.freeyourgadget.gadgetbridge.devices.xiaomi.XiaomiPlaintextCoordinator;
import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice;
@ -37,8 +38,8 @@ public class MiWatchLiteCoordinator extends XiaomiPlaintextCoordinator {
@Nullable
@Override
public InstallHandler findInstallHandler(final Uri uri, final Context context) {
// TODO implement this
return super.findInstallHandler(uri, context);
final XiaomiInstallHandler handler = new XiaomiInstallHandler(uri, context);
return handler.isValid() ? handler : null;
}
@Override