Commit 8d068a0c authored by Toshikazu Saito's avatar Toshikazu Saito Committed by Shrikara B
Browse files

Change caught exception in MediaScanner when ExifInterface is created

Some HEIF content happens RuntimeException in ExifInterface because
sniff is failed and MediaExtractor is not found. If exception happens,
scanning is aborted. So all contents may not be registered to database
correctly. To avoid that, this fix changes caught exception from
IOException to Exception for creating ExifInterface.

Bug: 117625929
Test: put some HEIF contents and check on photos

CRs-Fixed: 2454895

(cherry picked from commit a74c7799)
Change-Id: I6d32dec27c3be13993ec08f92d567b772d03ace9
parent a35f2b2f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment