aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthexai <58434170+thexai@users.noreply.github.com>2024-10-20 10:41:41 +0200
committerGitHub <noreply@github.com>2024-10-20 10:41:41 +0200
commitd6b1479064d4b0314585b7eb49be66cbc1204b5a (patch)
treeed40293aebfae0cc5e663ddef2ea6731edd83a0c
parentdbd88eb5989fe1fc8d8f3b05d4de6d82f354dc77 (diff)
parentf8e6acb4eb50ad87a15dfa1f375c28edfed7cd33 (diff)
Merge pull request #25841 from fritsch/mediasession
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 429a11fa06..c67ed9e8cc 100644
--- a/xbmc/platform/android/activity/XBMCApp.cpp
+++ b/xbmc/platform/android/activity/XBMCApp.cpp
@@ -924,9 +924,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);