导航菜单

页面标题

页面副标题

泰剧兔 v1.5.7.0 - SpecialActivity.java 源代码

正在查看: 泰剧兔 v1.5.7.0 应用的 SpecialActivity.java JAVA 源代码文件

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


package com.windmill.sdk.widget;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.FrameLayout;
import androidx.annotation.Nullable;
import com.bytedance.sdk.openadsdk.mediation.MediationConstant;
import com.czhj.sdk.logger.SigmobLog;
import com.windmill.sdk.R;
import com.windmill.sdk.base.WMAdapterError;
import com.windmill.sdk.base.WMLogUtil;
import com.windmill.sdk.custom.IWMCustomSplashEvent;
import com.windmill.sdk.custom.WMCustomSplashAdapter;
import com.windmill.sdk.models.BidPrice;

public class SpecialActivity extends Activity {
    public static FrameLayout a;
    private static a d;
    private IWMCustomSplashEvent c;
    private String b = getClass().getSimpleName();
    private String e = "";
    private boolean f = false;

    public interface a {
        void a();
    }

    @Override
    public void onBackPressed() {
    }

    @Override
    public void onCreate(@Nullable Bundle bundle) {
        super.onCreate(bundle);
        try {
            setTheme(R.style.tobid_page);
            this.e = getIntent().getStringExtra(MediationConstant.KEY_ADN_NAME);
            this.c = new IWMCustomSplashEvent() {
                @Override
                public void callLoadBiddingSuccess(BidPrice bidPrice) {
                }

                @Override
                public void callLoadFail(WMAdapterError wMAdapterError) {
                }

                @Override
                public void callLoadSuccess() {
                }

                @Override
                public void callSplashAdClick() {
                    SigmobLog.i(SpecialActivity.this.b + "-----callSplashAdClick");
                }

                @Override
                public void callSplashAdClosed() {
                    SigmobLog.i(SpecialActivity.this.b + "-----callSplashAdClosed");
                    SpecialActivity.this.finish();
                }

                @Override
                public void callSplashAdShow() {
                    SplashBaseView.context = SpecialActivity.this;
                    WMLogUtil.i("----adnName:  hashcode " + SplashBaseView.context.hashCode());
                    SigmobLog.i(SpecialActivity.this.b + "-----callSplashAdShow");
                }

                @Override
                public void callSplashAdShowError(WMAdapterError wMAdapterError) {
                    SpecialActivity.this.finish();
                }

                @Override
                public void callSplashAdSkipped() {
                    SigmobLog.i(SpecialActivity.this.b + "-----callSplashAdSkipped");
                    SpecialActivity.this.finish();
                }
            };
            if (MediationConstant.ADN_GDT.equals(this.e)) {
                FrameLayout frameLayout = new FrameLayout(this);
                a = frameLayout;
                setContentView(frameLayout);
                a.setTag(this.c);
                WMLogUtil.i("----adnName: GDT");
            } else {
                View view = WMCustomSplashAdapter.aPageVGroup;
                if (view != null) {
                    setContentView(view);
                    WMCustomSplashAdapter.aPageVGroup.setTag(this.c);
                    WMLogUtil.i("----adnName:name:  " + this.e);
                } else {
                    finish();
                }
            }
        } catch (Exception unused) {
            finish();
        }
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        try {
            FrameLayout frameLayout = a;
            if (frameLayout != null) {
                frameLayout.setTag("");
                a = null;
            }
            if (d != null) {
                d = null;
            }
            FrameLayout frameLayout2 = WMCustomSplashAdapter.aPageVGroup;
            if (frameLayout2 != null) {
                frameLayout2.setTag("");
                WMCustomSplashAdapter.aPageVGroup = null;
            }
        } catch (Exception unused) {
        }
    }

    @Override
    public void onResume() {
        super.onResume();
        try {
            setTheme(R.style.tobid_page);
            a aVar = d;
            if (aVar == null || this.f) {
                return;
            }
            aVar.a();
            this.f = true;
        } catch (Exception unused) {
        }
    }

    public static void a(a aVar) {
        d = aVar;
    }
}