OPP: Handle abnormal behaviour while sharing file from Snapchat

Use case:
1. Take a pic in Snapchat
2. share this picture via BT

Expected Result:
Photo can be shared successfully via BT to remote device

Root Cause:
Android Content Resolver not able to find name column from
received URI of external app.

Fix:
Add extra check while fetching name value from provider,
to prevent cursor exception and make file transfer successful.

Test: No crash observed while sharing file from Snapchat

Fixes: 77167222
Change-Id: I26c6543a4276fd18496ec5479a99eda52dd403b5
(cherry picked from commit 826d86c34938a899f4d3af4f31c02ec306aafcf3)
1 file changed
tree: f54341458d00b04a011c496cd0f0188fbb0e7402
  1. android/