what-the-bank/sources/com/google/android/gms/common/api/internal/DataHolderNotifier.java

29 lines
918 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.common.api.internal;
import com.google.android.gms.common.api.internal.ListenerHolder;
import com.google.android.gms.common.data.DataHolder;
/* loaded from: classes.dex */
public abstract class DataHolderNotifier<L> implements ListenerHolder.Notifier<L> {
private final DataHolder zaa;
@Override // com.google.android.gms.common.api.internal.ListenerHolder.Notifier
public final void notifyListener(L l) {
notifyListener(l, this.zaa);
}
protected abstract void notifyListener(L l, DataHolder dataHolder);
@Override // com.google.android.gms.common.api.internal.ListenerHolder.Notifier
public void onNotifyListenerFailed() {
DataHolder dataHolder = this.zaa;
if (dataHolder != null) {
dataHolder.close();
}
}
protected DataHolderNotifier(DataHolder dataHolder) {
this.zaa = dataHolder;
}
}