When shifting MP4 to M4A, use MEDIA_TYPE_AUDIO.
In the recently introduced narrow case where we're willing to treat
MP4 video files as M4A audio files, we still tried inserting those
items into the video collection.
This change resolves that by ensuring that any changes to the MIME
type also change the FileColumns.MEDIA_TYPE value, effectively
placing these MP4 files into the audio collection.
Bug: 148316354, 151402314
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: I4c3495b5ae6f8c4af4eaba171d5d6d5826c0335b
3 files changed