mirror of
https://github.com/aljazceru/Android-nRF-Toolbox.git
synced 2025-12-23 09:24:23 +01:00
Preventing from starting the service after it was killed
This commit is contained in:
@@ -354,7 +354,9 @@ public abstract class BleMulticonnectProfileService extends Service implements B
|
||||
@Override
|
||||
public int onStartCommand(final Intent intent, final int flags, final int startId) {
|
||||
onServiceStarted();
|
||||
return super.onStartCommand(intent, flags, startId);
|
||||
// The service does not save addresses of managed devices.
|
||||
// A bound activity will be required to add connections again.
|
||||
return START_NOT_STICKY;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user