24 lines
811 B
Java
24 lines
811 B
Java
|
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)));
|
||
|
}
|
||
|
}
|