Currency Plus v2.10.8版本的 MD5 值为:8586f74edd9ace5aa261a19c9da51484
以下内容为反编译后的 FyberReportAdActivity.java 源代码,内容仅作参考
package com.fyber.inneractive.sdk.activities;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.ViewGroup;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.widget.FrameLayout;
import com.fyber.inneractive.sdk.R;
import com.fyber.inneractive.sdk.util.IAlog;
import com.fyber.inneractive.sdk.util.u;
public class FyberReportAdActivity extends Activity {
public static com.fyber.inneractive.sdk.flow.f f9121b;
public WebView f9122a;
public static void disableWebviewZoomControls(WebView webView) {
webView.getSettings().setSupportZoom(true);
webView.getSettings().setBuiltInZoomControls(true);
webView.getSettings().setDisplayZoomControls(false);
}
public static com.fyber.inneractive.sdk.flow.f getAdReporter() {
return f9121b;
}
public static void start(Context context, com.fyber.inneractive.sdk.flow.f fVar) {
f9121b = fVar;
try {
Intent intent = new Intent(context, FyberReportAdActivity.class);
if (!(context instanceof Activity)) {
intent.addFlags(268435456);
}
context.startActivity(intent);
} catch (Exception e10) {
IAlog.a("failed starting fyber report ad activity", e10, new Object[0]);
}
}
public final ViewGroup a() {
WebView webView;
FrameLayout frameLayout = new FrameLayout(this);
try {
webView = new WebView(this);
webView.setWebViewClient(new a(this));
webView.setId(R.id.inneractive_webview_report_ad);
WebSettings settings = webView.getSettings();
settings.setJavaScriptEnabled(true);
settings.setSupportZoom(true);
settings.setBuiltInZoomControls(true);
settings.setUseWideViewPort(true);
settings.setLoadWithOverviewMode(true);
disableWebviewZoomControls(webView);
webView.loadUrl("https://cdn2.inner-active.mobi/client/fyber-i-icon/index.html");
} catch (Exception unused) {
IAlog.b("failed creating webivew for report ad", new Object[0]);
finish();
webView = null;
}
this.f9122a = webView;
frameLayout.addView(webView, -1, -1);
return frameLayout;
}
@Override
public void onCreate(Bundle bundle) {
getWindow().requestFeature(2);
getWindow().setFeatureInt(2, -1);
super.onCreate(bundle);
try {
setContentView(a());
} catch (Exception e10) {
IAlog.a("failed creating fyber report ad activity", e10, new Object[0]);
finish();
}
}
@Override
public void onDestroy() {
WebView webView = this.f9122a;
if (webView != null) {
u.a(webView);
this.f9122a.destroy();
this.f9122a = null;
}
f9121b = null;
super.onDestroy();
}
@Override
public void onDetachedFromWindow() {
super.onDetachedFromWindow();
setVisible(false);
}
}