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

51 lines
1.5 KiB
Java

package o;
import android.content.Context;
import android.content.ContextWrapper;
import android.content.res.AssetManager;
import android.content.res.Resources;
/* loaded from: classes.dex */
public final class ZzE extends ContextWrapper {
private final Resources.Theme b;
private final Resources e;
@Override // android.content.ContextWrapper, android.content.Context
public final Resources.Theme getTheme() {
Resources.Theme theme = this.b;
return theme == null ? super.getTheme() : theme;
}
@Override // android.content.ContextWrapper, android.content.Context
public final void setTheme(int i) {
Resources.Theme theme = this.b;
if (theme == null) {
super.setTheme(i);
} else {
theme.applyStyle(i, true);
}
}
@Override // android.content.ContextWrapper, android.content.Context
public final AssetManager getAssets() {
return this.e.getAssets();
}
public static Context b(Context context) {
if (!(context instanceof ZzE) && !(context.getResources() instanceof gcL) && !(context.getResources() instanceof Itu)) {
Itu.a();
}
return context;
}
@Override // android.content.ContextWrapper
public final void attachBaseContext(Context context) {
super.attachBaseContext(context);
}
@Override // android.content.ContextWrapper, android.content.Context
public final Resources getResources() {
return this.e;
}
}