Files
rr3-apk/decompiled/sources/androidx/work/impl/utils/StopWorkRunnable.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

45 lines
1.7 KiB
Java

package androidx.work.impl.utils;
import androidx.annotation.RestrictTo;
import androidx.work.Logger;
import androidx.work.WorkInfo;
import androidx.work.impl.Processor;
import androidx.work.impl.StartStopToken;
import kotlin.jvm.internal.Intrinsics;
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
/* loaded from: classes.dex */
public final class StopWorkRunnable implements Runnable {
private final Processor processor;
private final int reason;
private final boolean stopInForeground;
private final StartStopToken token;
public StopWorkRunnable(Processor processor, StartStopToken token, boolean z, int i) {
Intrinsics.checkNotNullParameter(processor, "processor");
Intrinsics.checkNotNullParameter(token, "token");
this.processor = processor;
this.token = token;
this.stopInForeground = z;
this.reason = i;
}
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
public StopWorkRunnable(Processor processor, StartStopToken token, boolean z) {
this(processor, token, z, WorkInfo.STOP_REASON_UNKNOWN);
Intrinsics.checkNotNullParameter(processor, "processor");
Intrinsics.checkNotNullParameter(token, "token");
}
@Override // java.lang.Runnable
public void run() {
boolean stopWork;
if (this.stopInForeground) {
stopWork = this.processor.stopForegroundWork(this.token, this.reason);
} else {
stopWork = this.processor.stopWork(this.token, this.reason);
}
Logger.get().debug(Logger.tagWithPrefix("StopWorkRunnable"), "StopWorkRunnable for " + this.token.getId().getWorkSpecId() + "; Processor.stopWork = " + stopWork);
}
}