Added methods to check if there is a next and previous track.
Fixed hasNextTrack function.
Updates lock screen controls to hide/show back and next buttons based on whether the media player hasNextTrack() or hasPreviousTrack().