Fixed an issue where returning from a game when running in the background ignored the video element delay property for the first playback

This commit is contained in:
Leon Styhre 2024-12-21 13:25:31 +01:00
parent 6a1d6e2844
commit f0241495f6
2 changed files with 1 additions and 1 deletions

View file

@ -1230,6 +1230,7 @@ bool ViewController::input(InputConfig* config, Input input)
mWindow->setAllowTextScrolling(true);
mWindow->setAllowFileAnimation(true);
mWindow->setLaunchedGame(false);
resetViewVideosTimer();
// Filter out the "a" button so the game is not restarted if there was such a button press
// queued when leaving the game.
if (config->isMappedTo("a", input) && input.value != 0)

View file

@ -89,7 +89,6 @@ public:
void stopViewVideos() override { mCurrentView->stopViewVideos(); }
void pauseViewVideos() override { mCurrentView->pauseViewVideos(); }
void muteViewVideos() override { mCurrentView->muteViewVideos(); }
// Needed on Android to reset the static image delay timer on activity resume.
void resetViewVideosTimer() override
{
if (mCurrentView != nullptr)