aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfritsch <Peter.Fruehberger@gmail.com>2024-10-16 19:38:18 +0200
committerfritsch <Peter.Fruehberger@gmail.com>2024-10-16 19:38:18 +0200
commitf8e6acb4eb50ad87a15dfa1f375c28edfed7cd33 (patch)
treeae1f8eedafb3cb26a1e5e70a141fb8d4d82a6be3
parent410c628c828ba9941479391cd1f80452da3ac574 (diff)
MediaSession: Properly update when pressing stop
-rw-r--r--xbmc/platform/android/activity/XBMCApp.cpp2
1 files changed, 1 insertions, 1 deletions
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);