CB-14097: (android) Fix crash when selecting some files with getPicture (#322)
authorbvmensvoort <y97mf54n9j@snkmail.com>
Thu, 5 Jul 2018 22:16:25 +0000 (00:16 +0200)
committerjcesarmobile <jcesarmobile@gmail.com>
Thu, 5 Jul 2018 22:16:25 +0000 (00:16 +0200)
commit5c23b65af9b11fa3a17bd44513418113dea9b8ed
tree48b192ed41c903799cc89d0f7b07c328dfcba169
parent6899c5ece944418191c45ff093ed3806548e3544
CB-14097: (android) Fix crash when selecting some files with getPicture (#322)

* CB-14097: (android) Fix crash when selecting some files with getPicture of urls with raw://

Handles both urls:
content://com.android.providers.downloads.documents/document/1111
content://com.android.providers.downloads.documents/document/raw%3A%2Fstorage%2Femulated%2F0%2FDownload%2Ffilename.pdf

* Optimization: Remove TextUtils dependency, return null when no id could be extracted
src/android/FileHelper.java