40 lines
1.4 KiB
Java
40 lines
1.4 KiB
Java
package com.google.android.gms.common.internal;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class RootTelemetryConfigManager {
|
|
private static RootTelemetryConfigManager zza;
|
|
private static final RootTelemetryConfiguration zzb = new RootTelemetryConfiguration(0, false, false, 0, 0);
|
|
private RootTelemetryConfiguration zzc;
|
|
|
|
public final void zza(RootTelemetryConfiguration rootTelemetryConfiguration) {
|
|
synchronized (this) {
|
|
if (rootTelemetryConfiguration == null) {
|
|
this.zzc = zzb;
|
|
return;
|
|
}
|
|
RootTelemetryConfiguration rootTelemetryConfiguration2 = this.zzc;
|
|
if (rootTelemetryConfiguration2 == null || rootTelemetryConfiguration2.getVersion() < rootTelemetryConfiguration.getVersion()) {
|
|
this.zzc = rootTelemetryConfiguration;
|
|
}
|
|
}
|
|
}
|
|
|
|
public final RootTelemetryConfiguration getConfig() {
|
|
return this.zzc;
|
|
}
|
|
|
|
public static RootTelemetryConfigManager getInstance() {
|
|
RootTelemetryConfigManager rootTelemetryConfigManager;
|
|
synchronized (RootTelemetryConfigManager.class) {
|
|
if (zza == null) {
|
|
zza = new RootTelemetryConfigManager();
|
|
}
|
|
rootTelemetryConfigManager = zza;
|
|
}
|
|
return rootTelemetryConfigManager;
|
|
}
|
|
|
|
private RootTelemetryConfigManager() {
|
|
}
|
|
}
|