Skip to content

Android Auto: Play As Audio Fix and Code Clean-up

Robert Stone requested to merge rhstone/vlc-android:always-set-audio-flag into master

Description

This MR is a combination of several fixes:

  • Always set play as audio flag (Observed a race condition where it was not always added to video files)
  • Use shared media subtitle function in the album view
  • Add try-catch to Artwork Provider
  • Add genre to Android Auto search results
  • Use separator utility class to simplify existing code
  • General code-cleanup to resolve a few warnings

How Has This Been Tested?

Tested on Hyundai and Subaru Headunits (see below) using a Pixel 3 running Android 11.

Screenshots / GIFs (if appropriate):

Prior to Change (separator character is represented by a rectangle): Subaru_Unk_Char

After Change (separator character is an ASCII bullet):

Subaru_Known_Char

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.

Resolves

Fixes: #2431 (closed)

Edited by Robert Stone

Merge request reports