what-the-bank/sources/o/C13073fPt.java

47 lines
1.7 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.app.Activity;
import android.app.Application;
import androidx.activity.ComponentActivity;
/* renamed from: o.fPt, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C13073fPt implements fPC<Object> {
private Activity a;
private volatile Object b;
private final fPC<InterfaceC13054fPa> d;
private final Object e = new Object();
/* renamed from: o.fPt$Sts */
/* loaded from: classes5.dex */
public interface Sts {
InterfaceC13064fPk b();
}
public C13073fPt(Activity activity) {
this.a = activity;
this.d = new C13070fPq((ComponentActivity) activity);
}
@Override // o.fPC
public final Object y_() {
if (this.b == null) {
synchronized (this.e) {
if (this.b == null) {
if (this.a.getApplication() instanceof fPC) {
this.b = ((Sts) fOV.c(this.d, Sts.class)).b().aBL_(this.a).b();
} else {
if (Application.class.equals(this.a.getApplication().getClass())) {
throw new IllegalStateException("Hilt Activity must be attached to an @HiltAndroidApp Application. Did you forget to specify your Application's class name in your manifest's <application />'s android:name attribute?");
}
StringBuilder sb = new StringBuilder("Hilt Activity must be attached to an @AndroidEntryPoint Application. Found: ");
sb.append(this.a.getApplication().getClass());
throw new IllegalStateException(sb.toString());
}
}
}
}
return this.b;
}
}