|
|
@ -53,7 +53,8 @@ public class WorkerWatchdog extends Worker {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
|
|
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
|
|
|
boolean watchdog = prefs.getBoolean("watchdog", true);
|
|
|
|
boolean watchdog = prefs.getBoolean("watchdog", true);
|
|
|
|
if (watchdog) {
|
|
|
|
boolean enabled = prefs.getBoolean("enabled", true);
|
|
|
|
|
|
|
|
if (watchdog && enabled) {
|
|
|
|
Log.i("Queuing " + getName() + " every " + WATCHDOG_INTERVAL + " minutes");
|
|
|
|
Log.i("Queuing " + getName() + " every " + WATCHDOG_INTERVAL + " minutes");
|
|
|
|
|
|
|
|
|
|
|
|
PeriodicWorkRequest workRequest =
|
|
|
|
PeriodicWorkRequest workRequest =
|
|
|
|