导航菜单

页面标题

页面副标题

OLX India v19.42.007 - DTBInterstitialActivity.java 源代码

正在查看: OLX India v19.42.007 应用的 DTBInterstitialActivity.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.amazon.device.ads;

import android.app.Activity;
import android.os.Bundle;
import android.widget.RelativeLayout;
import java.lang.ref.WeakReference;

public class DTBInterstitialActivity extends Activity {
    private static final String c = "DTBInterstitialActivity";
    WeakReference a;
    private int b;

    void a(o oVar) {
        if (d(oVar)) {
            throw null;
        }
    }

    o b() {
        WeakReference weakReference = this.a;
        if (weakReference != null) {
            android.support.v4.media.session.b.a(weakReference.get());
        }
        return null;
    }

    protected boolean c() {
        b();
        if (d(null)) {
            b();
            throw null;
        }
        String str = c;
        StringBuilder sb = new StringBuilder();
        sb.append("Failed to get use custom close , due to ");
        sb.append((Object) null);
        k0.k(str, sb.toString() == null ? "null DTBInterstitial instance" : "null AdView/Controller instance");
        return false;
    }

    boolean d(o oVar) {
        return false;
    }

    @Override
    public void onBackPressed() {
        try {
            if (c()) {
                return;
            }
            b();
            a(null);
        } catch (RuntimeException e) {
            com.amazon.aps.shared.a.k(com.amazon.aps.shared.analytics.b.ERROR, com.amazon.aps.shared.analytics.c.EXCEPTION, "Fail to execute onBackPressed method", e);
        }
    }

    @Override
    protected void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        try {
            requestWindowFeature(1);
            getWindow().setFlags(1024, 1024);
            setContentView(com.amazon.aps.ads.h.mdtb_interstitial_ad);
            if (getIntent() != null) {
                int intExtra = getIntent().getIntExtra("INTERSTITIAL_CACHE_KEY", 0);
                this.b = intExtra;
                f.a(intExtra);
            }
            com.amazon.aps.shared.a.j(com.amazon.aps.shared.analytics.b.FATAL, com.amazon.aps.shared.analytics.c.LOG, "DTBInterstitialActivity is invoked with the cache data null");
            finish();
        } catch (RuntimeException e) {
            com.amazon.aps.shared.a.k(com.amazon.aps.shared.analytics.b.FATAL, com.amazon.aps.shared.analytics.c.EXCEPTION, "Fail to create DTBInterstitial Activity", e);
            finish();
        }
    }

    @Override
    protected void onDestroy() {
        try {
            RelativeLayout relativeLayout = (RelativeLayout) findViewById(com.amazon.aps.ads.g.inter_container);
            if (relativeLayout != null) {
                b();
                relativeLayout.removeView(null);
            }
            b();
        } catch (RuntimeException e) {
            com.amazon.aps.shared.a.k(com.amazon.aps.shared.analytics.b.FATAL, com.amazon.aps.shared.analytics.c.EXCEPTION, "Failed to remove DTBAdView on Activity Destroy", e);
        }
        super.onDestroy();
    }
}