BuzzCast Porno v1.0.0.0版本的 MD5 值为:74d6ef6b6062f3b4dab5598ca2751841

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


package com.amazon.device.ads;

import android.app.Activity;
import android.content.Context;
import android.content.res.AssetManager;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.support.v4.app.NotificationCompat;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewParent;
import android.view.ViewTreeObserver;
import android.webkit.CookieManager;
import android.webkit.JavascriptInterface;
import android.webkit.ValueCallback;
import android.webkit.WebView;
import android.widget.ScrollView;
import com.til.colombia.dmp.android.Utils;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Date;
import java.util.Map;
import org.json.JSONException;
import org.json.JSONObject;
public class DTBAdView extends WebView {
    public static final String AMAZON_AD_INFO = "amazon_ad_info";
    public static final String AMAZON_BRIDGE = "amzn_bridge";
    public static final String BID_HTML = "bid_html_template";
    public static final String BID_IDENTIFIER = "bid_identifier";
    private static final String ENV_TEMPLATE = "window.MRAID_ENV={version:'%s',sdk:'%s',sdkVersion:'%s',appId:'%s',ifa:'%s',limitAdTracking:%b,coppa:%b,impFired:true};";
    private static final String ENV_TEMPLATE_INFO = "window.MRAID_ENV={version:'%s',sdk:'%s',sdkVersion:'%s',appId:'%s',ifa:'%s',limitAdTracking:%b,coppa:%b,amznAdInfo:%s,impFired:true};";
    public static final String EXPECTED_HEIGHT = "expected_height";
    public static final String EXPECTED_WIDTH = "expected_width";
    public static final String HOSTNAME_IDENTIFIER = "hostname_identifier";
    public static final String LOG_TAG = "DTBAdView";
    public static final String MRAID_IDENTIFIER = "MRAID_ENV";
    public static final String REQUEST_QUEUE = "amazon_request_queue";
    public static final String SMARTBANNER_STATE = "smart_banner_state";
    public static final String START_LOAD_TIME = "start_load_time";
    public static final String f708b = "event_server_parameter";
    private String bidId;
    public ViewTreeObserver.OnGlobalLayoutListener f709c;
    private DTBAdMRAIDController controller;
    private int exposurePercent;
    public ViewTreeObserver.OnGlobalFocusChangeListener focusChangeListener;
    private String hostname;
    private boolean ignoreDetachment;
    private boolean isFirstDisplay;
    private boolean isVisible;
    private boolean localOnly;
    public Rect position;
    public ViewTreeObserver.OnScrollChangedListener scrollChangeListener;
    private boolean scrollEnabled;
    private long startTime;
    public DTBAdViewSupportClient supportClient;
    private long timeClicked;
    private long timePressed;
    private WebBridge webBridge;

    public class WebBridge {
        public Exception execException;

        public WebBridge() {
            DTBAdView.this = r1;
        }

        public void lambda$echo$0(String str) {
            DTBAdView.this.evaluateJavascript(str, null);
        }

        private void logFromJavasScript(String str) {
            DtbLog.debug("mraid:JSNative", str);
        }

        public Exception b() {
            return this.execException;
        }

        public void c(JSONObject jSONObject) {
            this.execException = null;
            String string = jSONObject.getString("subtype");
            Class<MraidCommand> a2 = MraidCommand.a(string);
            if (a2 == null) {
                DtbLog.error(ih5.a("MRAID Command:", string, " is not found"));
                DTBAdView.this.controller.fireErrorEvent(string, c.e(string, " is not supported"));
                DTBAdView.this.controller.commandCompleted(string);
                return;
            }
            try {
                MraidCommand newInstance = a2.newInstance();
                String str = DTBAdView.LOG_TAG;
                DtbLog.debug(str, "execute command " + newInstance.getName());
                newInstance.execute(jSONObject.getJSONObject("arguments"), DTBAdView.this.controller);
            } catch (JSONException e2) {
                throw e2;
            } catch (Exception e3) {
                this.execException = e3;
                StringBuilder c2 = o7.c("Error execution command ", string, " ");
                c2.append(e3.getLocalizedMessage());
                DtbLog.debug(c2.toString());
            }
        }

        public void echo(JSONObject jSONObject) {
            try {
                Integer valueOf = Integer.valueOf(jSONObject.getInt("promiseId"));
                new Handler(Looper.getMainLooper()).post(new m(this, String.format("window.promiseResolve(%d, '%s');", valueOf, jSONObject.getJSONObject("arguments").getString("greeting") + " Returned"), 1));
            } catch (JSONException e2) {
                String str = DTBAdView.LOG_TAG;
                DtbLog.debug(str, "JSON conversion failed:" + e2);
            }
        }

        public void handleServiceCall(JSONObject jSONObject) {
            if ("log".equals(jSONObject.getString("subtype"))) {
                logFromJavasScript(jSONObject.getJSONObject("arguments").getString(Utils.MESSAGE));
            }
        }

        @JavascriptInterface
        public void postMessage(String str) {
            try {
                JSONObject jSONObject = new JSONObject(str);
                if (jSONObject.has("type")) {
                    String string = jSONObject.getString("type");
                    if (NotificationCompat.CATEGORY_SERVICE.equals(string)) {
                        handleServiceCall(jSONObject);
                        return;
                    } else if ("mraid".equals(string)) {
                        c(jSONObject);
                        return;
                    } else {
                        return;
                    }
                }
                DtbLog.error("Unrecognized bridge call");
            } catch (JSONException e2) {
                String str2 = DTBAdView.LOG_TAG;
                DtbLog.debug(str2, "JSON conversion failed:" + e2);
            }
        }
    }

    public DTBAdView(Context context, y yVar) {
        super(context);
        this.scrollEnabled = true;
        this.ignoreDetachment = false;
        this.isFirstDisplay = true;
        this.isVisible = false;
        this.exposurePercent = -1;
        this.localOnly = WebResourceOptions.isLocalSourcesOnly();
        CookieManager.getInstance().setAcceptCookie(true);
        this.controller = new aa(this, yVar);
        commonInit();
    }

    private void commonInit() {
        getSettings().setJavaScriptEnabled(true);
        getSettings().setAllowContentAccess(true);
        getSettings().setDomStorageEnabled(true);
        getSettings().setAppCacheEnabled(true);
        getSettings().setAllowFileAccess(false);
        getSettings().setLoadsImagesAutomatically(true);
        if (AdRegistration.isTestMode()) {
            WebView.setWebContentsDebuggingEnabled(true);
        }
        getSettings().setBlockNetworkImage(false);
        DTBAdViewSupportClient dTBAdViewSupportClient = new DTBAdViewSupportClient(getContext(), this.controller);
        this.supportClient = dTBAdViewSupportClient;
        setWebViewClient(dTBAdViewSupportClient);
        setScrollEnabled(false);
        WebBridge webBridge = new WebBridge();
        this.webBridge = webBridge;
        addJavascriptInterface(webBridge, AMAZON_BRIDGE);
        an.init();
        this.f709c = new ViewTreeObserver.OnGlobalLayoutListener() {
            {
                DTBAdView.this = this;
            }

            @Override
            public void onGlobalLayout() {
                DTBAdView.this.f();
            }
        };
        getViewTreeObserver().addOnGlobalLayoutListener(this.f709c);
        this.focusChangeListener = new ViewTreeObserver.OnGlobalFocusChangeListener() {
            {
                DTBAdView.this = this;
            }

            @Override
            public void onGlobalFocusChanged(View view, View view2) {
                DTBAdView.this.f();
            }
        };
        getViewTreeObserver().addOnGlobalFocusChangeListener(this.focusChangeListener);
        this.scrollChangeListener = new ViewTreeObserver.OnScrollChangedListener() {
            {
                DTBAdView.this = this;
            }

            @Override
            public void onScrollChanged() {
                DTBAdView.this.f();
            }
        };
        getViewTreeObserver().addOnScrollChangedListener(this.scrollChangeListener);
        setOnTouchListener(new vf1(this));
    }

    private void computeExposureInScrollView(ScrollView scrollView, boolean z) {
        ViewGroup viewGroup = (ViewGroup) DTBAdUtil.getActivity((View) getParent()).findViewById(16908290);
        int[] iArr = new int[2];
        viewGroup.getLocationInWindow(iArr);
        Rect rect = new Rect(iArr[0], iArr[1], viewGroup.getWidth() + iArr[0], viewGroup.getHeight() + iArr[1]);
        int[] iArr2 = new int[2];
        getLocationInWindow(iArr2);
        float height = getHeight() * getWidth();
        Rect rect2 = new Rect(iArr2[0], iArr2[1], getWidth() + iArr2[0], getHeight() + iArr2[1]);
        if (scrollView == null) {
            rect2.intersect(rect);
        } else {
            int[] iArr3 = new int[2];
            scrollView.getLocationInWindow(iArr3);
            Rect rect3 = new Rect(iArr3[0], iArr3[1], scrollView.getWidth() + iArr3[0], scrollView.getHeight() + iArr3[1]);
            rect3.intersect(rect);
            rect2.intersect(rect3);
        }
        int i = height != 0.0f ? (int) ((((rect2.bottom - rect2.top) * (rect2.right - rect2.left)) * 100.0f) / height) : 0;
        if (i != this.exposurePercent || z) {
            this.exposurePercent = i;
            this.controller.fireExposureChange(i, rect2);
            this.controller.setCurrentPositionProperty();
        }
    }

    public boolean d(View view, MotionEvent motionEvent) {
        int action = motionEvent.getAction();
        long time = new Date().getTime();
        if (action == 0) {
            this.timePressed = time;
            return false;
        } else if (action != 1) {
            this.timePressed = 0L;
            return false;
        } else if (time - this.timeClicked < 1000) {
            return false;
        } else {
            if (time - this.timePressed < 500) {
                this.timeClicked = time;
                this.controller.onAdClicked();
            }
            this.timePressed = 0L;
            return false;
        }
    }

    private void e(String str, StringBuilder sb) {
        if (!this.localOnly) {
            try {
                String loadFile = an.getInstance().loadFile(str);
                if (loadFile != null) {
                    sb.append("<script>");
                    sb.append(loadFile);
                    sb.append("</script>");
                    return;
                }
            } catch (Exception unused) {
                DtbLog.error(LOG_TAG, "Failed to read local file");
            }
        }
        sb.append("<script>");
        try {
            AssetManager assets = getContext().getAssets();
            InputStream open = assets.open(str + ".js");
            BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(open));
            while (true) {
                String readLine = bufferedReader.readLine();
                if (readLine == null) {
                    break;
                }
                sb.append(readLine.trim());
                sb.append("\n");
            }
            bufferedReader.close();
            open.close();
        } catch (Exception unused2) {
            DtbLog.error(c.e("Error reading file:", str));
        }
        sb.append("</script>");
    }

    public void f() {
        if (getParent() != null && getVisibility() == 0) {
            Activity currentActivity = AdRegistration.getCurrentActivity();
            if (currentActivity == null) {
                if (this.isVisible) {
                    DTBAdMRAIDController dTBAdMRAIDController = this.controller;
                    if (dTBAdMRAIDController != null) {
                        dTBAdMRAIDController.onViewabilityChanged(false);
                    }
                    setIsVisible(false);
                    return;
                }
                return;
            }
            ViewGroup viewGroup = (ViewGroup) currentActivity.findViewById(16908290);
            int[] iArr = new int[2];
            viewGroup.getLocationInWindow(iArr);
            Rect rect = new Rect(iArr[0], iArr[1], viewGroup.getWidth() + iArr[0], viewGroup.getHeight() + iArr[1]);
            int[] iArr2 = new int[2];
            getLocationInWindow(iArr2);
            Rect rect2 = new Rect(iArr2[0], iArr2[1], getWidth() + iArr2[0], getHeight() + iArr2[1]);
            if (!rect.contains(rect2) && !Rect.intersects(rect, rect2)) {
                if (this.isVisible) {
                    DTBAdMRAIDController dTBAdMRAIDController2 = this.controller;
                    if (dTBAdMRAIDController2 != null) {
                        dTBAdMRAIDController2.onViewabilityChanged(false);
                    }
                    setIsVisible(false);
                    DtbLog.debug("SET MRAID Visible false because of root");
                }
            } else {
                ScrollView scrollViewParent = getScrollViewParent();
                if (scrollViewParent != null) {
                    int[] iArr3 = new int[2];
                    scrollViewParent.getLocationInWindow(iArr3);
                    Rect rect3 = new Rect(iArr3[0], iArr3[1], scrollViewParent.getWidth() + iArr3[0], scrollViewParent.getHeight() + iArr3[1]);
                    if (!Rect.intersects(rect2, rect3) && this.isVisible) {
                        DTBAdMRAIDController dTBAdMRAIDController3 = this.controller;
                        if (dTBAdMRAIDController3 != null) {
                            dTBAdMRAIDController3.onViewabilityChanged(false);
                        }
                        setIsVisible(false);
                        DtbLog.debug("SET MRAID Visible false because of scroll ");
                    } else if (Rect.intersects(rect2, rect3) && !this.isVisible) {
                        DTBAdMRAIDController dTBAdMRAIDController4 = this.controller;
                        if (dTBAdMRAIDController4 != null) {
                            dTBAdMRAIDController4.onViewabilityChanged(true);
                        }
                        setIsVisible(true);
                        DtbLog.debug("SET MRAID Visible true because of scroll ");
                    }
                } else {
                    DTBAdMRAIDController dTBAdMRAIDController5 = this.controller;
                    if (dTBAdMRAIDController5 != null && !this.isVisible) {
                        dTBAdMRAIDController5.onViewabilityChanged(true);
                    }
                    setIsVisible(true);
                }
            }
            if (this.isVisible) {
                computeExposure();
            }
        } else if (this.isVisible) {
            DTBAdMRAIDController dTBAdMRAIDController6 = this.controller;
            if (dTBAdMRAIDController6 != null) {
                dTBAdMRAIDController6.onViewabilityChanged(false);
            }
            setIsVisible(false);
        }
    }

    private ScrollView getScrollViewParent() {
        View view = this;
        while (true) {
            ViewParent parent = view.getParent();
            if (!(parent instanceof ViewGroup)) {
                return null;
            }
            if (parent instanceof ScrollView) {
                return (ScrollView) parent;
            }
            view = (View) parent;
        }
    }

    private void markAsInvisible() {
    }

    private void setIsVisible(boolean z) {
        this.isVisible = z;
        if (z) {
            return;
        }
        this.exposurePercent = -1;
        DTBAdMRAIDController dTBAdMRAIDController = this.controller;
        if (dTBAdMRAIDController != null) {
            dTBAdMRAIDController.fireExposureChange(0, new Rect(0, 0, 0, 0));
        }
    }

    public void cleanup() {
        removeJavascriptInterface(AMAZON_BRIDGE);
        DTBAdMRAIDController dTBAdMRAIDController = this.controller;
        dTBAdMRAIDController.adView = null;
        dTBAdMRAIDController.customButtonListener = null;
        this.controller = null;
    }

    public void computeExposure() {
        computeExposure(false);
    }

    public void computeExposureInRootView() {
        computeExposureInRootView(false);
    }

    @Override
    public void evaluateJavascript(String str, ValueCallback<String> valueCallback) {
        super.evaluateJavascript(str, valueCallback);
    }

    public void fetchAd(Map<String, Object> map) {
        fetchAd((String) null, map);
    }

    public void fetchAdWithLocation(String str) {
        StringBuilder c2 = md0.c("<script>");
        c2.append(getEnvironment(null));
        c2.append("</script>");
        e("aps-mraid", c2);
        wv.e(c2, "<script>", "window.location=\"", str, "\";");
        c2.append("</script>");
        loadDataWithBaseURL("https://c.amazon-adsystem.com/", c2.toString(), "text/html", "UTF-8", null);
    }

    public void finalize() {
        getViewTreeObserver().removeOnGlobalLayoutListener(this.f709c);
        getViewTreeObserver().removeOnScrollChangedListener(this.scrollChangeListener);
        getViewTreeObserver().removeOnGlobalFocusChangeListener(this.focusChangeListener);
    }

    public String getBidId() {
        return this.bidId;
    }

    public DTBAdMRAIDController getController() {
        return this.controller;
    }

    public String getEnvironment(Bundle bundle) {
        String string = bundle != null ? bundle.getString(AMAZON_AD_INFO) : null;
        Context context = getContext();
        String str = (String) context.getPackageManager().getApplicationLabel(context.getApplicationInfo());
        String idfa = ai.getInstance().getIdfa();
        if (DtbCommonUtils.isNullOrEmpty(idfa)) {
            idfa = "unknown";
        }
        Boolean optOut = ai.getInstance().getOptOut();
        if (optOut == null) {
            optOut = Boolean.FALSE;
        }
        Boolean bool = Boolean.FALSE;
        return string == null ? String.format(ENV_TEMPLATE, "3.0", DtbCommonUtils.getSDKMRAIDVersion(), DtbConstants.SDK_VERSION, str, idfa, optOut, bool) : String.format(ENV_TEMPLATE_INFO, "3.0", DtbCommonUtils.getSDKMRAIDVersion(), DtbConstants.SDK_VERSION, str, idfa, optOut, bool, string);
    }

    public String getHostname() {
        return this.hostname;
    }

    public long getStartTime() {
        return this.startTime;
    }

    public boolean isVisible() {
        return this.isVisible;
    }

    public void onAdRemoved() {
        this.controller.onAdRemoved();
    }

    @Override
    public void onAttachedToWindow() {
        super.onAttachedToWindow();
        getViewTreeObserver().addOnGlobalLayoutListener(this.f709c);
        getViewTreeObserver().addOnGlobalFocusChangeListener(this.focusChangeListener);
        getViewTreeObserver().addOnScrollChangedListener(this.scrollChangeListener);
        getController().onAdOpened(this);
    }

    @Override
    public void onDetachedFromWindow() {
        super.onDetachedFromWindow();
        getViewTreeObserver().removeOnGlobalLayoutListener(this.f709c);
        getViewTreeObserver().removeOnScrollChangedListener(this.scrollChangeListener);
        getViewTreeObserver().removeOnGlobalFocusChangeListener(this.focusChangeListener);
    }

    @Override
    public void onDraw(Canvas canvas) {
        super.onDraw(canvas);
        if (this.isFirstDisplay) {
            if (DTBTimeTrace.getInstance() != null && AdRegistration.isTestMode()) {
                DTBTimeTrace.getInstance().addPhase(DTBTimeTrace.f717b);
                DTBTimeTrace.getInstance().logTrace();
            }
            DTBAdMRAIDController dTBAdMRAIDController = this.controller;
            if (dTBAdMRAIDController instanceof ab) {
                ((ab) dTBAdMRAIDController).l();
            }
            this.isFirstDisplay = false;
        }
    }

    @Override
    public void onScrollChanged(int i, int i2, int i3, int i4) {
        if (this.scrollEnabled) {
            super.onScrollChanged(i, i2, i4, i3);
        } else {
            scrollTo(0, 0);
        }
    }

    public void setIgnoreDetachment() {
        this.ignoreDetachment = true;
    }

    public void setScrollEnabled(boolean z) {
        this.scrollEnabled = z;
        setVerticalScrollBarEnabled(z);
        setHorizontalScrollBarEnabled(z);
    }

    public void computeExposure(boolean z) {
        ScrollView scrollViewParent = getScrollViewParent();
        if (scrollViewParent != null) {
            computeExposureInScrollView(scrollViewParent, z);
            return;
        }
        int[] iArr = new int[2];
        getLocationInWindow(iArr);
        Rect rect = new Rect(iArr[0], iArr[1], getWidth() + iArr[0], getHeight() + iArr[1]);
        if (this.controller != null) {
            computeExposureInRootView(z);
            this.controller.onPositionChanged(rect);
        }
    }

    public void computeExposureInRootView(boolean z) {
        View view = (View) getParent();
        Activity activity = view != null ? DTBAdUtil.getActivity(view) : DTBAdUtil.getActivity(this);
        if (activity == null) {
            return;
        }
        ViewGroup viewGroup = (ViewGroup) activity.findViewById(16908290);
        int[] iArr = new int[2];
        viewGroup.getLocationInWindow(iArr);
        Rect rect = new Rect(iArr[0], iArr[1], viewGroup.getWidth() + iArr[0], viewGroup.getHeight() + iArr[1]);
        int[] iArr2 = new int[2];
        getLocationOnScreen(iArr2);
        Rect rect2 = new Rect(iArr2[0], iArr2[1], getWidth() + iArr2[0], getHeight() + iArr2[1]);
        float height = getHeight() * getWidth();
        if (rect2.intersect(rect)) {
            int i = (int) (((((rect2.bottom - rect2.top) * (rect2.right - rect2.left)) * 100.0d) / height) + 0.5d);
            if (i != this.exposurePercent || z) {
                this.exposurePercent = i;
                this.controller.fireExposureChange(i, rect2);
            }
        } else if (this.exposurePercent != 0 || z) {
            this.exposurePercent = 0;
            rect2.top = rect2.bottom;
            this.controller.fireExposureChange(0, rect2);
        }
    }

    public void fetchAd(String str, Map<String, Object> map) {
        Bundle bundle = new Bundle();
        for (Map.Entry<String, Object> entry : map.entrySet()) {
            Object value = entry.getValue();
            if (value instanceof String) {
                bundle.putString(entry.getKey(), (String) value);
            } else if (value instanceof Boolean) {
                bundle.putBoolean(entry.getKey(), ((Boolean) value).booleanValue());
            }
            if (value instanceof Integer) {
                bundle.putInt(entry.getKey(), ((Integer) value).intValue());
            }
            if (value instanceof Long) {
                bundle.putLong(entry.getKey(), ((Long) value).longValue());
            }
        }
        fetchAd(str, bundle);
    }

    public DTBAdView(Context context, DTBAdBannerListener dTBAdBannerListener) {
        super(context);
        this.scrollEnabled = true;
        this.ignoreDetachment = false;
        this.isFirstDisplay = true;
        this.isVisible = false;
        this.exposurePercent = -1;
        this.localOnly = WebResourceOptions.isLocalSourcesOnly();
        CookieManager.getInstance().setAcceptCookie(true);
        this.controller = new DTBAdMRAIDBannerController(this, dTBAdBannerListener);
        commonInit();
    }

    public void fetchAd(String str) {
        fetchAd(str, (Bundle) null);
    }

    public void fetchAd(Bundle bundle) {
        fetchAd((String) null, bundle);
    }

    public void fetchAd(String str, Bundle bundle) {
        if (str == null) {
            str = bundle.getString(BID_HTML, null);
        }
        if (bundle != null) {
            DTBAdMRAIDController dTBAdMRAIDController = this.controller;
            if (dTBAdMRAIDController instanceof DTBAdMRAIDBannerController) {
                DTBAdBannerListener dTBAdBannerListener = ((DTBAdMRAIDBannerController) dTBAdMRAIDController).bannerListener;
                int i = bundle.getInt(EXPECTED_WIDTH, 0);
                int i2 = bundle.getInt(EXPECTED_HEIGHT, 0);
                if (i2 > 0 && i > 0 && (dTBAdBannerListener instanceof ac)) {
                    ac acVar = (ac) dTBAdBannerListener;
                    acVar.setExpectedWidth(i);
                    acVar.b(i2);
                }
            }
        }
        if (bundle != null) {
            this.bidId = bundle.getString(BID_IDENTIFIER);
            this.hostname = bundle.getString(HOSTNAME_IDENTIFIER);
        }
        this.startTime = new Date().getTime();
        StringBuilder g = ub.g("<!DOCTYPE html><html><head>", "<script>");
        g.append(getEnvironment(bundle));
        g.append("</script>");
        e("aps-mraid", g);
        e("dtb-m", g);
        loadDataWithBaseURL("https://c.amazon-adsystem.com/", g4.b(g, "</head>", "<body style='margin:0;padding:0;'>", str, "</body></html>"), "text/html", "UTF-8", null);
    }

    public DTBAdView(Context context, DTBAdExpandedListener dTBAdExpandedListener) {
        this(context, dTBAdExpandedListener, 0);
    }

    public DTBAdView(Context context, DTBAdExpandedListener dTBAdExpandedListener, int i) {
        super(context);
        this.scrollEnabled = true;
        this.ignoreDetachment = false;
        this.isFirstDisplay = true;
        this.isVisible = false;
        this.exposurePercent = -1;
        this.localOnly = WebResourceOptions.isLocalSourcesOnly();
        CookieManager.getInstance().setAcceptCookie(true);
        z zVar = new z(this);
        this.controller = zVar;
        zVar.setMasterController(DTBAdMRAIDBannerController.findControllerByIndex(i));
        dTBAdExpandedListener.a((z) this.controller);
        commonInit();
    }
}