Skip to content

Commit

Permalink
Fixed #288
Browse files Browse the repository at this point in the history
  • Loading branch information
yasirkula committed Aug 17, 2023
1 parent fd69fa2 commit c777ed2
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ else if( mediaType == MEDIA_TYPE_VIDEO )
// Android 10 restricts our access to the raw filesystem, use MediaStore to save media in that case
if( android.os.Build.VERSION.SDK_INT >= 29 )
{
values.put( MediaStore.MediaColumns.RELATIVE_PATH, mediaSaveOmitDCIM ? ( directoryName + "/" ) : ( "DCIM/" + directoryName + "/" ) );
values.put( MediaStore.MediaColumns.RELATIVE_PATH, mediaSaveOmitDCIM ? ( directoryName + "/" ) : ( ( ( mediaType != MEDIA_TYPE_AUDIO ) ? "DCIM/" : "Music/" ) + directoryName + "/" ) );
values.put( MediaStore.MediaColumns.DATE_TAKEN, System.currentTimeMillis() );

// While using MediaStore to save media, filename collisions are automatically handled by the OS.
Expand Down
Binary file modified Plugins/NativeGallery/Android/NativeGallery.aar
Binary file not shown.
2 changes: 1 addition & 1 deletion Plugins/NativeGallery/README.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
= Native Gallery for Android & iOS (v1.7.4) =
= Native Gallery for Android & iOS (v1.7.5) =

Online documentation & example code available at: https://github.com/yasirkula/UnityNativeGallery
E-mail: [email protected]
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.yasirkula.nativegallery",
"displayName": "Native Gallery",
"version": "1.7.4",
"version": "1.7.5",
"documentationUrl": "https://github.com/yasirkula/UnityNativeGallery",
"changelogUrl": "https://github.com/yasirkula/UnityNativeGallery/releases",
"licensesUrl": "https://github.com/yasirkula/UnityNativeGallery/blob/master/LICENSE.txt",
Expand Down

0 comments on commit c777ed2

Please sign in to comment.