酷狗概念版 v2.5.5版本的 MD5 值为:782d327088fca4e58310f35a56f41319

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


package com.kugou.android.useraccount.vippage;

import android.text.TextUtils;
import android.webkit.WebView;
import com.kugou.common.utils.as;
import java.util.ArrayList;
import java.util.Iterator;
import rx.android.schedulers.AndroidSchedulers;
import rx.l;
import rx.schedulers.Schedulers;

public class e extends b {

    private boolean f45730a;

    private boolean f45731b;

    private boolean f45732c;

    private boolean f45733d;

    private boolean f45734e;
    private boolean f;
    private boolean g;
    private boolean h;
    private ArrayList<l> i;

    public e(String str) {
        super(str);
        boolean z = false;
        this.f = false;
        this.g = true;
        this.f45734e = a(str);
        if (this.f45734e) {
            this.f45730a = TextUtils.isEmpty(com.kugou.common.q.b.a().a("young_vip_info_json", ""));
            if (com.kugou.common.environment.a.P() && com.kugou.common.environment.a.V() == 0 && com.kugou.common.q.b.a().I() == 0) {
                z = true;
            }
            this.f45731b = z;
        }
        this.i = new ArrayList<>();
    }

    public void b(boolean z) {
        this.h = z;
    }

    public void c(boolean z) {
        this.g = z;
    }

    private boolean a(String str) {
        return !TextUtils.isEmpty(str) && str.contains(i.m) && com.kugou.android.useraccount.d.b.b();
    }

    public void d(boolean z) {
        if (com.kugou.common.environment.a.u()) {
            boolean z2 = false;
            boolean z3 = this.g && !b();
            if (z || ((this.f45730a || z3) && d.a().a("vip_info"))) {
                com.kugou.common.apm.sdk.c.a a2 = com.kugou.android.useraccount.h.a(true);
                d.a().a("vip_info", a2 != null && "200".equals(a2.b()));
            } else if (as.f54365e) {
                as.f("xtc_VipInfoMgr_lock", "updateVipData 不需要更新会员信息");
            }
            int f = com.kugou.android.useraccount.d.b.f();
            if (f > 0 && f < 5 && (z || ((this.f45731b || z3) && d.a().a("remain")))) {
                com.kugou.common.i.b.a.a a3 = new com.kugou.common.i.b.b.c().a();
                d a4 = d.a();
                if (a3 != null && a3.b() == 1) {
                    z2 = true;
                }
                a4.a("remain", z2);
            }
            if (this.h) {
                com.kugou.android.useraccount.d.b.g();
            }
            if (z || z3) {
                this.f = true;
            }
        }
    }

    public boolean a() {
        return this.f;
    }

    public boolean b() {
        return this.f45734e;
    }

    public boolean c() {
        return (this.f45730a || this.f45731b) ? false : true;
    }

    public void a(final WebView webView) {
        if (com.kugou.common.environment.a.u() && this.g && !this.f45733d && this.f45734e) {
            this.f45733d = true;
            this.i.add(rx.e.a("").a(Schedulers.newThread()).d(new rx.b.e<String, String>() {
                @Override
                public String call(String str) {
                    if (!e.this.f45730a && d.a().a("vip_info")) {
                        com.kugou.common.apm.sdk.c.a a2 = com.kugou.android.useraccount.h.a(true);
                        d.a().a("vip_info", a2 != null && "200".equals(a2.b()));
                    } else if (as.f54365e) {
                        as.f("xtc_VipInfoMgr_lock", "startUpdate  不需要更新会员信息");
                    }
                    int f = com.kugou.android.useraccount.d.b.f();
                    if (f > 0 && f < 5 && !e.this.f45731b && d.a().a("remain")) {
                        com.kugou.common.i.b.a.a a3 = new com.kugou.common.i.b.b.c().a();
                        d.a().a("remain", a3 != null && a3.b() == 1);
                    }
                    e.this.f = true;
                    if (e.this.f45730a && e.this.f45731b) {
                        return "";
                    }
                    return "javascript:KgWebMobileCall.getUserVipInfo(" + b.a(false) + ")";
                }
            }).a(AndroidSchedulers.mainThread()).a((rx.b.b) new rx.b.b<String>() {
                @Override
                public void call(String str) {
                    if (e.this.f45732c || webView == null || TextUtils.isEmpty(str)) {
                        return;
                    }
                    webView.loadUrl(str);
                }
            }, new rx.b.b<Throwable>() {
                @Override
                public void call(Throwable th) {
                }
            }));
        }
    }

    public void d() {
        this.f45732c = true;
        ArrayList<l> arrayList = this.i;
        if (arrayList != null) {
            Iterator<l> it = arrayList.iterator();
            while (it.hasNext()) {
                l next = it.next();
                if (!next.isUnsubscribed()) {
                    next.unsubscribe();
                }
            }
        }
    }
}