package com.xiaomi.push.service; import a.f; import android.util.Base64; import com.xiaomi.channel.commonutils.logger.b; import com.xiaomi.push.al; import com.xiaomi.push.bg; import com.xiaomi.push.cx; import com.xiaomi.push.du; import com.xiaomi.push.r; import com.xiaomi.push.service.bv; import java.util.List; public class bw extends al.b { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ bv f31152a; /* renamed from: a reason: collision with other field name */ public boolean f1050a; public bw(bv bvVar) { this.f31152a = bvVar; } @Override // com.xiaomi.push.al.b public void b() { try { du.a a5 = du.a.a(Base64.decode(cx.a(r.m671a(), "https://resolver.msg.xiaomi.net/psc/?t=a", (List<bg>) null), 10)); if (a5 != null) { this.f31152a.f1048a = a5; this.f1050a = true; bv.a(this.f31152a); } } catch (Exception e) { StringBuilder h12 = f.h("fetch config failure: "); h12.append(e.getMessage()); b.m107a(h12.toString()); } } @Override // com.xiaomi.push.al.b public void c() { bv.a[] aVarArr; this.f31152a.f1047a = null; if (this.f1050a) { synchronized (this.f31152a) { aVarArr = (bv.a[]) bv.a(this.f31152a).toArray(new bv.a[bv.a(this.f31152a).size()]); } for (bv.a aVar : aVarArr) { aVar.a(bv.a(this.f31152a)); } } } }