Ignore IllegalArgumentException from MediaProvider operations

Inserting new MediaStore entries for files in app private directories
leads to IllegalArgumentException in Android S-OS and above.
DownloadProvider tries to insert MediaStore entry for files in app
external directories when doing sync after OS upgrade from Android P to
Android S. To avoid crashing DownloadProvider, we ignore the
IllegalArgumentException.

Bug: 195185812
Test: Tests will be added as part of b/196028977

Change-Id: Idf95a75c8101246a2650fe69f476f9372b9cebd7
(cherry picked from commit 7a92998a98b355b0d54fb4a146e136f26728a0b8)
1 file changed