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

Device connection: removed references to ACTION_START

This commit is contained in:
Daniel Dakhno 2024-02-24 00:53:39 +01:00
parent 3ceba883dd
commit d0f8eccd75
4 changed files with 0 additions and 13 deletions

View File

@ -374,8 +374,6 @@ public class ControlCenterv2 extends AppCompatActivity
}
}
GBApplication.deviceService().start();
if (GB.isBluetoothEnabled() && deviceList.isEmpty() && Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {
launchDiscoveryActivity();
} else {

View File

@ -39,8 +39,6 @@ public class AutoStartReceiver extends BroadcastReceiver {
if (GBApplication.getPrefs().getBoolean("general_autoconnectonbluetooth", false)) {
Log.i(TAG, "Autoconnect is enabled, attempting to connect");
GBApplication.deviceService().connect();
} else {
GBApplication.deviceService().start();
}
Log.i(TAG, "Going to enable periodic exporter");
PeriodicExporter.enablePeriodicExport(context);

View File

@ -126,12 +126,6 @@ public class GBDeviceService implements DeviceService {
mContext.stopService(intent);
}
@Override
public void start() {
Intent intent = createIntent().setAction(ACTION_START);
invokeService(intent);
}
@Override
public void connect() {
connect(false);

View File

@ -30,7 +30,6 @@ import nodomain.freeyourgadget.gadgetbridge.service.DeviceCommunicationService;
public interface DeviceService extends EventHandler {
String PREFIX = "nodomain.freeyourgadget.gadgetbridge.devices";
String ACTION_START = PREFIX + ".action.start";
String ACTION_CONNECT = PREFIX + ".action.connect";
String ACTION_NOTIFICATION = PREFIX + ".action.notification";
String ACTION_DELETE_NOTIFICATION = PREFIX + ".action.delete_notification";
@ -166,8 +165,6 @@ public interface DeviceService extends EventHandler {
String EXTRA_CALENDAREVENT_CALNAME = "calendarevent_calname";
String EXTRA_CALENDAREVENT_COLOR = "calendarevent_color";
void start();
void connect();
void connect(boolean firstTime);