- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
53 lines
1.3 KiB
Java
53 lines
1.3 KiB
Java
package com.ironsource;
|
|
|
|
import android.content.Context;
|
|
import com.ironsource.sdk.service.Connectivity.BroadcastReceiverStrategy;
|
|
import com.ironsource.sdk.utils.Logger;
|
|
import com.ironsource.v8;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public abstract class p8 implements zd {
|
|
private yd a;
|
|
|
|
public p8(JSONObject jSONObject, Context context) {
|
|
this.a = a(jSONObject, context);
|
|
Logger.i(p8.class.getSimpleName(), "created ConnectivityAdapter with strategy " + this.a.getClass().getSimpleName());
|
|
}
|
|
|
|
private yd a(JSONObject jSONObject, Context context) {
|
|
if (jSONObject.optInt(v8.i.g0) != 1 && v3.c(context, "android.permission.ACCESS_NETWORK_STATE")) {
|
|
return new bm(this);
|
|
}
|
|
return new BroadcastReceiverStrategy(this);
|
|
}
|
|
|
|
public JSONObject a(Context context) {
|
|
return this.a.c(context);
|
|
}
|
|
|
|
@Override // com.ironsource.zd
|
|
public void a() {
|
|
}
|
|
|
|
@Override // com.ironsource.zd
|
|
public void a(String str, JSONObject jSONObject) {
|
|
}
|
|
|
|
public void b() {
|
|
this.a.a();
|
|
}
|
|
|
|
public void b(Context context) {
|
|
this.a.b(context);
|
|
}
|
|
|
|
@Override // com.ironsource.zd
|
|
public void b(String str, JSONObject jSONObject) {
|
|
}
|
|
|
|
public void c(Context context) {
|
|
this.a.a(context);
|
|
}
|
|
}
|