- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
66 lines
1.9 KiB
Java
66 lines
1.9 KiB
Java
package com.ironsource.sdk.service.Connectivity;
|
|
|
|
import android.content.BroadcastReceiver;
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import android.content.IntentFilter;
|
|
import android.util.Log;
|
|
import com.ironsource.i9;
|
|
import com.ironsource.mediationsdk.logger.IronLog;
|
|
import com.ironsource.s8;
|
|
import com.ironsource.yd;
|
|
import com.ironsource.zd;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public class BroadcastReceiverStrategy implements yd {
|
|
private final zd a;
|
|
private BroadcastReceiver b = new BroadcastReceiver() { // from class: com.ironsource.sdk.service.Connectivity.BroadcastReceiverStrategy.1
|
|
@Override // android.content.BroadcastReceiver
|
|
public void onReceive(Context context, Intent intent) {
|
|
String b = s8.b(context);
|
|
if (b.equals("none")) {
|
|
BroadcastReceiverStrategy.this.a.a();
|
|
} else {
|
|
BroadcastReceiverStrategy.this.a.a(b, new JSONObject());
|
|
}
|
|
}
|
|
};
|
|
|
|
public BroadcastReceiverStrategy(zd zdVar) {
|
|
this.a = zdVar;
|
|
}
|
|
|
|
@Override // com.ironsource.yd
|
|
public void a() {
|
|
this.b = null;
|
|
}
|
|
|
|
@Override // com.ironsource.yd
|
|
public void a(Context context) {
|
|
try {
|
|
context.unregisterReceiver(this.b);
|
|
} catch (IllegalArgumentException e) {
|
|
i9.d().a(e);
|
|
} catch (Exception e2) {
|
|
i9.d().a(e2);
|
|
Log.e("ContentValues", "unregisterConnectionReceiver - " + e2);
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.yd
|
|
public void b(Context context) {
|
|
try {
|
|
context.registerReceiver(this.b, new IntentFilter("android.net.conn.CONNECTIVITY_CHANGE"));
|
|
} catch (Exception e) {
|
|
i9.d().a(e);
|
|
IronLog.INTERNAL.error(e.toString());
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.yd
|
|
public JSONObject c(Context context) {
|
|
return new JSONObject();
|
|
}
|
|
}
|