GoooBet v1.0版本的 MD5 值为:ff9748f16167bfd7735b669c0a9931c5
以下内容为反编译后的 CriteoInterstitialActivity.java 源代码,内容仅作参考
package com.criteo.publisher;
import android.app.Activity;
import android.content.ComponentName;
import android.os.Bundle;
import android.os.ResultReceiver;
import android.view.View;
import android.webkit.WebView;
import android.widget.FrameLayout;
import android.widget.ImageButton;
import com.explorestack.protobuf.openrtb.LossReason;
import com.google.android.exoplayer2.C;
import java.lang.ref.WeakReference;
public class CriteoInterstitialActivity extends Activity {
private final com.criteo.publisher.logging.g f2532a = com.criteo.publisher.logging.h.b(getClass());
private WebView b;
private ResultReceiver c;
private FrameLayout d;
private ComponentName e;
@Override
protected void onCreate(Bundle bundle) {
try {
super.onCreate(bundle);
c();
} catch (Throwable th) {
this.f2532a.a(u.b(th));
finish();
}
}
private void c() {
setContentView(R.layout.activity_criteo_interstitial);
this.d = (FrameLayout) findViewById(R.id.AdLayout);
WebView webView = new WebView(getApplicationContext());
this.b = webView;
this.d.addView(webView, 0);
ImageButton imageButton = (ImageButton) findViewById(R.id.closeButton);
Bundle extras = getIntent().getExtras();
if (extras != null && extras.getString("webviewdata") != null) {
String string = extras.getString("webviewdata");
this.c = (ResultReceiver) extras.getParcelable("resultreceiver");
this.e = (ComponentName) extras.getParcelable("callingactivity");
d();
a(string);
}
imageButton.setOnClickListener(new a());
}
public class a implements View.OnClickListener {
a() {
}
@Override
public void onClick(View view) {
CriteoInterstitialActivity.this.b();
}
}
public void b() {
Bundle bundle = new Bundle();
bundle.putInt("Action", LossReason.LOSS_REASON_CREATIVE_FILTERED_PENDING_PROCESSING_VALUE);
this.c.send(100, bundle);
finish();
}
public void a() {
Bundle bundle = new Bundle();
bundle.putInt("Action", LossReason.LOSS_REASON_CREATIVE_FILTERED_DISAPPROVED_VALUE);
this.c.send(100, bundle);
finish();
}
@Override
protected void onDestroy() {
super.onDestroy();
this.d.removeAllViews();
this.b.destroy();
this.b = null;
}
private void a(String str) {
this.b.loadDataWithBaseURL("https://criteo.com", str, "text/html", C.UTF8_NAME, "about:blank");
}
private void d() {
this.b.getSettings().setJavaScriptEnabled(true);
this.b.setWebViewClient(new com.criteo.publisher.a0.a(new b(new WeakReference(this), null), this.e));
}
@Override
public void onBackPressed() {
b();
}
public static class b implements com.criteo.publisher.a0.c {
private final WeakReference<CriteoInterstitialActivity> f2534a;
b(WeakReference weakReference, a aVar) {
this(weakReference);
}
private b(WeakReference<CriteoInterstitialActivity> weakReference) {
this.f2534a = weakReference;
}
@Override
public void b() {
CriteoInterstitialActivity criteoInterstitialActivity = this.f2534a.get();
if (criteoInterstitialActivity != null) {
criteoInterstitialActivity.a();
}
}
@Override
public void a() {
CriteoInterstitialActivity criteoInterstitialActivity = this.f2534a.get();
if (criteoInterstitialActivity != null) {
criteoInterstitialActivity.b();
}
}
}
}