- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
33 lines
1.2 KiB
Java
33 lines
1.2 KiB
Java
package androidx.work.impl.diagnostics;
|
|
|
|
import android.content.BroadcastReceiver;
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import androidx.annotation.RestrictTo;
|
|
import androidx.work.ListenableWorker;
|
|
import androidx.work.Logger;
|
|
import androidx.work.OneTimeWorkRequest;
|
|
import androidx.work.WorkManager;
|
|
import androidx.work.impl.workers.DiagnosticsWorker;
|
|
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
|
|
/* loaded from: classes.dex */
|
|
public class DiagnosticsReceiver extends BroadcastReceiver {
|
|
private static final String TAG = Logger.tagWithPrefix("DiagnosticsRcvr");
|
|
|
|
@Override // android.content.BroadcastReceiver
|
|
public void onReceive(@NonNull Context context, @Nullable Intent intent) {
|
|
if (intent == null) {
|
|
return;
|
|
}
|
|
Logger.get().debug(TAG, "Requesting diagnostics");
|
|
try {
|
|
WorkManager.getInstance(context).enqueue(OneTimeWorkRequest.from((Class<? extends ListenableWorker>) DiagnosticsWorker.class));
|
|
} catch (IllegalStateException e) {
|
|
Logger.get().error(TAG, "WorkManager is not initialized", e);
|
|
}
|
|
}
|
|
}
|