- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
47 lines
1.3 KiB
Java
47 lines
1.3 KiB
Java
package androidx.webkit.internal;
|
|
|
|
import android.content.pm.PackageInfo;
|
|
import android.webkit.WebChromeClient;
|
|
import android.webkit.WebSettings;
|
|
import android.webkit.WebView;
|
|
import android.webkit.WebViewClient;
|
|
import androidx.annotation.DoNotInline;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import androidx.annotation.RequiresApi;
|
|
|
|
@RequiresApi(26)
|
|
/* loaded from: classes.dex */
|
|
public class ApiHelperForO {
|
|
private ApiHelperForO() {
|
|
}
|
|
|
|
@DoNotInline
|
|
public static void setSafeBrowsingEnabled(@NonNull WebSettings webSettings, boolean z) {
|
|
webSettings.setSafeBrowsingEnabled(z);
|
|
}
|
|
|
|
@DoNotInline
|
|
public static boolean getSafeBrowsingEnabled(@NonNull WebSettings webSettings) {
|
|
return webSettings.getSafeBrowsingEnabled();
|
|
}
|
|
|
|
@Nullable
|
|
@DoNotInline
|
|
public static WebViewClient getWebViewClient(@NonNull WebView webView) {
|
|
return webView.getWebViewClient();
|
|
}
|
|
|
|
@Nullable
|
|
@DoNotInline
|
|
public static WebChromeClient getWebChromeClient(@NonNull WebView webView) {
|
|
return webView.getWebChromeClient();
|
|
}
|
|
|
|
@NonNull
|
|
@DoNotInline
|
|
public static PackageInfo getCurrentWebViewPackage() {
|
|
return WebView.getCurrentWebViewPackage();
|
|
}
|
|
}
|