Skip to content

Commit

Permalink
Fix android store path
Browse files Browse the repository at this point in the history
  • Loading branch information
qiuxiang committed Jan 20, 2021
1 parent 447bf2f commit b0a61e6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class ImageGallerySaverPlugin(private val registrar: Registrar): MethodCallHandl
}

private fun generateFile(extension: String = "", name: String? = null): File {
val storePath = Environment.getExternalStorageDirectory().absolutePath + File.separator + Environment.DIRECTORY_PICTURES + File.separator + getApplicationName()
val storePath = Environment.getExternalStorageDirectory().absolutePath + File.separator + Environment.DIRECTORY_PICTURES
val appDir = File(storePath)
if (!appDir.exists()) {
appDir.mkdir()
Expand Down

0 comments on commit b0a61e6

Please sign in to comment.