- 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
64 lines
2.2 KiB
Java
64 lines
2.2 KiB
Java
package com.vungle.ads.internal.util;
|
|
|
|
import android.content.BroadcastReceiver;
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import com.vungle.ads.internal.ui.VungleWebClient;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public final class RingerModeReceiver extends BroadcastReceiver {
|
|
private VungleWebClient webClient;
|
|
|
|
public final VungleWebClient getWebClient() {
|
|
return this.webClient;
|
|
}
|
|
|
|
public final void setWebClient(VungleWebClient vungleWebClient) {
|
|
this.webClient = vungleWebClient;
|
|
}
|
|
|
|
@Override // android.content.BroadcastReceiver
|
|
public void onReceive(Context context, Intent intent) {
|
|
String action;
|
|
VungleWebClient vungleWebClient;
|
|
if (intent != null) {
|
|
try {
|
|
action = intent.getAction();
|
|
} catch (Exception e) {
|
|
String localizedMessage = e.getLocalizedMessage();
|
|
if (localizedMessage != null) {
|
|
Logger.Companion.e("RingerModeReceiver", localizedMessage);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
} else {
|
|
action = null;
|
|
}
|
|
if (Intrinsics.areEqual(action, "android.media.RINGER_MODE_CHANGED")) {
|
|
int intExtra = intent.getIntExtra("android.media.EXTRA_RINGER_MODE", -1);
|
|
Logger.Companion.d("RingerModeReceiver", "receive ringermode: " + intExtra);
|
|
if (intExtra == 0) {
|
|
VungleWebClient vungleWebClient2 = this.webClient;
|
|
if (vungleWebClient2 != null) {
|
|
vungleWebClient2.notifySilentModeChange(true);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (intExtra != 1) {
|
|
if (intExtra == 2 && (vungleWebClient = this.webClient) != null) {
|
|
vungleWebClient.notifySilentModeChange(false);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
VungleWebClient vungleWebClient3 = this.webClient;
|
|
if (vungleWebClient3 != null) {
|
|
vungleWebClient3.notifySilentModeChange(true);
|
|
}
|
|
}
|
|
}
|
|
}
|