最右.apk(点击下载) / bt.java


package com.xiaomi.push.service;

import android.text.TextUtils;
import android.util.Base64;
import com.xiaomi.channel.commonutils.logger.b;
import com.xiaomi.push.an;
import com.xiaomi.push.bh;
import com.xiaomi.push.cy;
import com.xiaomi.push.dv$a;
import com.xiaomi.push.p;
import com.xiaomi.push.service.bs;
import com.xiaomi.push.u;
import java.util.List;

public class bt extends an.b {

    /* renamed from: a  reason: collision with root package name */
    public final /* synthetic */ bs f25388a;

    /* renamed from: a  reason: collision with other field name */
    public boolean f987a = false;

    public bt(bs bsVar) {
        this.f25388a = bsVar;
    }

    /* JADX WARNING: Removed duplicated region for block: B:10:0x0039 A[Catch:{ Exception -> 0x0047 }] */
    /* JADX WARNING: Removed duplicated region for block: B:14:? A[RETURN, SYNTHETIC] */
    @Override // com.xiaomi.push.an.b
    public void b() {
        String str;
        dv$a a2;
        try {
            String a3 = a.a(u.m731a()).a();
            if (!TextUtils.isEmpty(a3)) {
                if (!p.China.name().equals(a3)) {
                    str = "https://resolver.msg.global.xiaomi.net/psc/?t=a";
                    a2 = dv$a.a(Base64.decode(cy.a(u.m731a(), str, (List<bh>) null), 10));
                    if (a2 == null) {
                        this.f25388a.f985a = a2;
                        this.f987a = true;
                        bs.a(this.f25388a);
                        return;
                    }
                    return;
                }
            }
            str = "https://resolver.msg.xiaomi.net/psc/?t=a";
            a2 = dv$a.a(Base64.decode(cy.a(u.m731a(), str, (List<bh>) null), 10));
            if (a2 == null) {
            }
        } catch (Exception e) {
            b.m44a("fetch config failure: " + e.getMessage());
        }
    }

    @Override // com.xiaomi.push.an.b
    public void c() {
        bs.a[] aVarArr;
        this.f25388a.f984a = null;
        if (this.f987a) {
            synchronized (this.f25388a) {
                aVarArr = (bs.a[]) bs.a(this.f25388a).toArray(new bs.a[bs.a(this.f25388a).size()]);
            }
            for (bs.a aVar : aVarArr) {
                aVar.a(bs.a(this.f25388a));
            }
        }
    }
}