89 lines
2.9 KiB
Java
89 lines
2.9 KiB
Java
package c.i.a.f.i.b;
|
|
|
|
import android.content.ContentValues;
|
|
import android.database.sqlite.SQLiteException;
|
|
import android.os.Bundle;
|
|
import android.text.TextUtils;
|
|
import c.i.a.f.h.l.a1;
|
|
import c.i.a.f.h.l.c1;
|
|
import c.i.a.f.h.l.u4;
|
|
import com.airbnb.lottie.parser.AnimatableValueParser;
|
|
import com.google.android.gms.measurement.internal.zzap;
|
|
import com.google.android.gms.measurement.internal.zzn;
|
|
import java.util.Iterator;
|
|
/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */
|
|
public final /* synthetic */ class y4 implements Runnable {
|
|
public final z4 i;
|
|
public final zzn j;
|
|
public final Bundle k;
|
|
|
|
public y4(z4 z4Var, zzn zzn, Bundle bundle) {
|
|
this.i = z4Var;
|
|
this.j = zzn;
|
|
this.k = bundle;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
zzap zzap;
|
|
z4 z4Var = this.i;
|
|
zzn zzn = this.j;
|
|
Bundle bundle = this.k;
|
|
g K = z4Var.a.K();
|
|
String str = zzn.i;
|
|
K.b();
|
|
K.n();
|
|
u4 u4Var = K.a;
|
|
AnimatableValueParser.w(str);
|
|
AnimatableValueParser.w("dep");
|
|
TextUtils.isEmpty("");
|
|
if (bundle == null || bundle.isEmpty()) {
|
|
zzap = new zzap(new Bundle());
|
|
} else {
|
|
Bundle bundle2 = new Bundle(bundle);
|
|
Iterator<String> it = bundle2.keySet().iterator();
|
|
while (it.hasNext()) {
|
|
String next = it.next();
|
|
if (next == null) {
|
|
u4Var.g().f.a("Param name can't be null");
|
|
it.remove();
|
|
} else {
|
|
Object D = u4Var.t().D(next, bundle2.get(next));
|
|
if (D == null) {
|
|
u4Var.g().i.b("Param value can't be null", u4Var.u().x(next));
|
|
it.remove();
|
|
} else {
|
|
u4Var.t().I(bundle2, next, D);
|
|
}
|
|
}
|
|
}
|
|
zzap = new zzap(bundle2);
|
|
}
|
|
q9 m = K.m();
|
|
a1.a M = a1.M();
|
|
if (M.k) {
|
|
M.n();
|
|
M.k = false;
|
|
}
|
|
a1.E((a1) M.j, 0);
|
|
for (String str2 : zzap.i.keySet()) {
|
|
c1.a Q = c1.Q();
|
|
Q.s(str2);
|
|
m.F(Q, zzap.v0(str2));
|
|
M.s(Q);
|
|
}
|
|
byte[] d = ((a1) ((u4) M.p())).d();
|
|
K.g().n.c("Saving default event parameters, appId, data size", K.d().u(str), Integer.valueOf(d.length));
|
|
ContentValues contentValues = new ContentValues();
|
|
contentValues.put("app_id", str);
|
|
contentValues.put("parameters", d);
|
|
try {
|
|
if (K.t().insertWithOnConflict("default_event_params", null, contentValues, 5) == -1) {
|
|
K.g().f.b("Failed to insert default event parameters (got -1). appId", q3.s(str));
|
|
}
|
|
} catch (SQLiteException e) {
|
|
K.g().f.c("Error storing default event parameters. appId", q3.s(str), e);
|
|
}
|
|
}
|
|
}
|