51 lines
1.1 KiB
Java
51 lines
1.1 KiB
Java
package com.google.android.gms.common.internal;
|
|
|
|
import android.util.Log;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract class zzc {
|
|
private Object zza;
|
|
private boolean zzb = false;
|
|
final BaseGmsClient zzd;
|
|
|
|
protected abstract void zza(Object obj);
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
public abstract void zzc();
|
|
|
|
public final void zze() {
|
|
Object obj;
|
|
synchronized (this) {
|
|
obj = this.zza;
|
|
if (this.zzb) {
|
|
Log.w("GmsClient", "Callback proxy " + toString() + " being reused. This is not safe.");
|
|
}
|
|
}
|
|
if (obj != null) {
|
|
zza(obj);
|
|
}
|
|
synchronized (this) {
|
|
this.zzb = true;
|
|
}
|
|
zzg();
|
|
}
|
|
|
|
public final void zzf() {
|
|
synchronized (this) {
|
|
this.zza = null;
|
|
}
|
|
}
|
|
|
|
public final void zzg() {
|
|
zzf();
|
|
synchronized (BaseGmsClient.zzf(this.zzd)) {
|
|
BaseGmsClient.zzf(this.zzd).remove(this);
|
|
}
|
|
}
|
|
|
|
public zzc(BaseGmsClient baseGmsClient, Object obj) {
|
|
this.zzd = baseGmsClient;
|
|
this.zza = obj;
|
|
}
|
|
}
|