Skip to content

Commit

Permalink
add success call to scanMedia method
Browse files Browse the repository at this point in the history
  • Loading branch information
NO-ob committed Feb 7, 2024
1 parent b89f5f3 commit 83ed6f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ class MainActivity: FlutterActivity() {
val fileContentUri: Uri = Uri.parse("file://" + call.argument("path"))
mediaScannerIntent.data = fileContentUri
sendBroadcast(mediaScannerIntent)
result.success(true)
} else if (call.method == "shareText") {
val text: String? = call.argument("text")
val title: String? = call.argument("title")
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
ext.kotlin_version = '1.9.0'
ext.kotlin_version = '1.7.10'
repositories {
google()
mavenCentral()
Expand Down

0 comments on commit 83ed6f5

Please sign in to comment.