From a1778c9503a8ea107a193b77c268232af60d749d Mon Sep 17 00:00:00 2001 From: Anton Chekulaev Date: Fri, 4 Sep 2020 17:34:22 +1000 Subject: [PATCH] Media repository deprecation note. --- .../thoughtcrime/securesms/mediasend/MediaRepository.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/org/thoughtcrime/securesms/mediasend/MediaRepository.java b/src/org/thoughtcrime/securesms/mediasend/MediaRepository.java index d63bfbdb38..f9c4486e3b 100644 --- a/src/org/thoughtcrime/securesms/mediasend/MediaRepository.java +++ b/src/org/thoughtcrime/securesms/mediasend/MediaRepository.java @@ -33,6 +33,11 @@ import java.util.Map; /** * Handles the retrieval of media present on the user's device. + * @deprecated Usage of this class is unsafe on Android API 30 and up, + * the public external directory is no longer exposed to the apps. + *

+ * The functionality of this class should be refactored to use + * MediaStore. */ class MediaRepository {