Preventing from starting the service after it was killed

This commit is contained in:
Aleksander Nowakowski
2016-10-18 17:23:30 +02:00
parent d7e980953f
commit c117823a4f

View File

@@ -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;
}
/**