Files
rr3-apk/decompiled/sources/com/mbridge/msdk/foundation/tools/x.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

40 lines
1.2 KiB
Java

package com.mbridge.msdk.foundation.tools;
import android.content.Context;
import android.content.res.Resources;
/* loaded from: classes4.dex */
public final class x {
public static int a(Context context, String str, String str2) {
String str3 = "";
try {
try {
str3 = com.mbridge.msdk.foundation.controller.c.m().g();
} catch (Exception unused) {
af.b("ResourceUtil", "MBSDKContext.getInstance() is null resName:" + str);
}
if (ap.a(str3) && context != null) {
str3 = context.getPackageName();
}
if (ap.a(str3) || context == null) {
return -1;
}
return context.getResources().getIdentifier(str, str2, str3);
} catch (Exception unused2) {
af.b("ResourceUtil", "Resource not found resName:" + str);
return -1;
}
}
public static Resources a(Context context) {
if (context != null) {
try {
return context.getResources();
} catch (Exception e) {
af.b("ResourceUtil", "Resource error:" + e.getMessage());
}
}
return null;
}
}