aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2024-08-01 03:48:28 +0000
committerDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2024-08-01 03:48:28 +0000
commitd5f89a9dd97abf2d96379c571e8d4d8097336f86 (patch)
treec12afbbbe3123e6e6bab2644ff53a349ba8a3299 /app/src/main
parent095c018824a3ce123642e6d72c79af873e05bbdb (diff)
downloadinfinity-for-reddit-d5f89a9dd97abf2d96379c571e8d4d8097336f86.tar
infinity-for-reddit-d5f89a9dd97abf2d96379c571e8d4d8097336f86.tar.gz
infinity-for-reddit-d5f89a9dd97abf2d96379c571e8d4d8097336f86.tar.bz2
infinity-for-reddit-d5f89a9dd97abf2d96379c571e8d4d8097336f86.tar.lz
infinity-for-reddit-d5f89a9dd97abf2d96379c571e8d4d8097336f86.tar.xz
infinity-for-reddit-d5f89a9dd97abf2d96379c571e8d4d8097336f86.tar.zst
infinity-for-reddit-d5f89a9dd97abf2d96379c571e8d4d8097336f86.zip
Fix app crashes on downloading media, submitting posts and editing profile on Android < 14.
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/services/DownloadMediaService.java2
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/services/DownloadRedditVideoService.java1
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/services/EditProfileService.java1
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/services/SubmitPostService.java1
4 files changed, 5 insertions, 0 deletions
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 8d008539..6ef5b921 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/services/DownloadMediaService.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/services/DownloadMediaService.java
@@ -21,6 +21,7 @@ import android.os.Build;
import android.os.Environment;
import android.os.PersistableBundle;
import android.provider.MediaStore;
+import android.util.Log;
import androidx.core.app.NotificationChannelCompat;
import androidx.core.app.NotificationCompat;
@@ -94,6 +95,7 @@ public class DownloadMediaService extends JobService {
.build();
} else {
return new JobInfo.Builder(JOB_ID++, new ComponentName(context, DownloadMediaService.class))
+ .setExtras(extras)
.build();
}
}
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 54ec726e..9bf0aa2b 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/services/DownloadRedditVideoService.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/services/DownloadRedditVideoService.java
@@ -103,6 +103,7 @@ public class DownloadRedditVideoService extends JobService {
.build();
} else {
return new JobInfo.Builder(JOB_ID++, new ComponentName(context, DownloadRedditVideoService.class))
+ .setExtras(extras)
.build();
}
}
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/services/EditProfileService.java b/app/src/main/java/ml/docilealligator/infinityforreddit/services/EditProfileService.java
index a9d2105c..fc25add7 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/services/EditProfileService.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/services/EditProfileService.java
@@ -83,6 +83,7 @@ public class EditProfileService extends JobService {
.build();
} else {
return new JobInfo.Builder(JOB_ID++, new ComponentName(context, EditProfileService.class))
+ .setExtras(extras)
.build();
}
}
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/services/SubmitPostService.java b/app/src/main/java/ml/docilealligator/infinityforreddit/services/SubmitPostService.java
index 6b13ce72..13e2015f 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/services/SubmitPostService.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/services/SubmitPostService.java
@@ -129,6 +129,7 @@ public class SubmitPostService extends JobService {
.build();
} else {
return new JobInfo.Builder(JOB_ID++, new ComponentName(context, SubmitPostService.class))
+ .setExtras(extras)
.build();
}
}