Weather Tracker v1.0.0版本的 MD5 值为:3edef27647e42a8ea0e7c0d2dbf56f97
以下内容为反编译后的 b.java 源代码,内容仅作参考
package com.applovin.impl.mediation.debugger.ui.c;
import android.content.Context;
import android.text.SpannableString;
import android.text.SpannedString;
import android.text.TextUtils;
import android.text.style.AbsoluteSizeSpan;
import androidx.annotation.Nullable;
import com.applovin.impl.mediation.debugger.b.c.b;
import com.applovin.impl.mediation.debugger.ui.d.c;
import com.applovin.impl.mediation.debugger.ui.d.d;
import com.applovin.impl.mediation.debugger.ui.d.e;
import com.applovin.impl.sdk.o;
import com.applovin.impl.sdk.utils.CollectionUtils;
import com.applovin.impl.sdk.utils.StringUtils;
import com.applovin.impl.sdk.utils.g;
import com.applovin.mediation.adapter.MaxAdapter;
import com.applovin.sdk.AppLovinPrivacySettings;
import com.applovin.sdk.R;
import java.util.ArrayList;
import java.util.List;
public class b extends d {
private final com.applovin.impl.mediation.debugger.b.c.b a;
private List<c> f1134b;
private final List<c> d;
private final List<c> e;
private final List<c> f;
private final List<c> g;
private SpannedString h;
public enum a {
INTEGRATIONS,
PERMISSIONS,
CONFIGURATION,
DEPENDENCIES,
TEST_ADS,
COUNT
}
public b(com.applovin.impl.mediation.debugger.b.c.b bVar, Context context) {
super(context);
this.a = bVar;
if (bVar.a() == b.a.INVALID_INTEGRATION) {
SpannableString spannableString = new SpannableString("Tap for more information");
spannableString.setSpan(new AbsoluteSizeSpan(12, true), 0, spannableString.length(), 33);
this.h = new SpannedString(spannableString);
} else {
this.h = new SpannedString("");
}
this.f1134b = c();
this.d = a(bVar.r());
this.e = h();
this.f = b(bVar.s());
this.g = i();
notifyDataSetChanged();
}
private c d() {
c.a b2 = c.p().a("SDK").b(this.a.j());
if (TextUtils.isEmpty(this.a.j())) {
b2.a(a(this.a.d())).c(c(this.a.d()));
}
return b2.a();
}
private c f() {
c.a b2 = c.p().a("Adapter").b(this.a.k());
if (TextUtils.isEmpty(this.a.k())) {
b2.a(a(this.a.e())).c(c(this.a.e()));
}
return b2.a();
}
@Nullable
private c g() {
if (this.a.u()) {
return null;
}
return c.p().a("Initialization Status").b(e(this.a.b())).a(false).a();
}
private List<c> h() {
ArrayList arrayList = new ArrayList(1);
if (this.a.t()) {
arrayList.add(a("Java 8", "For optimal performance, please enable Java 8 support. See: https://dash.applovin.com/documentation/mediation/android/getting-started/integration", o.aw(), true));
}
return arrayList;
}
private List<c> i() {
ArrayList arrayList = new ArrayList(3);
if (StringUtils.isValidString(this.a.w())) {
arrayList.add(c.a(c.b.DETAIL).a(this.a.w()).a());
}
if (this.a.c() == b.EnumC0092b.NOT_SUPPORTED) {
return arrayList;
}
if (this.a.n() != null) {
arrayList.add(c(this.a.n()));
}
if (this.a.x()) {
arrayList.add(a("Not an Age Restricted User", "Test mode requires Age Restricted User (COPPA) to be set to false.", !AppLovinPrivacySettings.isAgeRestrictedUser(this.c) && AppLovinPrivacySettings.isAgeRestrictedUserSet(this.c), false));
}
arrayList.add(a(this.a.c()));
return arrayList;
}
public com.applovin.impl.mediation.debugger.b.c.b a() {
return this.a;
}
public void b() {
this.f1134b = c();
}
@Override
protected List<c> c(int i) {
if (i == a.INTEGRATIONS.ordinal()) {
return this.f1134b;
}
if (i == a.PERMISSIONS.ordinal()) {
return this.d;
}
if (i == a.CONFIGURATION.ordinal()) {
return this.e;
}
if (i == a.DEPENDENCIES.ordinal()) {
return this.f;
}
return this.g;
}
@Override
protected int e() {
return a.COUNT.ordinal();
}
public String toString() {
return "MediatedNetworkListAdapter{}";
}
private String e(int i) {
return (MaxAdapter.InitializationStatus.INITIALIZED_SUCCESS.getCode() == i || MaxAdapter.InitializationStatus.INITIALIZED_UNKNOWN.getCode() == i || MaxAdapter.InitializationStatus.DOES_NOT_APPLY.getCode() == i) ? "Initialized" : MaxAdapter.InitializationStatus.INITIALIZED_FAILURE.getCode() == i ? "Failure" : MaxAdapter.InitializationStatus.INITIALIZING.getCode() == i ? "Initializing..." : "Not Initialized";
}
public boolean a(com.applovin.impl.mediation.debugger.ui.d.a aVar) {
return aVar.a() == a.TEST_ADS.ordinal() && aVar.b() == this.g.size() - 1;
}
@Override
protected c b(int i) {
if (i == a.INTEGRATIONS.ordinal()) {
return new e("INTEGRATIONS");
}
if (i == a.PERMISSIONS.ordinal()) {
return new e("PERMISSIONS");
}
if (i == a.CONFIGURATION.ordinal()) {
return new e("CONFIGURATION");
}
if (i == a.DEPENDENCIES.ordinal()) {
return new e("DEPENDENCIES");
}
return new e("TEST ADS");
}
@Override
protected int a(int i) {
if (i == a.INTEGRATIONS.ordinal()) {
return this.f1134b.size();
}
if (i == a.PERMISSIONS.ordinal()) {
return this.d.size();
}
if (i == a.CONFIGURATION.ordinal()) {
return this.e.size();
}
if (i == a.DEPENDENCIES.ordinal()) {
return this.f.size();
}
return this.g.size();
}
private int d(boolean z) {
return g.a(z ? R.color.applovin_sdk_xmarkColor : R.color.applovin_sdk_warningColor, this.c);
}
private List<c> c() {
ArrayList arrayList = new ArrayList(3);
CollectionUtils.addObjectIfExists(d(), arrayList);
CollectionUtils.addObjectIfExists(f(), arrayList);
CollectionUtils.addObjectIfExists(g(), arrayList);
return arrayList;
}
private List<c> b(List<com.applovin.impl.mediation.debugger.b.c.a> list) {
ArrayList arrayList = new ArrayList(list.size());
if (list.size() > 0) {
for (com.applovin.impl.mediation.debugger.b.c.a aVar : list) {
arrayList.add(a(aVar.a(), aVar.b(), aVar.c(), true));
}
}
return arrayList;
}
private List<c> a(List<com.applovin.impl.mediation.debugger.b.c.c> list) {
ArrayList arrayList = new ArrayList(list.size());
if (list.size() > 0) {
for (com.applovin.impl.mediation.debugger.b.c.c cVar : list) {
arrayList.add(a(cVar.a(), cVar.b(), cVar.c(), true));
}
}
return arrayList;
}
private c c(List<String> list) {
return c.p().a("Region/VPN Required").b(CollectionUtils.implode(list, ", ", list.size())).a();
}
private int b(boolean z) {
return z ? R.drawable.applovin_ic_x_mark : R.drawable.applovin_ic_warning;
}
private int c(boolean z) {
return g.a(z ? R.color.applovin_sdk_checkmarkColor : R.color.applovin_sdk_xmarkColor, this.c);
}
private c a(b.EnumC0092b enumC0092b) {
c.a p = c.p();
if (enumC0092b == b.EnumC0092b.READY) {
p.a(this.c);
}
return p.a("Test Mode").b(enumC0092b.a()).b(enumC0092b.b()).c("Restart Required").d(enumC0092b.c()).a(true).a();
}
private c a(String str, String str2, boolean z, boolean z2) {
return c.a(z ? c.b.RIGHT_DETAIL : c.b.DETAIL).a(str).b(z ? null : this.h).c("Instructions").d(str2).a(z ? R.drawable.applovin_ic_check_mark_bordered : b(z2)).c(z ? g.a(R.color.applovin_sdk_checkmarkColor, this.c) : d(z2)).a(!z).a();
}
private int a(boolean z) {
return z ? R.drawable.applovin_ic_check_mark_bordered : R.drawable.applovin_ic_x_mark;
}
}