WeChat.apk(点击下载) / a.java


package wr2;

import android.app.Activity;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import bw3.lq2;
import com.tencent.live2.jsplugin.V2TXJSAdapterConstants;
import com.tencent.mm.R;
import com.tencent.mm.plugin.mmsight.segment.FFmpegMetadataRetriever;
import com.tencent.mm.sdk.platformtools.Log;
import com.tencent.mm.sdk.platformtools.MTimerHandler;
import com.tencent.mm.sdk.platformtools.Util;
import i14.j;
import nf0.p3;
import p64.i0;
import ur2.b;
import yf0.n;
import yf0.y;

public class a implements n {

    /* renamed from: d  reason: collision with root package name */
    public b f335068d;

    /* renamed from: e  reason: collision with root package name */
    public i0 f335069e;

    /* renamed from: f  reason: collision with root package name */
    public MTimerHandler f335070f = new MTimerHandler(new C5985a(), false);

    /* renamed from: g  reason: collision with root package name */
    public Activity f335071g;

    /* renamed from: wr2.a$a  reason: collision with other inner class name */
    public class C5985a implements MTimerHandler.CallBack {

        /* renamed from: wr2.a$a$a  reason: collision with other inner class name */
        public class DialogInterface$OnCancelListenerC5986a implements DialogInterface.OnCancelListener {
            public DialogInterface$OnCancelListenerC5986a() {
            }

            public void onCancel(DialogInterface dialogInterface) {
                p3.e().d(a.this.f335068d);
                a.this.f335069e = null;
            }
        }

        public C5985a() {
        }

        @Override // com.tencent.mm.sdk.platformtools.MTimerHandler.CallBack
        public boolean onTimerExpired() {
            if (a.this.f335071g.isFinishing()) {
                return false;
            }
            a aVar = a.this;
            Activity activity = aVar.f335071g;
            aVar.f335069e = j.Q(activity, activity.getString(R.string.f367625yv), a.this.f335071g.getString(R.string.f367656zq), false, true, new DialogInterface$OnCancelListenerC5986a());
            return false;
        }
    }

    public a(Activity activity) {
        this.f335071g = activity;
    }

    public void a(String str, String str2) {
        if (str == null) {
            Log.e("MicroMsg.ViewTWeibo", "null weibo id");
            return;
        }
        p3.e().a(205, this);
        this.f335068d = new b(Util.nullAsNil(str).replace("http://t.qq.com/", "").trim(), str2);
        p3.e().f(this.f335068d);
        this.f335070f.startTimer(3000);
    }

    public final void b(String str) {
        this.f335070f.stopTimer();
        i0 i0Var = this.f335069e;
        if (i0Var != null) {
            i0Var.dismiss();
        }
        Intent intent = new Intent("android.intent.action.VIEW", Uri.parse(str));
        intent.putExtra(FFmpegMetadataRetriever.METADATA_KEY_TITLE, this.f335071g.getString(R.string.bjg));
        intent.putExtra(V2TXJSAdapterConstants.PUSHER_KEY_ZOOM, true);
        intent.putExtra("vertical_scroll", false);
        sv3.b.j(this.f335071g, "webview", ".ui.tools.WebViewUI", intent, null);
    }

    @Override // yf0.n
    public void onSceneEnd(int i15, int i16, String str, y yVar) {
        p3.e().p(205, this);
        b bVar = (b) yVar;
        if (i15 == 0 && i16 == 0) {
            b(((lq2) bVar.f320127e.f345549b.f345576a).f28822d);
            return;
        }
        if (i15 != 4) {
            Log.e("MicroMsg.ViewTWeibo", "view weibo failed: " + i15 + ", " + i16);
        }
        b("http://t.qq.com/" + bVar.f320128f);
    }
}