LINE.apk(点击下载) / b0.java


package gi1;

import android.content.ActivityNotFoundException;
import android.content.Intent;
import android.view.View;
import b.d;
import com.linecorp.line.constants.BuildConfig;
import com.linecorp.line.story.impl.viewer.view.controller.StoryViewerCallback;
import dm3.l;
import dz.a;
import em3.q;
import em3.s;
import fn.g;
import java.util.Objects;
import kotlin.Unit;
import ri1.c;
import zg1.o;

public final class b0 extends s implements l<View, Unit> {

    /* renamed from: b  reason: collision with root package name */
    public final /* synthetic */ a0 f76961b;

    /* renamed from: c  reason: collision with root package name */
    public final /* synthetic */ c f76962c;

    /* JADX INFO: super call moved to the top of the method (can break code semantics) */
    public b0(a0 a0Var, c cVar) {
        super(1);
        this.f76961b = a0Var;
        this.f76962c = cVar;
    }

    /* 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 // dm3.l
    public Unit invoke(View view) {
        View view2 = view;
        q.f(view2, "view");
        StoryViewerCallback storyViewerCallback = this.f76961b.f76943c;
        c cVar = this.f76962c;
        Objects.requireNonNull(storyViewerCallback);
        q.f(cVar, "contentViewModel");
        if (a.n(view2)) {
            storyViewerCallback.k(o.APP_UPDATE, null);
            StringBuilder sb4 = new StringBuilder();
            sb4.append("market://details?id=");
            Intent addFlags = new Intent("android.intent.action.VIEW", g.a(sb4, BuildConfig.APPLICATION_ID)).addFlags(268435456).addFlags(67108864).addFlags(2097152);
            q.e(addFlags, "Intent(Intent.ACTION_VIE…ITY_RESET_TASK_IF_NEEDED)");
            try {
                storyViewerCallback.f42783b.startActivity(addFlags);
            } catch (ActivityNotFoundException unused) {
                storyViewerCallback.f42783b.startActivity(new Intent("android.intent.action.VIEW", g.a(d.a("https://play.google.com/store/apps/details?id="), BuildConfig.APPLICATION_ID)));
            }
            cVar.h(3);
        }
        return Unit.INSTANCE;
    }
}