jimu-decompiled/sources/com/ubt/jimu/utils/ResoureUtils.java
2025-05-13 19:24:51 +02:00

18 lines
559 B
Java

package com.ubt.jimu.utils;
import android.content.Context;
import android.content.pm.PackageManager;
/* loaded from: classes2.dex */
public class ResoureUtils {
public static int a(Context context, String str, String str2) {
String packageName = context.getPackageName();
try {
return context.getPackageManager().getResourcesForApplication(packageName).getIdentifier(str, str2, packageName);
} catch (PackageManager.NameNotFoundException e) {
e.printStackTrace();
return 0;
}
}
}