Refresh Android Auto on Shuffle Change. Fix shadowed variable.
Description
This MR contains two changes:
- Currently, when viewing the artist or album library pages via Android Auto changing the shuffle mode does not update the play-all or shuffle-all button. This adds a refresh call to trigger a page update.
- The
path
variable was shadowed in thecanWrite
function. I resolved the issue and replaced duplicated code to removefile://
from paths.
Types of changes
-
Bug fix (non-breaking change which fixes an issue) -
Enhancement (non-breaking change which cleans up / improves existing functionality)
Checklist
-
I have read the CONTRIBUTING section of the README document.