- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
23 lines
907 B
Java
23 lines
907 B
Java
package androidx.work.impl.background.systemalarm;
|
|
|
|
import android.content.BroadcastReceiver;
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import androidx.work.Logger;
|
|
import androidx.work.impl.WorkManagerImpl;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class RescheduleReceiver extends BroadcastReceiver {
|
|
private static final String TAG = Logger.tagWithPrefix("RescheduleReceiver");
|
|
|
|
@Override // android.content.BroadcastReceiver
|
|
public void onReceive(Context context, Intent intent) {
|
|
Logger.get().debug(TAG, "Received intent " + intent);
|
|
try {
|
|
WorkManagerImpl.getInstance(context).setReschedulePendingResult(goAsync());
|
|
} catch (IllegalStateException e) {
|
|
Logger.get().error(TAG, "Cannot reschedule jobs. WorkManager needs to be initialized via a ContentProvider#onCreate() or an Application#onCreate().", e);
|
|
}
|
|
}
|
|
}
|