Files
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

29 lines
1020 B
Java

package com.google.android.gms.measurement.internal;
import android.os.Bundle;
import androidx.annotation.NonNull;
/* loaded from: classes3.dex */
public final class zzio {
public static <T> T zza(@NonNull Bundle bundle, String str, Class<T> cls, T t) {
T t2 = (T) bundle.get(str);
if (t2 == null) {
return t;
}
if (cls.isAssignableFrom(t2.getClass())) {
return t2;
}
throw new IllegalStateException(String.format("Invalid conditional user property field type. '%s' expected [%s] but was [%s]", str, cls.getCanonicalName(), t2.getClass().getCanonicalName()));
}
public static void zza(@NonNull Bundle bundle, @NonNull Object obj) {
if (obj instanceof Double) {
bundle.putDouble("value", ((Double) obj).doubleValue());
} else if (obj instanceof Long) {
bundle.putLong("value", ((Long) obj).longValue());
} else {
bundle.putString("value", obj.toString());
}
}
}