Skip to content

Commit

Permalink
Force update on media session sensor when a session is in progress (#…
Browse files Browse the repository at this point in the history
…3652)

* Force update on media session sensor when a session is in progress

* Switch logic to only update when media is actively playing
  • Loading branch information
dshokouhi authored Jul 11, 2023
1 parent f17a9d3 commit 23c35af
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ class NotificationSensorManager : NotificationListenerService(), SensorManager {
mediaSession,
primaryPlaybackState,
mediaSession.statelessIcon,
attr
attr,
forceUpdate = primaryPlaybackState == "Playing"
)
}

Expand Down

0 comments on commit 23c35af

Please sign in to comment.