京东到家.apk(点击下载) / az.java


package com.xiaomi.push.service;

import android.util.Base64;
import com.xiaomi.channel.commonutils.logger.b;
import com.xiaomi.push.bx;
import com.xiaomi.push.cu;
import com.xiaomi.push.ix;
import com.xiaomi.push.n;
import com.xiaomi.push.service.ay;

/* access modifiers changed from: package-private */
public final class az extends n.b {
    boolean a = false;
    final /* synthetic */ ay b;

    az(ay ayVar) {
        this.b = ayVar;
    }

    @Override // com.xiaomi.push.n.b
    public final void a() {
        try {
            cu.a aVar = (cu.a) new cu.a().b(Base64.decode(bx.a(ix.a(), "https://resolver.msg.xiaomi.net/psc/?t=a", new bx.a()), 10));
            if (aVar != null) {
                this.b.a = aVar;
                this.a = true;
                ay.a(this.b);
            }
        } catch (Exception e) {
            b.a("fetch config failure: " + e.getMessage());
        }
    }

    @Override // com.xiaomi.push.n.b
    public final void b() {
        ay.a[] aVarArr;
        this.b.d = null;
        if (this.a) {
            synchronized (this.b) {
                aVarArr = (ay.a[]) this.b.f2812c.toArray(new ay.a[this.b.f2812c.size()]);
            }
            int length = aVarArr.length;
            for (int i = 0; i < length; i++) {
                cu.a unused = this.b.a;
            }
        }
    }
}