diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/services/DownloadMediaService.java b/app/src/main/java/ml/docilealligator/infinityforreddit/services/DownloadMediaService.java index a2800777..e28427d7 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/services/DownloadMediaService.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/services/DownloadMediaService.java @@ -666,6 +666,7 @@ public class DownloadMediaService extends JobService { } if (contentStringResId != 0) { builder.setContentText(getString(contentStringResId)); + builder.setStyle(new NotificationCompat.BigTextStyle().bigText(getString(contentStringResId))); } if (mediaUri != null) { int pendingIntentFlags = Build.VERSION.SDK_INT >= Build.VERSION_CODES.M ? PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_IMMUTABLE : PendingIntent.FLAG_CANCEL_CURRENT; @@ -834,7 +835,7 @@ public class DownloadMediaService extends JobService { int randomNotificationIdOffset, String mimeType, Uri destinationFileUri, int errorCode, boolean multipleDownloads) { if (errorCode != NO_ERROR) { - if (multipleDownloads) { + if (!multipleDownloads) { switch (errorCode) { case ERROR_CANNOT_GET_DESTINATION_DIRECTORY: updateNotification(builder, mediaType, R.string.downloading_image_or_gif_failed_cannot_get_destination_directory, diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/services/DownloadRedditVideoService.java b/app/src/main/java/ml/docilealligator/infinityforreddit/services/DownloadRedditVideoService.java index c889a166..b4a5356e 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/services/DownloadRedditVideoService.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/services/DownloadRedditVideoService.java @@ -638,6 +638,7 @@ public class DownloadRedditVideoService extends JobService { } if (contentStringResId != 0) { builder.setContentText(getString(contentStringResId)); + builder.setStyle(new NotificationCompat.BigTextStyle().bigText(getString(contentStringResId))); } if (mediaUri != null) { int pendingIntentFlags = Build.VERSION.SDK_INT >= Build.VERSION_CODES.M ? PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_IMMUTABLE : PendingIntent.FLAG_CANCEL_CURRENT; diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 18828d19..672b26ab 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1065,9 +1065,9 @@ Downloading Downloaded - Download failed: cannot access destination directory + Download failed: cannot access destination directory. Please reselect your preferred download location in Settings->Download Location. Download failed - Download failed: cannot save the file to destination directory + Download failed: cannot save the file to destination directory. Please reselect your preferred download location in Settings->Download Location. Download failed: cannot fetch Redgifs video url Download failed: cannot fetch Streamable video url Invalid argument