mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-06-05 21:49:48 +02:00
Refactoring: centralize GBDevice creation
- created and provided by DeviceHelper - passed from UI to service - without UI, service uses DeviceHelper directly => Cleaner and less duplicated code
This commit is contained in:
@@ -3,6 +3,7 @@ package nodomain.freeyourgadget.gadgetbridge.model;
|
||||
import android.support.annotation.Nullable;
|
||||
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.EventHandler;
|
||||
import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice;
|
||||
import nodomain.freeyourgadget.gadgetbridge.service.DeviceCommunicationService;
|
||||
|
||||
/**
|
||||
@@ -60,6 +61,8 @@ public interface DeviceService extends EventHandler {
|
||||
|
||||
void connect();
|
||||
|
||||
void connect(GBDevice device);
|
||||
|
||||
void connect(@Nullable String deviceAddress);
|
||||
|
||||
void connect(@Nullable String deviceAddress, boolean performPair);
|
||||
|
Reference in New Issue
Block a user