package eh2; import android.content.Context; import android.content.Intent; import android.net.Uri; import em3.q; import java.util.Objects; import ki2.c; import ki2.e; import kotlin.Result; import kotlin.ResultKt; import zg2.b; import zg2.f; public final class a { /* JADX WARNING: Code restructure failed: missing block: B:18:0x0051, code lost: if ((r2 == null || r2.length() == 0) != false) goto L_0x0055; */ public static final void a(Context context, Uri uri) { e eVar; e eVar2 = e.a.f102787b; if (eVar2 == null) { try { Result.Companion companion = Result.Companion; eVar = Result.m364constructorimpl((c) rb.a.d(context, c.f102782a)); } catch (Throwable th4) { Result.Companion companion2 = Result.Companion; eVar = Result.m364constructorimpl(ResultKt.createFailure(th4)); } Objects.requireNonNull(c.f102782a); e eVar3 = (e) rb.a.d(context, c.a.f102783c); if (Result.m370isFailureimpl(eVar)) { eVar = eVar3; } eVar2 = (e) eVar; e.a.f102787b = eVar2; } String A = eVar2.A(); String str = null; if (A != null) { String scheme = Uri.parse(A).getScheme(); } A = null; b f14 = f.f(); if (A != null) { str = a1.a.a("https://play.google.com/store/apps/details?id=", A); } Intent K = f14.K(context, uri, str); q.e(K, "getLineAccess().createUr…MarketUrl(it) }\n )"); context.startActivity(K); } }