- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
26 lines
727 B
Java
26 lines
727 B
Java
package com.ironsource;
|
|
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import android.net.Uri;
|
|
import android.text.TextUtils;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class vt {
|
|
public static void a(Context context, String str) throws Exception {
|
|
a(context, str, null);
|
|
}
|
|
|
|
public static void a(Context context, String str, String str2) throws Exception {
|
|
if (TextUtils.isEmpty(str)) {
|
|
throw new Exception("url is null");
|
|
}
|
|
Intent intent = new Intent("android.intent.action.VIEW");
|
|
intent.setData(Uri.parse(str));
|
|
if (!TextUtils.isEmpty(str2)) {
|
|
intent.setPackage(str2);
|
|
}
|
|
context.startActivity(intent);
|
|
}
|
|
}
|