package com.tapjoy.internal; import java.util.Observable; import java.util.Observer; import java.util.concurrent.CountDownLatch; /* loaded from: classes4.dex */ public final class w2 implements Observer { public final /* synthetic */ CountDownLatch a; public final /* synthetic */ y2 b; public w2(y2 y2Var, CountDownLatch countDownLatch) { this.b = y2Var; this.a = countDownLatch; } @Override // java.util.Observer public final void update(Observable observable, Object obj) { y.b.deleteObserver(this); if (obj instanceof Boolean) { this.b.a = Boolean.TRUE.equals(obj); } else if (obj instanceof String) { y2 y2Var = this.b; String str = (String) obj; y2Var.b = str; y2Var.e.j = str; } this.a.countDown(); } }