diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c359adab..70ae0afec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. ## [Unreleased] +### Added + +- handle `MediaStore.ACTION_REVIEW` intent + ## [v1.11.2] - 2024-06-11 ### Added diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index e0a82ddb2..67ad18af7 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -142,6 +142,7 @@ + @@ -161,6 +162,7 @@ + diff --git a/android/app/src/main/kotlin/deckers/thibault/aves/MainActivity.kt b/android/app/src/main/kotlin/deckers/thibault/aves/MainActivity.kt index 5c4903840..96dd14303 100644 --- a/android/app/src/main/kotlin/deckers/thibault/aves/MainActivity.kt +++ b/android/app/src/main/kotlin/deckers/thibault/aves/MainActivity.kt @@ -10,6 +10,7 @@ import android.os.Build import android.os.Bundle import android.os.Handler import android.os.Looper +import android.provider.MediaStore import android.util.Log import androidx.annotation.RequiresApi import androidx.core.content.pm.ShortcutInfoCompat @@ -299,6 +300,7 @@ open class MainActivity : FlutterFragmentActivity() { Intent.ACTION_VIEW, Intent.ACTION_SEND, + MediaStore.ACTION_REVIEW, "com.android.camera.action.REVIEW", "com.android.camera.action.SPLIT_SCREEN_REVIEW" -> { (intent.data ?: intent.getParcelableExtraCompat(Intent.EXTRA_STREAM))?.let { uri ->