From f0241495f6f9552abc10cf8445195b2eeb0142aa Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sat, 21 Dec 2024 13:25:31 +0100 Subject: [PATCH] Fixed an issue where returning from a game when running in the background ignored the video element delay property for the first playback --- es-app/src/views/ViewController.cpp | 1 + es-app/src/views/ViewController.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/es-app/src/views/ViewController.cpp b/es-app/src/views/ViewController.cpp index 7237886be..fde4a2810 100644 --- a/es-app/src/views/ViewController.cpp +++ b/es-app/src/views/ViewController.cpp @@ -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) diff --git a/es-app/src/views/ViewController.h b/es-app/src/views/ViewController.h index 775cb6569..521cb8634 100644 --- a/es-app/src/views/ViewController.h +++ b/es-app/src/views/ViewController.h @@ -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)