From efe90d0030c2e8e1c3b1c916006334f09fc26bca Mon Sep 17 00:00:00 2001 From: Balazs Toldi Date: Fri, 25 Aug 2023 17:23:56 +0200 Subject: [PATCH] Changed default media download location to the "Eternity" folder --- .../toldi/infinityforlemmy/services/DownloadMediaService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/toldi/infinityforlemmy/services/DownloadMediaService.java b/app/src/main/java/eu/toldi/infinityforlemmy/services/DownloadMediaService.java index ce916444..b1b95b40 100644 --- a/app/src/main/java/eu/toldi/infinityforlemmy/services/DownloadMediaService.java +++ b/app/src/main/java/eu/toldi/infinityforlemmy/services/DownloadMediaService.java @@ -153,7 +153,7 @@ public class DownloadMediaService extends Service { if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) { File directory = getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES); if (directory != null) { - String directoryPath = separateDownloadFolder && subredditName != null && !subredditName.equals("") ? directory.getAbsolutePath() + "/Infinity/" + subredditName + "/" : directory.getAbsolutePath() + "/Infinity/"; + String directoryPath = separateDownloadFolder && subredditName != null && !subredditName.equals("") ? directory.getAbsolutePath() + "/Eternity/" + subredditName + "/" : directory.getAbsolutePath() + "/Eternity/"; File infinityDir = new File(directoryPath); if (!infinityDir.exists() && !infinityDir.mkdirs()) { downloadFinished(mediaType, randomNotificationIdOffset, mimeType, @@ -168,7 +168,7 @@ public class DownloadMediaService extends Service { } } else { String dir = mediaType == EXTRA_MEDIA_TYPE_VIDEO ? Environment.DIRECTORY_MOVIES : Environment.DIRECTORY_PICTURES; - destinationFileUriString = separateDownloadFolder && subredditName != null && !subredditName.equals("") ? dir + "/Infinity/" + subredditName + "/" : dir + "/Infinity/"; + destinationFileUriString = separateDownloadFolder && subredditName != null && !subredditName.equals("") ? dir + "/Eternity/" + subredditName + "/" : dir + "/Eternity/"; } isDefaultDestination = true; } else {