花瓣 v4.6.12版本的 MD5 值为:6a3515d4d16d98931f1b3d25a91b257e

以下内容为反编译后的 PangleSplashAdapter.java 源代码,内容仅作参考


package com.bytedance.msdk.adapter.pangle;

import android.app.Activity;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewParent;
import androidx.annotation.MainThread;
import com.bytedance.JProtect;
import com.bytedance.msdk.adapter.TTAbsAdLoaderAdapter;
import com.bytedance.msdk.adapter.ad.GMSplashBaseAdapter;
import com.bytedance.msdk.adapter.listener.ITTAdapterSplashAdListener;
import com.bytedance.msdk.adapter.util.Logger;
import com.bytedance.msdk.adapter.util.TTLogUtil;
import com.bytedance.msdk.adapter.util.UIUtils;
import com.bytedance.msdk.api.AdError;
import com.bytedance.msdk.api.TTRequestExtraParams;
import com.bytedance.msdk.base.TTBaseAd;
import com.bytedance.sdk.openadsdk.AdSlot;
import com.bytedance.sdk.openadsdk.CSJAdError;
import com.bytedance.sdk.openadsdk.CSJSplashAd;
import com.bytedance.sdk.openadsdk.ISplashCardListener;
import com.bytedance.sdk.openadsdk.ISplashClickEyeListener;
import com.bytedance.sdk.openadsdk.TTAdNative;
import com.bytedance.sdk.openadsdk.TTAdSdk;
import com.bytedance.sdk.openadsdk.TTSplashAd;
import java.util.HashMap;
import java.util.Map;
public class PangleSplashAdapter extends GMSplashBaseAdapter {
    public static final String VERSION_00 = "0.0";
    public static final String VERSION_4712 = "4.7.1.2";
    private int A = 3000;
    private PangleSplashAd B;
    private Context z;

    class PangleSplashAd extends TTBaseAd {
        private TTSplashAd a;
        private CSJSplashAd b;
        boolean c;

        PangleSplashAd() {
        }

        private void e(TTAdNative tTAdNative, AdSlot adSlot) {
            tTAdNative.loadSplashAd(adSlot, new TTAdNative.CSJSplashAdListener() {
                @Override
                @MainThread
                @JProtect
                public void onSplashLoadFail(CSJAdError cSJAdError) {
                    Logger.e("TTMediationSDK", "new api onSplashLoadFail");
                    if (cSJAdError != null) {
                        PangleSplashAdapter.this.notifyAdFailed(new AdError(cSJAdError.getCode(), cSJAdError.getMsg()));
                    } else {
                        PangleSplashAdapter.this.notifyAdFailed(new AdError("csjAdError is null"));
                    }
                }

                @Override
                @MainThread
                @JProtect
                public void onSplashLoadSuccess() {
                    while (true) {
                        char c = '^';
                        char c2 = 'K';
                        while (true) {
                            switch (c) {
                                case '\\':
                                    switch (c2) {
                                        case 21:
                                            Logger.e("TTMediationSDK", "new api onSplashLoadSuccess");
                                            c = ']';
                                            c2 = ']';
                                        case 22:
                                        case 23:
                                            return;
                                    }
                                    break;
                                case ']':
                                    break;
                                case '^':
                                    if (c2 <= 4) {
                                        c = ']';
                                        c2 = ']';
                                    }
                                    Logger.e("TTMediationSDK", "new api onSplashLoadSuccess");
                                    c = ']';
                                    c2 = ']';
                                default:
                                    c = ']';
                                    c2 = ']';
                            }
                            while (true) {
                                switch (c2) {
                                    case '[':
                                        break;
                                    case '\\':
                                        break;
                                    case ']':
                                        return;
                                    default:
                                        c2 = '[';
                                }
                            }
                            Logger.e("TTMediationSDK", "new api onSplashLoadSuccess");
                            c = ']';
                            c2 = ']';
                        }
                    }
                }

                @Override
                @MainThread
                @JProtect
                public void onSplashRenderFail(CSJSplashAd cSJSplashAd, CSJAdError cSJAdError) {
                    Logger.e("TTMediationSDK", "new api onSplashRenderFail");
                    PangleSplashAdapter pangleSplashAdapter = PangleSplashAdapter.this;
                    if (cSJAdError != null) {
                        pangleSplashAdapter.notifyAdFailed(new AdError(cSJAdError.getCode(), cSJAdError.getMsg()));
                    } else {
                        pangleSplashAdapter.notifyAdFailed(new AdError("csjAdError is null"));
                    }
                }

                @Override
                @MainThread
                @JProtect
                public void onSplashRenderSuccess(CSJSplashAd cSJSplashAd) {
                    Map<String, Object> mediaExtraInfo;
                    Logger.e("TTMediationSDK", "new api onSplashRenderSuccess");
                    if (cSJSplashAd != null) {
                        PangleSplashAd.this.b = cSJSplashAd;
                        PangleSplashAd.this.setExpressAd(true);
                        PangleSplashAd pangleSplashAd = PangleSplashAd.this;
                        pangleSplashAd.setInteractionType(pangleSplashAd.b.getInteractionType());
                        if (PangleSplashAdapter.this.isClientBidding() && (mediaExtraInfo = PangleSplashAd.this.b.getMediaExtraInfo()) != null) {
                            double value = PangleAdapterUtils.getValue(mediaExtraInfo.get("price"));
                            Logger.d("TTMediationSDK_ECMP", TTLogUtil.getTagThirdLevelById(PangleSplashAdapter.this.getAdapterRit(), PangleSplashAdapter.this.getAdSlotId()) + "pangle Splash 返回的 cpm价格:" + value);
                            PangleSplashAd pangleSplashAd2 = PangleSplashAd.this;
                            if (value <= PangleAdapterUtils.CPM_DEFLAUT_VALUE) {
                                value = 0.0d;
                            }
                            pangleSplashAd2.setCpm(value);
                        }
                        PangleSplashAd.this.b.setSplashAdListener(new CSJSplashAd.SplashAdListener() {
                            @Override
                            public void onSplashAdClick(CSJSplashAd cSJSplashAd2) {
                                Logger.e("TTMediationSDK", "new api onSplashAdClick");
                                if (((TTBaseAd) PangleSplashAd.this).mTTAdatperCallback instanceof ITTAdapterSplashAdListener) {
                                    PangleSplashAd.this.f().onAdClicked();
                                }
                            }

                            @Override
                            public void onSplashAdClose(CSJSplashAd cSJSplashAd2, int i2) {
                                Logger.e("TTMediationSDK", "new api onSplashAdClose closeType = " + i2);
                                if (i2 == 1 || i2 == 3) {
                                    if (((TTBaseAd) PangleSplashAd.this).mTTAdatperCallback instanceof ITTAdapterSplashAdListener) {
                                        PangleSplashAd.this.f().onAdSkip();
                                    }
                                } else if (((TTBaseAd) PangleSplashAd.this).mTTAdatperCallback instanceof ITTAdapterSplashAdListener) {
                                    PangleSplashAd.this.f().onAdDismiss();
                                }
                            }

                            @Override
                            public void onSplashAdShow(CSJSplashAd cSJSplashAd2) {
                                Logger.e("TTMediationSDK", "new api onSplashAdShow");
                                if (((TTBaseAd) PangleSplashAd.this).mTTAdatperCallback instanceof ITTAdapterSplashAdListener) {
                                    PangleSplashAd.this.f().onAdShow();
                                }
                            }
                        });
                        PangleSplashAd.this.b.setSplashCardListener(new CSJSplashAd.SplashCardListener() {
                            @Override
                            public void onSplashCardClick() {
                                Logger.e("TTMediationSDK", "new api onSplashCardClick");
                                try {
                                    if (((TTBaseAd) PangleSplashAd.this).mTTAdatperCallback instanceof ITTAdapterSplashAdListener) {
                                        PangleSplashAd.this.f().onSplashCardClick();
                                    }
                                } catch (Throwable th) {
                                    th.printStackTrace();
                                }
                            }

                            @Override
                            public void onSplashCardClose() {
                                Logger.e("TTMediationSDK", "new api onSplashCardClose");
                                if (((TTBaseAd) PangleSplashAd.this).mTTAdatperCallback instanceof ITTAdapterSplashAdListener) {
                                    PangleSplashAd.this.f().onSplashClickEyeClose();
                                }
                            }

                            @Override
                            public void onSplashCardReadyToShow(CSJSplashAd cSJSplashAd2) {
                                Logger.e("TTMediationSDK", "new api onSplashCardReadyToShow");
                                Logger.e("TTMediationSDK", "new api onSplashCardReadyToShow csjSplashAd.getSplashCardView()" + cSJSplashAd2.getSplashCardView());
                                if (((TTBaseAd) PangleSplashAd.this).mTTAdatperCallback instanceof ITTAdapterSplashAdListener) {
                                    PangleSplashAd.this.f().setSupportSplashClickEye(true);
                                }
                                if (((TTBaseAd) PangleSplashAd.this).mTTAdatperCallback instanceof ITTAdapterSplashAdListener) {
                                    PangleSplashAd.this.f().onSplashEyeReady();
                                }
                            }
                        });
                        PangleSplashAd.this.b.setSplashClickEyeListener(new CSJSplashAd.SplashClickEyeListener() {
                            @Override
                            public void onSplashClickEyeClick() {
                                Logger.e("TTMediationSDK", "new api onSplashClickEyeClick");
                                if (((TTBaseAd) PangleSplashAd.this).mTTAdatperCallback instanceof ITTAdapterSplashAdListener) {
                                    PangleSplashAd.this.f().onSplashClickEyeClick();
                                }
                            }

                            @Override
                            public void onSplashClickEyeClose() {
                                Logger.e("TTMediationSDK", "new api onSplashClickEyeClose");
                                if (((TTBaseAd) PangleSplashAd.this).mTTAdatperCallback instanceof ITTAdapterSplashAdListener) {
                                    PangleSplashAd.this.f().onMinWindowPlayFinish();
                                }
                            }

                            @Override
                            public void onSplashClickEyeReadyToShow(CSJSplashAd cSJSplashAd2) {
                                Logger.e("TTMediationSDK", "new api onSplashClickEyeReadyToShow");
                                PangleSplashAd pangleSplashAd3 = PangleSplashAd.this;
                                pangleSplashAd3.c = true;
                                if (((TTBaseAd) pangleSplashAd3).mTTAdatperCallback instanceof ITTAdapterSplashAdListener) {
                                    PangleSplashAd.this.f().onMinWindowStart();
                                }
                            }
                        });
                        PangleSplashAd pangleSplashAd3 = PangleSplashAd.this;
                        PangleSplashAdapter.this.notifyAdLoaded(pangleSplashAd3);
                        return;
                    }
                    PangleSplashAdapter.this.notifyAdFailed(new AdError(AdError.ERROR_MEDIA_REQUEST_SUCCESS_NO_ADS_MSG));
                    char c = '\n';
                    while (true) {
                        switch (c) {
                            case '\n':
                            case '\f':
                                c = 11;
                            case 11:
                                return;
                            default:
                                c = '\f';
                        }
                    }
                }
            }, PangleSplashAdapter.this.A);
        }

        @JProtect
        public ITTAdapterSplashAdListener f() {
            while (true) {
                char c = '^';
                char c2 = 'K';
                while (true) {
                    if (c == '\\') {
                        switch (c2) {
                            case 21:
                                c = ']';
                                c2 = ']';
                        }
                        while (true) {
                            switch (c2) {
                            }
                        }
                        c = ']';
                        c2 = ']';
                    } else if (c != ']') {
                        continue;
                        c = ']';
                        c2 = ']';
                    } else {
                        while (true) {
                            switch (c2) {
                                case '[':
                                    break;
                                case '\\':
                                    break;
                                case ']':
                                    break;
                                default:
                                    c2 = '[';
                            }
                        }
                        c = ']';
                        c2 = ']';
                    }
                }
            }
            return (ITTAdapterSplashAdListener) this.mTTAdatperCallback;
        }

        private void h(TTAdNative tTAdNative, AdSlot adSlot) {
            tTAdNative.loadSplashAd(adSlot, new TTAdNative.SplashAdListener() {
                @Override
                @androidx.annotation.MainThread
                @com.bytedance.JProtect
                public void onError(int r3, java.lang.String r4) {
                    throw new UnsupportedOperationException("Method not decompiled: com.bytedance.msdk.adapter.pangle.PangleSplashAdapter.PangleSplashAd.AnonymousClass2.onError(int, java.lang.String):void");
                }

                @Override
                @MainThread
                @JProtect
                public void onSplashAdLoad(TTSplashAd tTSplashAd) {
                    Map<String, Object> mediaExtraInfo;
                    if (tTSplashAd == null) {
                        PangleSplashAdapter.this.notifyAdFailed(new AdError(AdError.ERROR_MEDIA_REQUEST_SUCCESS_NO_ADS_MSG));
                        return;
                    }
                    PangleSplashAd.this.a = tTSplashAd;
                    PangleSplashAd.this.setExpressAd(true);
                    PangleSplashAd pangleSplashAd = PangleSplashAd.this;
                    pangleSplashAd.setInteractionType(pangleSplashAd.a.getInteractionType());
                    if (PangleSplashAdapter.this.isClientBidding() && (mediaExtraInfo = PangleSplashAd.this.a.getMediaExtraInfo()) != null) {
                        double value = PangleAdapterUtils.getValue(mediaExtraInfo.get("price"));
                        Logger.d("TTMediationSDK_ECMP", TTLogUtil.getTagThirdLevelById(PangleSplashAdapter.this.getAdapterRit(), PangleSplashAdapter.this.getAdSlotId()) + "pangle Splash 返回的 cpm价格:" + value);
                        PangleSplashAd pangleSplashAd2 = PangleSplashAd.this;
                        if (value <= PangleAdapterUtils.CPM_DEFLAUT_VALUE) {
                            value = 0.0d;
                        }
                        pangleSplashAd2.setCpm(value);
                    }
                    PangleSplashAd.this.a.setSplashInteractionListener(new TTSplashAd.AdInteractionListener() {
                        @Override
                        public void onAdClicked(View view, int i2) {
                            if (((TTBaseAd) PangleSplashAd.this).mTTAdatperCallback instanceof ITTAdapterSplashAdListener) {
                                PangleSplashAd.this.f().onAdClicked();
                            }
                        }

                        @Override
                        public void onAdShow(View view, int i2) {
                            if (((TTBaseAd) PangleSplashAd.this).mTTAdatperCallback instanceof ITTAdapterSplashAdListener) {
                                PangleSplashAd.this.f().onAdShow();
                            }
                        }

                        @Override
                        public void onAdSkip() {
                            Logger.e("TTMediationSDK", "穿山甲_splash_onAdSkip");
                            if (((TTBaseAd) PangleSplashAd.this).mTTAdatperCallback instanceof ITTAdapterSplashAdListener) {
                                PangleSplashAd.this.f().onAdSkip();
                            }
                        }

                        @Override
                        public void onAdTimeOver() {
                            Logger.e("TTMediationSDK", "穿山甲_splash_onAdTimeOver");
                            if (((TTBaseAd) PangleSplashAd.this).mTTAdatperCallback instanceof ITTAdapterSplashAdListener) {
                                PangleSplashAd.this.f().onAdDismiss();
                            }
                        }
                    });
                    PangleSplashAd.this.a.setSplashClickEyeListener(new ISplashClickEyeListener() {
                        @Override
                        public boolean isSupportSplashClickEye(boolean z) {
                            Logger.e("TTMediationSDK", "穿山甲_splash_isSupportSplashClickEye:" + z);
                            PangleSplashAd.this.c = z;
                            return false;
                        }

                        @Override
                        public void onSplashClickEyeAnimationFinish() {
                            Logger.e("TTMediationSDK", "穿山甲_splash_onSplashClickEyeAnimationFinish");
                            if (((TTBaseAd) PangleSplashAd.this).mTTAdatperCallback instanceof ITTAdapterSplashAdListener) {
                                PangleSplashAd.this.f().onMinWindowPlayFinish();
                            }
                        }

                        @Override
                        public void onSplashClickEyeAnimationStart() {
                            Logger.e("TTMediationSDK", "穿山甲_splash_onSplashClickEyeAnimationStart");
                            PangleSplashAd pangleSplashAd3 = PangleSplashAd.this;
                            if (pangleSplashAd3.c && (((TTBaseAd) pangleSplashAd3).mTTAdatperCallback instanceof ITTAdapterSplashAdListener)) {
                                PangleSplashAd.this.f().onMinWindowStart();
                            }
                        }
                    });
                    PangleSplashAd.this.a.setSplashCardListener(new ISplashCardListener() {
                        @Override
                        public Activity getActivity() {
                            Logger.e("TTMediationSDK", "穿山甲_splash_getActivity");
                            if (((TTBaseAd) PangleSplashAd.this).mTTAdatperCallback instanceof ITTAdapterSplashAdListener) {
                                return PangleSplashAd.this.f().getActivity();
                            }
                            return null;
                        }

                        @Override
                        public void onSplashClickEyeClose() {
                            Logger.e("TTMediationSDK", "穿山甲_splash_onSplashClickEyeClose");
                            if (((TTBaseAd) PangleSplashAd.this).mTTAdatperCallback instanceof ITTAdapterSplashAdListener) {
                                PangleSplashAd.this.f().onSplashClickEyeClose();
                            }
                        }

                        @Override
                        public void onSplashEyeReady() {
                            Logger.e("TTMediationSDK", "穿山甲_splash_onSplashEyeReady");
                            if (((TTBaseAd) PangleSplashAd.this).mTTAdatperCallback instanceof ITTAdapterSplashAdListener) {
                                PangleSplashAd.this.f().onSplashEyeReady();
                            }
                        }

                        @Override
                        public void setSupportSplashClickEye(boolean z) {
                            Logger.e("TTMediationSDK", "穿山甲_splash_setSupportSplashClickEye");
                            if (((TTBaseAd) PangleSplashAd.this).mTTAdatperCallback instanceof ITTAdapterSplashAdListener) {
                                PangleSplashAd.this.f().setSupportSplashClickEye(z);
                            }
                        }
                    });
                    PangleSplashAd pangleSplashAd3 = PangleSplashAd.this;
                    PangleSplashAdapter.this.notifyAdLoaded(pangleSplashAd3);
                }

                @Override
                @MainThread
                @JProtect
                public void onTimeout() {
                    PangleSplashAdapter.this.notifyAdFailed(new AdError("splash ad load timeout !"));
                }
            }, PangleSplashAdapter.this.A);
        }

        @JProtect
        void d() {
            TTAdNative createAdNative = TTAdSdk.getAdManager().createAdNative(PangleSplashAdapter.this.z);
            com.bytedance.msdk.api.AdSlot adSlot = ((TTAbsAdLoaderAdapter) PangleSplashAdapter.this).mAdSlot;
            PangleSplashAdapter pangleSplashAdapter = PangleSplashAdapter.this;
            AdSlot.Builder buildPangleAdSlot = PangleAdapterUtils.buildPangleAdSlot(adSlot, pangleSplashAdapter.mGMAdSlotSplash, pangleSplashAdapter.getAdSlotId(), ((TTAbsAdLoaderAdapter) PangleSplashAdapter.this).mWaterfallAbTestParam, PangleSplashAdapter.this.getClientReqId(), PangleSplashAdapter.this.getAdm(), false);
            buildPangleAdSlot.setImageAcceptedSize(PangleSplashAdapter.this.mGMAdSlotSplash.getWidth(), PangleSplashAdapter.this.mGMAdSlotSplash.getHeight()).setExpressViewAcceptedSize(UIUtils.px2dip(PangleSplashAdapter.this.z, PangleSplashAdapter.this.mGMAdSlotSplash.getWidth()), UIUtils.px2dip(PangleSplashAdapter.this.z, PangleSplashAdapter.this.mGMAdSlotSplash.getHeight()));
            AdSlot build = buildPangleAdSlot.build();
            if (PangleSplashAdapter.this.n()) {
                Logger.e("TTMediationSDK", "use old api load splash ad");
                h(createAdNative, build);
                return;
            }
            Logger.e("TTMediationSDK", "use new api load splash ad");
            e(createAdNative, build);
        }

        @Override
        public long getAdId() {
            Map<String, Object> mediaExtraInfo;
            if (PangleSplashAdapter.this.n()) {
                TTSplashAd tTSplashAd = this.a;
                if (tTSplashAd != null) {
                    mediaExtraInfo = tTSplashAd.getMediaExtraInfo();
                    return PangleAdapterUtils.getAdId(mediaExtraInfo);
                }
                return super.getAdId();
            }
            CSJSplashAd cSJSplashAd = this.b;
            if (cSJSplashAd != null) {
                mediaExtraInfo = cSJSplashAd.getMediaExtraInfo();
                return PangleAdapterUtils.getAdId(mediaExtraInfo);
            }
            return super.getAdId();
        }

        @Override
        public long getCreativeId() {
            Map<String, Object> mediaExtraInfo;
            if (PangleSplashAdapter.this.n()) {
                TTSplashAd tTSplashAd = this.a;
                if (tTSplashAd != null) {
                    mediaExtraInfo = tTSplashAd.getMediaExtraInfo();
                    return PangleAdapterUtils.getCreativeId(mediaExtraInfo);
                }
                return super.getCreativeId();
            }
            CSJSplashAd cSJSplashAd = this.b;
            if (cSJSplashAd != null) {
                mediaExtraInfo = cSJSplashAd.getMediaExtraInfo();
                return PangleAdapterUtils.getCreativeId(mediaExtraInfo);
            }
            return super.getCreativeId();
        }

        @Override
        public Map<String, Object> getMediaExtraInfo() {
            Map<String, Object> mediaExtraInfo;
            HashMap hashMap;
            if (PangleSplashAdapter.this.n()) {
                TTSplashAd tTSplashAd = this.a;
                if (tTSplashAd != null && (mediaExtraInfo = tTSplashAd.getMediaExtraInfo()) != null) {
                    hashMap = new HashMap();
                    hashMap.put(PangleAdapterUtils.MEDIA_EXTRA_COUPON, mediaExtraInfo.get(PangleAdapterUtils.MEDIA_EXTRA_COUPON));
                    hashMap.put(PangleAdapterUtils.MEDIA_EXTRA_LIVE_ROOM, mediaExtraInfo.get(PangleAdapterUtils.MEDIA_EXTRA_LIVE_ROOM));
                    hashMap.put("product", mediaExtraInfo.get("product"));
                    return hashMap;
                }
                return super.getMediaExtraInfo();
            }
            CSJSplashAd cSJSplashAd = this.b;
            if (cSJSplashAd != null && (mediaExtraInfo = cSJSplashAd.getMediaExtraInfo()) != null) {
                hashMap = new HashMap();
                hashMap.put(PangleAdapterUtils.MEDIA_EXTRA_COUPON, mediaExtraInfo.get(PangleAdapterUtils.MEDIA_EXTRA_COUPON));
                hashMap.put(PangleAdapterUtils.MEDIA_EXTRA_LIVE_ROOM, mediaExtraInfo.get(PangleAdapterUtils.MEDIA_EXTRA_LIVE_ROOM));
                hashMap.put("product", mediaExtraInfo.get("product"));
                return hashMap;
            }
            return super.getMediaExtraInfo();
        }

        @Override
        public int[] getMinWindowSize() {
            if (PangleSplashAdapter.this.n()) {
                TTSplashAd tTSplashAd = this.a;
                if (tTSplashAd != null) {
                    return tTSplashAd.getSplashClickEyeSizeToDp();
                }
                return null;
            }
            CSJSplashAd cSJSplashAd = this.b;
            if (cSJSplashAd != null) {
                return cSJSplashAd.getSplashClickEyeSizeToDp();
            }
            return null;
        }

        @Override
        @com.bytedance.JProtect
        public java.lang.String getReqId() {
            throw new UnsupportedOperationException("Method not decompiled: com.bytedance.msdk.adapter.pangle.PangleSplashAdapter.PangleSplashAd.getReqId():java.lang.String");
        }

        @Override
        public boolean hasDestroyed() {
            return PangleSplashAdapter.this.n() ? this.a == null : this.b == null;
        }

        @Override
        public void onDestroy() {
            if (PangleSplashAdapter.this.n()) {
                TTSplashAd tTSplashAd = this.a;
                if (tTSplashAd != null) {
                    tTSplashAd.setSplashInteractionListener(null);
                    this.a.setDownloadListener(null);
                    this.a.renderExpressAd(null);
                    this.a = null;
                    return;
                }
                return;
            }
            CSJSplashAd cSJSplashAd = this.b;
            if (cSJSplashAd != null) {
                cSJSplashAd.setSplashAdListener(null);
                this.b.setDownloadListener(null);
                this.b.setSplashCardListener(null);
                this.b.setSplashClickEyeListener(null);
                this.b = null;
            }
        }

        @Override
        @JProtect
        public void showSplashAd(ViewGroup viewGroup) {
            View splashView;
            if (!PangleSplashAdapter.this.n()) {
                CSJSplashAd cSJSplashAd = this.b;
                if (cSJSplashAd == null || viewGroup == null) {
                    return;
                }
                cSJSplashAd.showSplashView(viewGroup);
                return;
            }
            TTSplashAd tTSplashAd = this.a;
            if (tTSplashAd == null || viewGroup == null || (splashView = tTSplashAd.getSplashView()) == null) {
                return;
            }
            ViewParent parent = splashView.getParent();
            if (parent instanceof ViewGroup) {
                ((ViewGroup) parent).removeView(splashView);
            }
            viewGroup.removeAllViews();
            viewGroup.addView(splashView);
            char c = 'R';
            while (true) {
                switch (c) {
                    case 'R':
                    default:
                        c = 'T';
                    case 'S':
                    case 'T':
                        return;
                }
            }
        }

        @Override
        public void showSplashCardView(ViewGroup viewGroup, Activity activity) {
            CSJSplashAd cSJSplashAd = this.b;
            if (cSJSplashAd != null) {
                cSJSplashAd.showSplashCardView(viewGroup, activity);
            }
        }

        @Override
        public void showSplashClickEyeView(ViewGroup viewGroup) {
            CSJSplashAd cSJSplashAd = this.b;
            if (cSJSplashAd != null) {
                cSJSplashAd.showSplashClickEyeView(viewGroup);
            }
        }

        @Override
        public void splashMinWindowAnimationFinish() {
            TTSplashAd tTSplashAd = this.a;
            if (tTSplashAd != null) {
                tTSplashAd.splashClickEyeAnimationFinish();
            }
        }
    }

    public boolean n() {
        return !"0.0".equals(getSdkVersion()) && VERSION_4712.compareTo(getSdkVersion()) > 0;
    }

    @Override
    public void destroy() {
    }

    @Override
    public String getAdNetWorkName() {
        return "pangle";
    }

    @Override
    public String getSdkVersion() {
        try {
            return TTAdSdk.getAdManager().getSDKVersion();
        } catch (Exception unused) {
            return "0.0";
        }
    }

    @Override
    @JProtect
    public void loadAd(Context context, Map<String, Object> map) {
        super.loadAd(context, map);
        this.z = context;
        if (this.mGMAdSlotSplash == null) {
            notifyLoadFailBecauseGMAdSlotIsNull();
        } else if (map != null) {
            this.A = map.containsKey(TTRequestExtraParams.PARAM_AD_LOAD_TIMEOUT) ? ((Integer) map.get(TTRequestExtraParams.PARAM_AD_LOAD_TIMEOUT)).intValue() : this.A;
            PangleSplashAd pangleSplashAd = new PangleSplashAd();
            this.B = pangleSplashAd;
            pangleSplashAd.d();
        }
    }
}