package X; import android.content.Intent; import android.net.Uri; import com.bytedance.covode.number.Covode; import kotlin.g.b.m; public final class GZX extends AnonymousClass1PL implements AnonymousClass1IM<IJ9, C23860x5> { public final /* synthetic */ GZY LIZ; static { Covode.recordClassIndex(108420); } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public GZX(GZY gzy) { super(1); this.LIZ = gzy; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // X.AnonymousClass1IM public final /* synthetic */ C23860x5 invoke(IJ9 ij9) { C21090sc.LIZ(ij9); GZT gzt = this.LIZ.LIZ.LIZ; gzt.LIZ("rating_submit"); gzt.LIZ.LIZIZ(true); Intent intent = new Intent("android.intent.action.VIEW"); try { StringBuilder sb = new StringBuilder("market://details?id="); C98113tY r0 = gzt.LIZIZ; if (r0 == null) { m.LIZ(""); } intent.setData(Uri.parse(sb.append(r0.LJ).toString())); if (intent.resolveActivity(gzt.LIZJ.getPackageManager()) != null) { GZT.LIZ(gzt.LIZJ, intent); } else { StringBuilder sb2 = new StringBuilder("https://play.google.com/store/apps/details?id="); C98113tY r02 = gzt.LIZIZ; if (r02 == null) { m.LIZ(""); } intent.setData(Uri.parse(sb2.append(r02.LJ).toString())); if (intent.resolveActivity(gzt.LIZJ.getPackageManager()) != null) { GZT.LIZ(gzt.LIZJ, intent); } } } catch (Exception unused) { StringBuilder sb3 = new StringBuilder("https://play.google.com/store/apps/details?id="); C98113tY r03 = gzt.LIZIZ; if (r03 == null) { m.LIZ(""); } intent.setData(Uri.parse(sb3.append(r03.LJ).toString())); if (intent.resolveActivity(gzt.LIZJ.getPackageManager()) != null) { GZT.LIZ(gzt.LIZJ, intent); } } return C23860x5.LIZ; } }