~aleteoryx/muditaos

be0697281c6cb0f1975dd94b2c2eb57159ff57c1 — Tigran Soghbatyan 4 years ago 6b829a4
[BH-1109] Fix library audio playback stop

Make library audio playback to stop on return
input event even in SingleShot mode
M products/BellHybrid/apps/application-bell-background-sounds/presenter/BGSoundsProgressPresenter.cpp => products/BellHybrid/apps/application-bell-background-sounds/presenter/BGSoundsProgressPresenter.cpp +0 -5
@@ 55,11 55,6 @@ namespace app::bgSounds
    }
    void BGSoundsProgressPresenter::onFinished()
    {
        if (player.getCurrentMode() == AbstractBGSoundsPlayer::PlaybackMode::SingleShot) {
            getView()->onFinished();
            return;
        }

        auto onStopCallback = [this](audio::RetCode retCode) {
            if (retCode == audio::RetCode::Success) {
                getView()->onFinished();