jimu-decompiled/sources/com/tencent/open/c/b.java
2025-05-13 19:24:51 +02:00

31 lines
867 B
Java

package com.tencent.open.c;
import android.content.Context;
import android.webkit.WebSettings;
import android.webkit.WebView;
import java.lang.reflect.Method;
/* compiled from: ProGuard */
/* loaded from: classes.dex */
public class b extends WebView {
public b(Context context) {
super(context);
}
@Override // android.webkit.WebView, android.view.ViewGroup, android.view.View
protected void onAttachedToWindow() {
super.onAttachedToWindow();
WebSettings settings = getSettings();
if (settings == null) {
return;
}
try {
Method method = settings.getClass().getMethod("removeJavascriptInterface", String.class);
if (method != null) {
method.invoke(this, "searchBoxJavaBridge_");
}
} catch (Exception unused) {
}
}
}