mirror of
https://github.com/home-assistant/android
synced 2024-10-15 12:32:54 +00:00
Force update on media session sensor when a session is in progress (#3652)
* Force update on media session sensor when a session is in progress * Switch logic to only update when media is actively playing
This commit is contained in:
parent
f17a9d338d
commit
23c35af6a2
|
@ -282,7 +282,8 @@ class NotificationSensorManager : NotificationListenerService(), SensorManager {
|
|||
mediaSession,
|
||||
primaryPlaybackState,
|
||||
mediaSession.statelessIcon,
|
||||
attr
|
||||
attr,
|
||||
forceUpdate = primaryPlaybackState == "Playing"
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue