53 lines
1.8 KiB
Java
53 lines
1.8 KiB
Java
package c.i.a.f.i.b;
|
|
|
|
import android.os.RemoteException;
|
|
import c.i.a.f.h.l.t8;
|
|
import com.google.android.gms.measurement.internal.zzn;
|
|
import java.util.concurrent.atomic.AtomicReference;
|
|
/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */
|
|
public final class v7 implements Runnable {
|
|
public final /* synthetic */ AtomicReference i;
|
|
public final /* synthetic */ zzn j;
|
|
public final /* synthetic */ q7 k;
|
|
|
|
public v7(q7 q7Var, AtomicReference atomicReference, zzn zzn) {
|
|
this.k = q7Var;
|
|
this.i = atomicReference;
|
|
this.j = zzn;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
synchronized (this.i) {
|
|
try {
|
|
if (!t8.b() || !this.k.a.h.o(p.H0) || this.k.l().y().k()) {
|
|
q7 q7Var = this.k;
|
|
i3 i3Var = q7Var.d;
|
|
if (i3Var == null) {
|
|
q7Var.g().f.a("Failed to get app instance id");
|
|
this.i.notify();
|
|
return;
|
|
}
|
|
this.i.set(i3Var.A(this.j));
|
|
String str = (String) this.i.get();
|
|
if (str != null) {
|
|
this.k.n().g.set(str);
|
|
this.k.l().m.b(str);
|
|
}
|
|
this.k.F();
|
|
this.i.notify();
|
|
return;
|
|
}
|
|
this.k.g().k.a("Analytics storage consent denied; will not get app instance id");
|
|
this.k.n().g.set(null);
|
|
this.k.l().m.b(null);
|
|
this.i.set(null);
|
|
} catch (RemoteException e) {
|
|
this.k.g().f.b("Failed to get app instance id", e);
|
|
} finally {
|
|
this.i.notify();
|
|
}
|
|
}
|
|
}
|
|
}
|