exitForeground

Called when the app returns to the foreground (after connect succeeds in Activity.onStart).

A mediaPlayback foreground service cannot hide its notification. Cancelling it does not remove the media card, because the session stays active — it only leaves System UI rendering the last version that was posted, which is how a media item whose artwork had not finished loading kept showing an empty image for as long as the app was visible. The notification is therefore left posted and refreshed like any other update.