Timber.d("ToggleRequestEvent detected on the bus.");
if (mForeground && event.isProduced()) {
Timber.d("ToggleRequestEvent was produced while service in foreground. Disregarding.");
} else {
toggleTorch(event.getRequestedState(), event.getPersistence());
<BUG>}
Timber.d("Posting a new TorchStateEvent to the bus.");
mBus.post(new TorchStateEvent(mTorch.isOn()));</BUG>
}
@Subscribe

Timber.d("ToggleRequestEvent detected on the bus.");
if (mForeground && event.isProduced()) {
Timber.d("ToggleRequestEvent was produced while service in foreground. Disregarding.");
} else {
toggleTorch(event.getRequestedState(), event.getPersistence());
}
updateUi(mTorch.isOn());
}
@Subscribe
