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

24 lines
811 B
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.app.Application;
import android.content.Context;
import android.content.ContextWrapper;
/* renamed from: o.fPf, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C13059fPf {
public static Application aBK_(Context context) {
if (context instanceof Application) {
return (Application) context;
}
Context context2 = context;
while (context2 instanceof ContextWrapper) {
context2 = ((ContextWrapper) context2).getBaseContext();
if (context2 instanceof Application) {
return (Application) context2;
}
}
throw new IllegalStateException("Could not find an Application in the given context: ".concat(String.valueOf(context)));
}
}