- 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
49 lines
1.2 KiB
Java
49 lines
1.2 KiB
Java
package com.helpshift.views;
|
|
|
|
import android.content.Context;
|
|
import android.util.AttributeSet;
|
|
import android.webkit.WebSettings;
|
|
import android.webkit.WebView;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public class HSWebView extends WebView {
|
|
public HSWebView(Context context, AttributeSet attributeSet) {
|
|
super(context, attributeSet);
|
|
init();
|
|
}
|
|
|
|
public HSWebView(Context context, AttributeSet attributeSet, int i) {
|
|
super(context, attributeSet, i);
|
|
init();
|
|
}
|
|
|
|
public HSWebView(Context context) {
|
|
super(context);
|
|
init();
|
|
}
|
|
|
|
public final void init() {
|
|
if (isInEditMode()) {
|
|
return;
|
|
}
|
|
configureWebView();
|
|
}
|
|
|
|
public final void configureWebView() {
|
|
WebSettings settings = getSettings();
|
|
settings.setJavaScriptEnabled(true);
|
|
settings.setJavaScriptCanOpenWindowsAutomatically(true);
|
|
settings.setSupportMultipleWindows(true);
|
|
settings.setDomStorageEnabled(true);
|
|
settings.setMixedContentMode(2);
|
|
settings.setCacheMode(2);
|
|
settings.setAllowFileAccess(true);
|
|
setLayerType(2, null);
|
|
}
|
|
|
|
public void destroyCustomWebview() {
|
|
removeAllViews();
|
|
destroy();
|
|
}
|
|
}
|