mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-14 01:47:17 +01:00
45 lines
1.4 KiB
Java
45 lines
1.4 KiB
Java
package androidx.webkit;
|
|
|
|
import androidx.webkit.WebViewCompat;
|
|
import java.util.concurrent.Executor;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@WebViewCompat.ExperimentalAsyncStartUp
|
|
/* loaded from: classes14.dex */
|
|
public final class WebViewStartUpConfig {
|
|
private final Executor mExecutor;
|
|
private final boolean mShouldRunUiThreadStartUpTasks;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@WebViewCompat.ExperimentalAsyncStartUp
|
|
public static final class Builder {
|
|
private final Executor mExecutor;
|
|
private boolean mShouldRunUiThreadStartUpTasks = true;
|
|
|
|
public Builder(Executor executor) {
|
|
this.mExecutor = executor;
|
|
}
|
|
|
|
public WebViewStartUpConfig build() {
|
|
return new WebViewStartUpConfig(this.mExecutor, this.mShouldRunUiThreadStartUpTasks);
|
|
}
|
|
|
|
public Builder setShouldRunUiThreadStartUpTasks(boolean z) {
|
|
this.mShouldRunUiThreadStartUpTasks = z;
|
|
return this;
|
|
}
|
|
}
|
|
|
|
private WebViewStartUpConfig(Executor executor, boolean z) {
|
|
this.mExecutor = executor;
|
|
this.mShouldRunUiThreadStartUpTasks = z;
|
|
}
|
|
|
|
public Executor getBackgroundExecutor() {
|
|
return this.mExecutor;
|
|
}
|
|
|
|
public boolean shouldRunUiThreadStartUpTasks() {
|
|
return this.mShouldRunUiThreadStartUpTasks;
|
|
}
|
|
}
|