jimu-decompiled/sources/com/tencent/mm/opensdk/utils/a.java
2025-05-13 19:24:51 +02:00

31 lines
790 B
Java

package com.tencent.mm.opensdk.utils;
import android.os.Bundle;
/* loaded from: classes.dex */
public final class a {
public static int a(Bundle bundle, String str) {
if (bundle == null) {
return -1;
}
try {
return bundle.getInt(str, -1);
} catch (Exception e) {
Log.e("MicroMsg.IntentUtil", "getIntExtra exception:" + e.getMessage());
return -1;
}
}
public static String b(Bundle bundle, String str) {
if (bundle == null) {
return null;
}
try {
return bundle.getString(str);
} catch (Exception e) {
Log.e("MicroMsg.IntentUtil", "getStringExtra exception:" + e.getMessage());
return null;
}
}
}