From f8e6acb4eb50ad87a15dfa1f375c28edfed7cd33 Mon Sep 17 00:00:00 2001 From: fritsch Date: Wed, 16 Oct 2024 19:38:18 +0200 Subject: MediaSession: Properly update when pressing stop --- xbmc/platform/android/activity/XBMCApp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xbmc/platform/android/activity/XBMCApp.cpp b/xbmc/platform/android/activity/XBMCApp.cpp index 10e00d0146..da9c31456a 100644 --- a/xbmc/platform/android/activity/XBMCApp.cpp +++ b/xbmc/platform/android/activity/XBMCApp.cpp @@ -919,9 +919,9 @@ void CXBMCApp::OnPlayBackStopped() CLog::Log(LOGDEBUG, "{}", __PRETTY_FUNCTION__); m_playback_state = PLAYBACK_STATE_STOPPED; + m_mediaSessionUpdated = false; UpdateSessionState(); m_mediaSession->activate(false); - m_mediaSessionUpdated = false; RequestVisibleBehind(false); CAndroidKey::SetHandleMediaKeys(true); -- cgit v1.2.3