if (mForeground && !requestedState) {
Timber.d("Disabling torch while in foreground mode. Exiting foreground mode.");
exitForeground();
}
togglePersistence(persistence);
<BUG>}
private void die(@NonNull String error) {</BUG>
Timber.e(error);
Timber.d("Posting a new ShutdownEvent to the bus.");
mBus.post(new ShutdownEvent(error));

if (mForeground && !requestedState) {
Timber.d("Disabling torch while in foreground mode. Exiting foreground mode.");
exitForeground();
}
togglePersistence(persistence);
}
private void updateUi(boolean state) {
Timber.d("Posting a new TorchStateEvent to the bus.");
mBus.post(new TorchStateEvent(state));
}
private void die(@NonNull String error) {
Timber.e(error);
Timber.d("Posting a new ShutdownEvent to the bus.");
mBus.post(new ShutdownEvent(error));
