From 4d324b544c25b45bfc7b0aba328c7fc5be2717da Mon Sep 17 00:00:00 2001 From: xsling Date: Tue, 21 Jun 2022 00:20:16 +0800 Subject: [PATCH] fix: workaround on android permission policy updates --- app/build.gradle | 2 +- app/src/main/AndroidManifest.xml | 7 +++++-- .../sh/xsl/reedisland/screens/widgets/popups/PostPopup.kt | 1 + 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index b7088ce0..e9315128 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -64,7 +64,7 @@ android { minSdkVersion 23 targetSdkVersion 32 versionCode 48 - versionName "v2.0.30" + versionName "v2.0.31" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 6b3bab97..677d9e7c 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -23,6 +23,8 @@ + + + android:exported="true" + android:launchMode="singleTask"> diff --git a/app/src/main/java/sh/xsl/reedisland/screens/widgets/popups/PostPopup.kt b/app/src/main/java/sh/xsl/reedisland/screens/widgets/popups/PostPopup.kt index 9a20cef0..096c8394 100644 --- a/app/src/main/java/sh/xsl/reedisland/screens/widgets/popups/PostPopup.kt +++ b/app/src/main/java/sh/xsl/reedisland/screens/widgets/popups/PostPopup.kt @@ -483,6 +483,7 @@ class PostPopup(private val caller: MainActivity, private val sharedVM: SharedVi } + // TODO: follow new storage permission policy(use MediaStore) findViewById