- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
42 lines
1.2 KiB
Java
42 lines
1.2 KiB
Java
package com.tapjoy;
|
|
|
|
import android.annotation.SuppressLint;
|
|
import android.content.Context;
|
|
import android.util.AttributeSet;
|
|
import android.view.GestureDetector;
|
|
import android.view.ViewGroup;
|
|
import android.webkit.WebView;
|
|
import com.tapjoy.internal.m2;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public class TJWebView extends WebView {
|
|
@SuppressLint({"SetJavaScriptEnabled"})
|
|
public TJWebView(Context context) {
|
|
super(context);
|
|
setScrollContainer(false);
|
|
setVerticalScrollBarEnabled(false);
|
|
setHorizontalScrollBarEnabled(false);
|
|
new GestureDetector(new m2());
|
|
if (getSettings() != null) {
|
|
getSettings().setJavaScriptEnabled(true);
|
|
getSettings().setDomStorageEnabled(true);
|
|
getSettings().setMediaPlaybackRequiresUserGesture(false);
|
|
}
|
|
setBackgroundColor(0);
|
|
}
|
|
|
|
@Override // android.webkit.WebView
|
|
public void destroy() {
|
|
removeAllViews();
|
|
ViewGroup viewGroup = (ViewGroup) getParent();
|
|
if (viewGroup != null) {
|
|
viewGroup.removeView(this);
|
|
}
|
|
super.destroy();
|
|
}
|
|
|
|
public TJWebView(Context context, AttributeSet attributeSet) {
|
|
super(context, attributeSet);
|
|
}
|
|
}
|