- 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
29 lines
1020 B
Java
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());
|
|
}
|
|
}
|
|
}
|