正在查看: Jurassic World v1.83.4 应用的 TJWebViewActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Jurassic World v1.83.4 应用的 TJWebViewActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.tapjoy;
import android.content.Context;
import android.content.res.Configuration;
import android.os.Bundle;
import android.os.Handler;
import android.os.PersistableBundle;
import android.view.View;
import android.webkit.WebView;
import com.tapjoy.TJAdUnitConstants;
import com.tapjoy.internal.e5;
import com.tapjoy.internal.f4;
import com.unity3d.ads.adplayer.AndroidWebViewClient;
import java.util.HashMap;
import java.util.Map;
public class TJWebViewActivity extends TJActivity {
public View f;
public TJWebView g;
public TJAdUnitJSBridge h;
public class BridgeDelegate extends TJJSBridgeDelegate {
public BridgeDelegate() {
}
@Override
public boolean dismiss() {
super.dismiss();
TJWebViewActivity.this.finish();
return true;
}
@Override
public boolean fireContentReady() {
super.fireContentReady();
TJWebViewActivity.this.setProgressSpinnerVisibility(false);
return true;
}
@Override
public Context getContext() {
return TJWebViewActivity.this;
}
@Override
public Map<String, Object> getOrientation() {
HashMap hashMap = new HashMap();
int b = f4.b(TJWebViewActivity.this);
int a = f4.a(TJWebViewActivity.this);
hashMap.put("orientation", b > a ? "landscape" : "portrait");
hashMap.put("width", Integer.valueOf(b));
hashMap.put("height", Integer.valueOf(a));
return hashMap;
}
@Override
public void getTextZoom(TJTaskHandler<Float> tJTaskHandler) {
TapjoyUtil.runOnMainThread(new b0(this, tJTaskHandler));
}
@Override
public WebView getWebView() {
return TJWebViewActivity.this.g;
}
@Override
public void setBackgroundColor(String str, TJTaskHandler<Boolean> tJTaskHandler) {
TapjoyUtil.runOnMainThread(new y(this, str, tJTaskHandler));
}
@Override
public void setCloseButtonClickable(boolean z) {
super.setCloseButtonClickable(z);
TapjoyUtil.runOnMainThread(new a0(this, z));
}
@Override
public void setCloseButtonVisible(boolean z) {
super.setCloseButtonVisible(z);
TapjoyUtil.runOnMainThread(new z(this, z));
}
@Override
public boolean setOrientation(int i) {
TJWebViewActivity.this.setRequestedOrientation(i);
return true;
}
@Override
public void setTextZoom(float f) {
TapjoyUtil.runOnMainThread(new c0(this, f));
}
@Override
public void shouldClose(boolean z) {
if (z) {
TJWebViewActivity.this.finish();
}
}
@Override
public boolean unsetOrientation() {
TJWebViewActivity.this.setRequestedOrientation(-1);
return true;
}
}
@Override
public final void a() {
TJAdUnitJSBridge tJAdUnitJSBridge = this.h;
if (tJAdUnitJSBridge == null || tJAdUnitJSBridge.closeRequested) {
return;
}
TapjoyLog.d("TJWebViewActivity", TJAdUnitConstants.String.CLOSE_REQUESTED);
this.h.closeRequested(Boolean.FALSE);
new Handler(getMainLooper()).postDelayed(new e5(this), 1000L);
}
@Override
public void onConfigurationChanged(Configuration configuration) {
super.onConfigurationChanged(configuration);
if (this.h != null) {
int b = f4.b(this);
int a = f4.a(this);
this.h.notifyOrientationChanged(b > a ? "landscape" : "portrait", b, a);
}
}
@Override
public final void onCreate(android.os.Bundle r13) {
throw new UnsupportedOperationException("Method not decompiled: com.tapjoy.TJWebViewActivity.onCreate(android.os.Bundle):void");
}
@Override
public final void onDestroy() {
this.a.removeAllViews();
TJWebView tJWebView = this.g;
if (tJWebView != null) {
tJWebView.loadUrl(AndroidWebViewClient.BLANK_PAGE);
this.g.destroy();
this.g = null;
}
TJAdUnitJSBridge tJAdUnitJSBridge = this.h;
if (tJAdUnitJSBridge != null) {
tJAdUnitJSBridge.destroy();
this.h = null;
}
super.onDestroy();
}
@Override
public final void onPause() {
super.onPause();
TJWebView tJWebView = this.g;
if (tJWebView != null) {
tJWebView.onPause();
}
TJAdUnitJSBridge tJAdUnitJSBridge = this.h;
if (tJAdUnitJSBridge != null) {
tJAdUnitJSBridge.setEnabled(false);
this.h.pause();
}
}
@Override
public final void onResume() {
super.onResume();
TJWebView tJWebView = this.g;
if (tJWebView != null) {
tJWebView.onResume();
}
TJAdUnitJSBridge tJAdUnitJSBridge = this.h;
if (tJAdUnitJSBridge != null) {
tJAdUnitJSBridge.setEnabled(true);
this.h.resume();
}
}
@Override
public final void onStart() {
super.onStart();
}
@Override
public final void onStop() {
super.onStop();
}
public final boolean a(java.lang.String r7) {
throw new UnsupportedOperationException("Method not decompiled: com.tapjoy.TJWebViewActivity.a(java.lang.String):boolean");
}
@Override
public void onCreate(Bundle bundle, PersistableBundle persistableBundle) {
super.onCreate(bundle, persistableBundle);
}
}