aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/ml/docilealligator/infinityforreddit
diff options
context:
space:
mode:
authorDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2024-10-28 16:38:17 +0000
committerDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2024-10-28 16:38:17 +0000
commit169ebe7ac176ab6372303c3f0f5cd5cd251403d2 (patch)
tree57b18b314e592556923b09e0cbd73209cd5ee1d1 /app/src/main/java/ml/docilealligator/infinityforreddit
parent27152bf1d5f2f329d7afd578073fc718215957c2 (diff)
downloadinfinity-for-reddit-169ebe7ac176ab6372303c3f0f5cd5cd251403d2.tar
infinity-for-reddit-169ebe7ac176ab6372303c3f0f5cd5cd251403d2.tar.gz
infinity-for-reddit-169ebe7ac176ab6372303c3f0f5cd5cd251403d2.tar.bz2
infinity-for-reddit-169ebe7ac176ab6372303c3f0f5cd5cd251403d2.tar.lz
infinity-for-reddit-169ebe7ac176ab6372303c3f0f5cd5cd251403d2.tar.xz
infinity-for-reddit-169ebe7ac176ab6372303c3f0f5cd5cd251403d2.tar.zst
infinity-for-reddit-169ebe7ac176ab6372303c3f0f5cd5cd251403d2.zip
Move workers to the worker package.
Diffstat (limited to 'app/src/main/java/ml/docilealligator/infinityforreddit')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/AppComponent.java2
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/activities/MainActivity.java2
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/broadcastreceivers/WallpaperChangeReceiver.java2
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/settings/NotificationPreferenceFragment.java2
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/worker/MaterialYouWorker.java (renamed from app/src/main/java/ml/docilealligator/infinityforreddit/MaterialYouWorker.java)4
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/worker/PullNotificationWorker.java (renamed from app/src/main/java/ml/docilealligator/infinityforreddit/PullNotificationWorker.java)5
6 files changed, 12 insertions, 5 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/AppComponent.java b/app/src/main/java/ml/docilealligator/infinityforreddit/AppComponent.java
index fcacd2b8..db5c9cee 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/AppComponent.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/AppComponent.java
@@ -104,6 +104,8 @@ import ml.docilealligator.infinityforreddit.settings.SecurityPreferenceFragment;
import ml.docilealligator.infinityforreddit.settings.ThemePreferenceFragment;
import ml.docilealligator.infinityforreddit.settings.TranslationFragment;
import ml.docilealligator.infinityforreddit.settings.VideoPreferenceFragment;
+import ml.docilealligator.infinityforreddit.worker.MaterialYouWorker;
+import ml.docilealligator.infinityforreddit.worker.PullNotificationWorker;
@Singleton
@Component(modules = {AppModule.class, NetworkModule.class})
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/MainActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/MainActivity.java
index d86b862f..0e92206a 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/MainActivity.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/MainActivity.java
@@ -68,7 +68,7 @@ import javax.inject.Named;
import ml.docilealligator.infinityforreddit.thing.FetchSubscribedThing;
import ml.docilealligator.infinityforreddit.Infinity;
import ml.docilealligator.infinityforreddit.post.MarkPostAsReadInterface;
-import ml.docilealligator.infinityforreddit.PullNotificationWorker;
+import ml.docilealligator.infinityforreddit.worker.PullNotificationWorker;
import ml.docilealligator.infinityforreddit.R;
import ml.docilealligator.infinityforreddit.RecyclerViewContentScrollingInterface;
import ml.docilealligator.infinityforreddit.RedditDataRoomDatabase;
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/broadcastreceivers/WallpaperChangeReceiver.java b/app/src/main/java/ml/docilealligator/infinityforreddit/broadcastreceivers/WallpaperChangeReceiver.java
index 2a5efc9b..238d339a 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/broadcastreceivers/WallpaperChangeReceiver.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/broadcastreceivers/WallpaperChangeReceiver.java
@@ -9,7 +9,7 @@ import androidx.work.ExistingWorkPolicy;
import androidx.work.OneTimeWorkRequest;
import androidx.work.WorkManager;
-import ml.docilealligator.infinityforreddit.MaterialYouWorker;
+import ml.docilealligator.infinityforreddit.worker.MaterialYouWorker;
import ml.docilealligator.infinityforreddit.utils.SharedPreferencesUtils;
public class WallpaperChangeReceiver extends BroadcastReceiver {
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/settings/NotificationPreferenceFragment.java b/app/src/main/java/ml/docilealligator/infinityforreddit/settings/NotificationPreferenceFragment.java
index 7ba9e869..1d351edc 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/settings/NotificationPreferenceFragment.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/settings/NotificationPreferenceFragment.java
@@ -29,7 +29,7 @@ import javax.inject.Inject;
import javax.inject.Named;
import ml.docilealligator.infinityforreddit.Infinity;
-import ml.docilealligator.infinityforreddit.PullNotificationWorker;
+import ml.docilealligator.infinityforreddit.worker.PullNotificationWorker;
import ml.docilealligator.infinityforreddit.R;
import ml.docilealligator.infinityforreddit.customviews.CustomFontPreferenceFragmentCompat;
import ml.docilealligator.infinityforreddit.utils.SharedPreferencesUtils;
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/MaterialYouWorker.java b/app/src/main/java/ml/docilealligator/infinityforreddit/worker/MaterialYouWorker.java
index 1cc8ba8b..792bc2ed 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/MaterialYouWorker.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/worker/MaterialYouWorker.java
@@ -1,4 +1,4 @@
-package ml.docilealligator.infinityforreddit;
+package ml.docilealligator.infinityforreddit.worker;
import android.content.Context;
import android.content.SharedPreferences;
@@ -10,6 +10,8 @@ import androidx.work.WorkerParameters;
import javax.inject.Inject;
import javax.inject.Named;
+import ml.docilealligator.infinityforreddit.Infinity;
+import ml.docilealligator.infinityforreddit.RedditDataRoomDatabase;
import ml.docilealligator.infinityforreddit.customtheme.CustomThemeWrapper;
import ml.docilealligator.infinityforreddit.utils.MaterialYouUtils;
import ml.docilealligator.infinityforreddit.utils.SharedPreferencesUtils;
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/PullNotificationWorker.java b/app/src/main/java/ml/docilealligator/infinityforreddit/worker/PullNotificationWorker.java
index f8fbcdaf..ef8c81fd 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/PullNotificationWorker.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/worker/PullNotificationWorker.java
@@ -1,4 +1,4 @@
-package ml.docilealligator.infinityforreddit;
+package ml.docilealligator.infinityforreddit.worker;
import android.app.PendingIntent;
import android.content.Context;
@@ -27,6 +27,9 @@ import java.util.Map;
import javax.inject.Inject;
import javax.inject.Named;
+import ml.docilealligator.infinityforreddit.Infinity;
+import ml.docilealligator.infinityforreddit.R;
+import ml.docilealligator.infinityforreddit.RedditDataRoomDatabase;
import ml.docilealligator.infinityforreddit.account.Account;
import ml.docilealligator.infinityforreddit.activities.InboxActivity;
import ml.docilealligator.infinityforreddit.activities.LinkResolverActivity;