what-the-bank/sources/com/google/android/gms/internal/gtm/zzex.java

43 lines
1.4 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.gtm;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
/* loaded from: classes.dex */
class zzex extends BroadcastReceiver {
private static final String zzabm = "com.google.android.gms.internal.gtm.zzex";
private final zzfn zzaof;
/* JADX INFO: Access modifiers changed from: package-private */
public zzex(zzfn zzfnVar) {
this.zzaof = zzfnVar;
}
@Override // android.content.BroadcastReceiver
public void onReceive(Context context, Intent intent) {
String action = intent.getAction();
if ("android.net.conn.CONNECTIVITY_CHANGE".equals(action)) {
Bundle extras = intent.getExtras();
Boolean bool = Boolean.FALSE;
if (extras != null) {
bool = Boolean.valueOf(intent.getExtras().getBoolean("noConnectivity"));
}
this.zzaof.zzf(!bool.booleanValue());
return;
}
if (!"com.google.analytics.RADIO_POWERED".equals(action) || intent.hasExtra(zzabm)) {
return;
}
this.zzaof.zzjp();
}
public static void zzn(Context context) {
Intent intent = new Intent("com.google.analytics.RADIO_POWERED");
intent.addCategory(context.getPackageName());
intent.putExtra(zzabm, true);
context.sendBroadcast(intent);
}
}