From 611a41a1dc21f10ec32963f3e12a7925cb2a3d66 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Wed, 18 Nov 2020 17:47:01 +0800 Subject: Save Reddit videos in DIRECTORY_MOVIES instead of DIRECTORY_PICTURES to prevent crash on Android 10. --- .../infinityforreddit/Service/DownloadRedditVideoService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/main/java/ml') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Service/DownloadRedditVideoService.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Service/DownloadRedditVideoService.java index 575a0868..28133592 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/Service/DownloadRedditVideoService.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Service/DownloadRedditVideoService.java @@ -178,7 +178,7 @@ public class DownloadRedditVideoService extends Service { return; } } else { - destinationFileUriString = separateDownloadFolder ? Environment.DIRECTORY_PICTURES + "/Infinity/" + subredditName + "/" : Environment.DIRECTORY_PICTURES + "/Infinity/"; + destinationFileUriString = separateDownloadFolder ? Environment.DIRECTORY_MOVIES + "/Infinity/" + subredditName + "/" : Environment.DIRECTORY_MOVIES + "/Infinity/"; } isDefaultDestination = true; } else { -- cgit v1.2.3