31 lines
958 B
Java
31 lines
958 B
Java
|
package o;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.content.res.Resources;
|
||
|
import android.graphics.drawable.Drawable;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class tqX {
|
||
|
private static volatile boolean d = true;
|
||
|
|
||
|
public static Drawable Fl_(Context context, Context context2, int i, Resources.Theme theme) {
|
||
|
try {
|
||
|
if (d) {
|
||
|
return AgY.dT_(theme != null ? new mhG(context2, theme) : context2, i);
|
||
|
}
|
||
|
} catch (Resources.NotFoundException unused) {
|
||
|
} catch (IllegalStateException e) {
|
||
|
if (context.getPackageName().equals(context2.getPackageName())) {
|
||
|
throw e;
|
||
|
}
|
||
|
return nMh.getDrawable(context2, i);
|
||
|
} catch (NoClassDefFoundError unused2) {
|
||
|
d = false;
|
||
|
}
|
||
|
if (theme == null) {
|
||
|
theme = context2.getTheme();
|
||
|
}
|
||
|
return kVs.nZ_(context2.getResources(), i, theme);
|
||
|
}
|
||
|
}
|