Apk Done v1.0版本的 MD5 值为:44cfb8e1ce639995aa7f0de6a3a6388b

以下内容为反编译后的 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 java.lang.ref.WeakReference;
public class CriteoInterstitialActivity extends Activity {
    private final com.criteo.publisher.logging.g a = 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.a.a(v.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", "UTF-8", "about:blank");
    }

    private void d() {
        this.b.getSettings().setJavaScriptEnabled(true);
        this.b.setWebViewClient(new com.criteo.publisher.b0.a(new b(new WeakReference(this), null), this.e));
    }

    @Override
    public void onBackPressed() {
        b();
    }

    public static class b implements com.criteo.publisher.b0.c {
        private final WeakReference<CriteoInterstitialActivity> a;

        b(WeakReference weakReference, a aVar) {
            this(weakReference);
        }

        private b(WeakReference<CriteoInterstitialActivity> weakReference) {
            this.a = weakReference;
        }

        @Override
        public void b() {
            CriteoInterstitialActivity criteoInterstitialActivity = this.a.get();
            if (criteoInterstitialActivity != null) {
                criteoInterstitialActivity.a();
            }
        }

        @Override
        public void a() {
            CriteoInterstitialActivity criteoInterstitialActivity = this.a.get();
            if (criteoInterstitialActivity != null) {
                criteoInterstitialActivity.b();
            }
        }
    }
}