diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2022-02-23 23:11:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-23 23:11:17 +0100 |
commit | b6da9ae32912f378c4a715e63076de98d368bf1a (patch) | |
tree | eec6fde62c3c48dd238554b8d3fc1462ea2d13b3 /app/src/main/java/de/danoeh/antennapod/activity | |
parent | ecaba7525ff63b7837a370c2ccc3b5f8b1c52aed (diff) | |
parent | 149a1532cd6cafdc53de5ab740c27fe771b614f6 (diff) | |
download | AntennaPod-b6da9ae32912f378c4a715e63076de98d368bf1a.zip |
Merge pull request #5742 from TacoTheDank/widgetUpdaterWorkManager
Replace deprecated JobIntentService with WorkManager
Diffstat (limited to 'app/src/main/java/de/danoeh/antennapod/activity')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/activity/WidgetConfigActivity.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/activity/WidgetConfigActivity.java b/app/src/main/java/de/danoeh/antennapod/activity/WidgetConfigActivity.java index 4cf925860..7245ce675 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/WidgetConfigActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/WidgetConfigActivity.java @@ -12,7 +12,7 @@ import androidx.appcompat.app.AppCompatActivity; import de.danoeh.antennapod.R; import de.danoeh.antennapod.core.preferences.UserPreferences; import de.danoeh.antennapod.core.receiver.PlayerWidget; -import de.danoeh.antennapod.core.widget.WidgetUpdaterJobService; +import de.danoeh.antennapod.core.widget.WidgetUpdaterWorker; public class WidgetConfigActivity extends AppCompatActivity { private int appWidgetId = AppWidgetManager.INVALID_APPWIDGET_ID; @@ -109,7 +109,7 @@ public class WidgetConfigActivity extends AppCompatActivity { resultValue.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); setResult(RESULT_OK, resultValue); finish(); - WidgetUpdaterJobService.performBackgroundUpdate(this); + WidgetUpdaterWorker.enqueueWork(this); } private int getColorWithAlpha(int color, int opacity) { |