- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
57 lines
1.7 KiB
Java
57 lines
1.7 KiB
Java
package com.google.android.gms.common.internal;
|
|
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import androidx.annotation.VisibleForTesting;
|
|
import com.google.android.gms.common.annotation.KeepForSdk;
|
|
|
|
@KeepForSdk
|
|
/* loaded from: classes2.dex */
|
|
public final class RootTelemetryConfigManager {
|
|
|
|
@Nullable
|
|
private static RootTelemetryConfigManager zza;
|
|
private static final RootTelemetryConfiguration zzb = new RootTelemetryConfiguration(0, false, false, 0, 0);
|
|
|
|
@Nullable
|
|
private RootTelemetryConfiguration zzc;
|
|
|
|
private RootTelemetryConfigManager() {
|
|
}
|
|
|
|
@NonNull
|
|
@KeepForSdk
|
|
public static synchronized RootTelemetryConfigManager getInstance() {
|
|
RootTelemetryConfigManager rootTelemetryConfigManager;
|
|
synchronized (RootTelemetryConfigManager.class) {
|
|
try {
|
|
if (zza == null) {
|
|
zza = new RootTelemetryConfigManager();
|
|
}
|
|
rootTelemetryConfigManager = zza;
|
|
} catch (Throwable th) {
|
|
throw th;
|
|
}
|
|
}
|
|
return rootTelemetryConfigManager;
|
|
}
|
|
|
|
@Nullable
|
|
@KeepForSdk
|
|
public RootTelemetryConfiguration getConfig() {
|
|
return this.zzc;
|
|
}
|
|
|
|
@VisibleForTesting
|
|
public final synchronized void zza(@Nullable RootTelemetryConfiguration rootTelemetryConfiguration) {
|
|
if (rootTelemetryConfiguration == null) {
|
|
this.zzc = zzb;
|
|
return;
|
|
}
|
|
RootTelemetryConfiguration rootTelemetryConfiguration2 = this.zzc;
|
|
if (rootTelemetryConfiguration2 == null || rootTelemetryConfiguration2.getVersion() < rootTelemetryConfiguration.getVersion()) {
|
|
this.zzc = rootTelemetryConfiguration;
|
|
}
|
|
}
|
|
}
|