Wolves Themes v1.0版本的 MD5 值为:cddc92b47f6b7c4a195c9625507eb51c

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


package com.flurry.sdk;

import android.content.Context;
import java.lang.ref.WeakReference;
public class hr {
    private hm b;
    private dd d;
    private a e;
    private final String a = hr.class.getSimpleName();
    private WeakReference<Context> c = new WeakReference<>(null);

    public enum a {
        NONE,
        LOADING,
        PREPARED,
        READY
    }

    public final void a() {
        kx.a(3, this.a, "clearing webviews");
        this.e = null;
        this.c = new WeakReference<>(null);
        this.b = null;
    }

    public final void b() {
        this.b.loadUrl("javascript:var closeButtonDiv =  document.getElementById('flurry_interstitial_close');if (typeof(closeButtonDiv) == 'undefined' || closeButtonDiv == null){var newdiv = document.createElement('div');var divIdName = 'flurry_interstitial_close';newdiv.setAttribute('id',divIdName);newdiv.innerHTML = '<a href=\"flurry://flurrycall?event=adWillClose\"><div id=\"rtb_close\"><img src=\"https://s3.amazonaws.com/flurrysdk/Android/bttn-close-bw.png\" alt=\"close advertisement\" /></div></a></div>';document.body.appendChild(newdiv);}");
    }

    public final hm c() {
        if (this.b == null || a.NONE.equals(this.e)) {
            if (this.c != null) {
                this.b = new hm(this.c.get(), this.d);
                a(a.LOADING);
            } else {
                kx.a(3, this.a, "mContext is null");
                return null;
            }
        } else if (this.b != null && !a.NONE.equals(this.e)) {
            kx.a(3, this.a, "fWebView is not null");
        } else {
            kx.a(3, this.a, "fWebView is null");
            return null;
        }
        return this.b;
    }

    private synchronized void a(a aVar) {
        if (aVar == null) {
            try {
                aVar = a.NONE;
            } catch (Throwable th) {
                throw th;
            }
        }
        String str = this.a;
        kx.a(3, str, "Setting FlurryWebViewState from " + this.e + " to " + aVar + " for mContext: " + this.c);
        this.e = aVar;
    }

    public final void a(Context context, dd ddVar) {
        if (context == null) {
            return;
        }
        kx.a(3, this.a, "setting mContext");
        this.c = new WeakReference<>(context);
        if (ddVar != null) {
            this.d = ddVar;
        }
    }
}