From 8abc38554e68ead46381f0dbafabf6c4a8d5376a Mon Sep 17 00:00:00 2001 From: Thibault Deckers Date: Fri, 2 Apr 2021 21:49:11 +0900 Subject: [PATCH] android: support camera review intent --- android/app/src/main/AndroidManifest.xml | 17 +++++++++++++---- .../deckers/thibault/aves/MainActivity.kt | 2 +- android/app/src/profile/AndroidManifest.xml | 7 ------- 3 files changed, 14 insertions(+), 12 deletions(-) delete mode 100644 android/app/src/profile/AndroidManifest.xml diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index ea311e8df..bde50c227 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -39,9 +39,9 @@ + android:requestLegacyExternalStorage="true" + android:roundIcon="@mipmap/ic_launcher_round"> + android:resource="@style/NormalTheme" /> @@ -71,6 +70,15 @@ + + + + + + + + + @@ -100,6 +108,7 @@ android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/provider_paths" /> + 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 7f43f5215..a29d60cf7 100644 --- a/android/app/src/main/kotlin/deckers/thibault/aves/MainActivity.kt +++ b/android/app/src/main/kotlin/deckers/thibault/aves/MainActivity.kt @@ -111,7 +111,7 @@ class MainActivity : FlutterActivity() { ) } } - Intent.ACTION_VIEW -> { + Intent.ACTION_VIEW, "com.android.camera.action.REVIEW" -> { intent.data?.let { uri -> return hashMapOf( "action" to "view", diff --git a/android/app/src/profile/AndroidManifest.xml b/android/app/src/profile/AndroidManifest.xml deleted file mode 100644 index ebcc4799f..000000000 --- a/android/app/src/profile/AndroidManifest.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - -