@Override
public int onStartCommand(Intent intent, int flags, int startId) {
Timber.d("########## onStartCommand ##########");
if (intent.hasExtra(Constants.SETTINGS_KEY_AUTO_ON)) {
mPersist = intent.getBooleanExtra(Constants.SETTINGS_KEY_PERSISTENCE, false);
<BUG>toggleTorch(true, mPersist);
Timber.d("Posting a new TorchStateEvent to the bus.");
mBus.post(new TorchStateEvent(mTorch.isOn()));</BUG>
}
return Service.START_NOT_STICKY;

@Override
public int onStartCommand(Intent intent, int flags, int startId) {
Timber.d("########## onStartCommand ##########");
if (intent.hasExtra(Constants.SETTINGS_KEY_AUTO_ON)) {
mPersist = intent.getBooleanExtra(Constants.SETTINGS_KEY_PERSISTENCE, false);
toggleTorch(true, mPersist);
updateUi(mTorch.isOn());
}
return Service.START_NOT_STICKY;
