Skip to content

Commit

Permalink
Fixed a harmless NumberFormatException (it was already catched but no…
Browse files Browse the repository at this point in the history
…w it's not thrown at all)
  • Loading branch information
yasirkula committed Jan 15, 2022
1 parent 0b44730 commit 5f57882
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Expand Up @@ -315,8 +315,10 @@ else if( "com.android.providers.downloads.documents".equals( uri.getAuthority()
final String id = DocumentsContract.getDocumentId( uri );
if( id.startsWith( "raw:" ) ) // https://stackoverflow.com/a/51874578/2373034
return id.substring( 4 );

uri = ContentUris.withAppendedId( Uri.parse( "content://downloads/public_downloads" ), Long.valueOf( id ) );
else if( id.indexOf( ':' ) < 0 ) // Don't attempt to parse stuff like "msf:NUMBER" (newer Android versions)
uri = ContentUris.withAppendedId( Uri.parse( "content://downloads/public_downloads" ), Long.parseLong( id ) );
else
return null;
}
else if( "com.android.providers.media.documents".equals( uri.getAuthority() ) )
{
Expand Down
Binary file modified Plugins/NativeCamera/Android/NativeCamera.aar
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "com.yasirkula.nativecamera",
"displayName": "Native Camera",
"version": "1.3.1",
"version": "1.3.2",
"documentationUrl": "https://github.com/yasirkula/UnityNativeCamera",
"changelogUrl": "https://github.com/yasirkula/UnityNativeCamera/releases",
"licensesUrl": "https://github.com/yasirkula/UnityNativeCamera/blob/master/LICENSE.txt",
Expand Down

0 comments on commit 5f57882

Please sign in to comment.