- 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
88 lines
3.0 KiB
Java
88 lines
3.0 KiB
Java
package com.google.android.gms.internal.ads;
|
|
|
|
import android.app.AlertDialog;
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import android.content.res.Resources;
|
|
import android.provider.CalendarContract;
|
|
import android.text.TextUtils;
|
|
import com.facebook.gamingservices.cloudgaming.internal.SDKConstants;
|
|
import com.google.android.gms.ads.impl.R;
|
|
import com.google.android.gms.drive.DriveFile;
|
|
import java.util.Map;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public final class zzbrz extends zzbsi {
|
|
private final Map zza;
|
|
private final Context zzb;
|
|
private final String zzc;
|
|
private final long zzd;
|
|
private final long zze;
|
|
private final String zzf;
|
|
private final String zzg;
|
|
|
|
public zzbrz(zzcex zzcexVar, Map map) {
|
|
super(zzcexVar, "createCalendarEvent");
|
|
this.zza = map;
|
|
this.zzb = zzcexVar.zzi();
|
|
this.zzc = zze("description");
|
|
this.zzf = zze("summary");
|
|
this.zzd = zzd("start_ticks");
|
|
this.zze = zzd("end_ticks");
|
|
this.zzg = zze("location");
|
|
}
|
|
|
|
private final long zzd(String str) {
|
|
String str2 = (String) this.zza.get(str);
|
|
if (str2 == null) {
|
|
return -1L;
|
|
}
|
|
try {
|
|
return Long.parseLong(str2);
|
|
} catch (NumberFormatException unused) {
|
|
return -1L;
|
|
}
|
|
}
|
|
|
|
private final String zze(String str) {
|
|
return TextUtils.isEmpty((CharSequence) this.zza.get(str)) ? "" : (String) this.zza.get(str);
|
|
}
|
|
|
|
public final Intent zzb() {
|
|
Intent data = new Intent("android.intent.action.EDIT").setData(CalendarContract.Events.CONTENT_URI);
|
|
data.putExtra("title", this.zzc);
|
|
data.putExtra("eventLocation", this.zzg);
|
|
data.putExtra("description", this.zzf);
|
|
long j = this.zzd;
|
|
if (j > -1) {
|
|
data.putExtra("beginTime", j);
|
|
}
|
|
long j2 = this.zze;
|
|
if (j2 > -1) {
|
|
data.putExtra(SDKConstants.PARAM_END_TIME, j2);
|
|
}
|
|
data.setFlags(DriveFile.MODE_READ_ONLY);
|
|
return data;
|
|
}
|
|
|
|
public final void zzc() {
|
|
if (this.zzb == null) {
|
|
zzh("Activity context is not available.");
|
|
return;
|
|
}
|
|
com.google.android.gms.ads.internal.zzv.zzq();
|
|
if (!new zzbbt(this.zzb).zzb()) {
|
|
zzh("This feature is not available on the device.");
|
|
return;
|
|
}
|
|
com.google.android.gms.ads.internal.zzv.zzq();
|
|
AlertDialog.Builder zzL = com.google.android.gms.ads.internal.util.zzs.zzL(this.zzb);
|
|
Resources zze = com.google.android.gms.ads.internal.zzv.zzp().zze();
|
|
zzL.setTitle(zze != null ? zze.getString(R.string.s5) : "Create calendar event");
|
|
zzL.setMessage(zze != null ? zze.getString(R.string.s6) : "Allow Ad to create a calendar event?");
|
|
zzL.setPositiveButton(zze != null ? zze.getString(R.string.s3) : "Accept", new zzbrx(this));
|
|
zzL.setNegativeButton(zze != null ? zze.getString(R.string.s4) : "Decline", new zzbry(this));
|
|
zzL.create().show();
|
|
}
|
|
}
|