diff options
author | TacoTheDank <SkytkRSfan3895@gmail.com> | 2022-02-23 11:39:37 -0500 |
---|---|---|
committer | TacoTheDank <SkytkRSfan3895@gmail.com> | 2022-02-23 11:39:37 -0500 |
commit | 149a1532cd6cafdc53de5ab740c27fe771b614f6 (patch) | |
tree | 837ec4644a9e136ef8a38363f1ce1c8164f306e8 /app/src/main | |
parent | 449f1ca3393fa3a7f0a3a2ce14644673bc70c7e3 (diff) | |
download | AntennaPod-149a1532cd6cafdc53de5ab740c27fe771b614f6.zip |
Replace deprecated JobIntentService with WorkManager
Diffstat (limited to 'app/src/main')
-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 674071294..2d2fd643b 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) { |