From e6c224bec45d267f2fb28e2067c98856e8d49c0e Mon Sep 17 00:00:00 2001 From: ThomasSession <thomas.r@getsession.org> Date: Tue, 10 Sep 2024 09:24:32 +1000 Subject: [PATCH] WRITE_EXTERNAL_STORAGE relates to sdk <= 28 --- .../securesms/conversation/v2/ConversationActivityV2.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt index 48188c34b4..5a3a14564a 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt @@ -2257,8 +2257,8 @@ class ConversationActivityV2 : PassphraseRequiredActionBarActivity(), InputBarDe // that we've warned the user just _once_ that any attachments they save can be accessed by other apps. val haveWarned = TextSecurePreferences.getHaveWarnedUserAboutSavingAttachments(this) if (haveWarned) { - // On Android versions below 30 we require the WRITE_EXTERNAL_STORAGE permission to save attachments. - if (Build.VERSION.SDK_INT < 30) { + // On Android versions below 29 we require the WRITE_EXTERNAL_STORAGE permission to save attachments. + if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.P) { // Save the attachment(s) then bail if we already have permission to do so if (hasPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE)) { saveAttachments(message)