package n8;

import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import u.b;

/* loaded from: classes.dex */
public abstract class e0 {

    /* renamed from: a, reason: collision with root package name */
    public static final a f29852a = new a(null);

    /* loaded from: classes.dex */
    public static final class a {
        private a() {
        }

        public /* synthetic */ a(kotlin.jvm.internal.k kVar) {
            this();
        }

        public final void a(Context context, String url) {
            kotlin.jvm.internal.t.g(context, "context");
            kotlin.jvm.internal.t.g(url, "url");
            try {
                try {
                    new b.a().c(context.getColor(h7.f.f20962c)).a().a(context, Uri.parse(url));
                } catch (ActivityNotFoundException unused) {
                    u8.g.f36993k.h(context).x(context);
                }
            } catch (ActivityNotFoundException unused2) {
                context.startActivity(new Intent("android.intent.action.VIEW", Uri.parse(url)));
            }
        }
    }
}
