QQ浏览器 v12.2.3.7053版本的 MD5 值为:8285ab3059e5c8b521a264dfbc5c3685

以下内容为反编译后的 TxDocAuthLicenseView.java 源代码,内容仅作参考


package com.tencent.mtt.file.tencentdocument.auth;

import android.content.Context;
import android.view.View;
import android.widget.FrameLayout;
import androidx.recyclerview.widget.EasyLinearLayoutManager;
import androidx.recyclerview.widget.EasyRecyclerView;
import com.tencent.common.utils.DeviceUtils;
import com.tencent.mtt.base.skin.MttResources;
import com.tencent.mtt.base.ui.widget.QBWebImageView;
import com.tencent.mtt.browser.setting.manager.SkinManager;
import com.tencent.mtt.nxeasy.listview.base.RecyclerViewAdapter;
import com.tencent.mtt.nxeasy.listview.base.RecyclerViewBuilder;
import com.tencent.mtt.nxeasy.pageview.EasyBackTitleBar;
import com.tencent.mtt.nxeasy.pageview.EasyPageViewBase;
import com.tencent.mtt.nxeasy.pageview.OnBackClickListener;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.Intrinsics;
import qb.a.e;

public final class TxDocAuthLicenseView extends EasyPageViewBase {

    private Function0<Unit> f64834a;

    public TxDocAuthLicenseView(Context context) {
        super(context);
        int c2;
        long j;
        Intrinsics.checkParameterIsNotNull(context, "context");
        SkinManager s = SkinManager.s();
        Intrinsics.checkExpressionValueIsNotNull(s, "SkinManager.getInstance()");
        if (s.g()) {
            j = 4278190080L;
        } else {
            SkinManager s2 = SkinManager.s();
            Intrinsics.checkExpressionValueIsNotNull(s2, "SkinManager.getInstance()");
            if (!s2.f()) {
                c2 = MttResources.c(e.J);
                setBackgroundColor(c2);
                EasyBackTitleBar easyBackTitleBar = new EasyBackTitleBar(getContext(), false);
                easyBackTitleBar.setRightMargin(MttResources.s(15));
                easyBackTitleBar.e();
                easyBackTitleBar.setOnBackClickListener(new OnBackClickListener() {
                    @Override
                    public final void co_() {
                        Function0 function0;
                        function0 = TxDocAuthLicenseView.this.f64834a;
                        if (function0 != null) {
                        }
                    }
                });
                easyBackTitleBar.setTitleText("腾讯文档授权说明");
                setTopBarHeight(MttResources.s(48));
                a_(easyBackTitleBar, null);
                FrameLayout frameLayout = new FrameLayout(getContext());
                a(frameLayout);
                QBWebImageView qBWebImageView = new QBWebImageView(context);
                qBWebImageView.setPlaceHolderDrawable(null);
                qBWebImageView.setUrl("https://m4.publicimg.browser.qq.com/publicimg/nav/file/tx_auth_license_bg.png");
                int af = (int) (DeviceUtils.af() * 0.6f);
                FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(af, af);
                layoutParams.gravity = 8388693;
                frameLayout.addView(qBWebImageView, layoutParams);
                frameLayout.addView(a());
                cp_();
            }
            j = 4294967295L;
        }
        c2 = (int) j;
        setBackgroundColor(c2);
        EasyBackTitleBar easyBackTitleBar2 = new EasyBackTitleBar(getContext(), false);
        easyBackTitleBar2.setRightMargin(MttResources.s(15));
        easyBackTitleBar2.e();
        easyBackTitleBar2.setOnBackClickListener(new OnBackClickListener() {
            @Override
            public final void co_() {
                Function0 function0;
                function0 = TxDocAuthLicenseView.this.f64834a;
                if (function0 != null) {
                }
            }
        });
        easyBackTitleBar2.setTitleText("腾讯文档授权说明");
        setTopBarHeight(MttResources.s(48));
        a_(easyBackTitleBar2, null);
        FrameLayout frameLayout2 = new FrameLayout(getContext());
        a(frameLayout2);
        QBWebImageView qBWebImageView2 = new QBWebImageView(context);
        qBWebImageView2.setPlaceHolderDrawable(null);
        qBWebImageView2.setUrl("https://m4.publicimg.browser.qq.com/publicimg/nav/file/tx_auth_license_bg.png");
        int af2 = (int) (DeviceUtils.af() * 0.6f);
        FrameLayout.LayoutParams layoutParams2 = new FrameLayout.LayoutParams(af2, af2);
        layoutParams2.gravity = 8388693;
        frameLayout2.addView(qBWebImageView2, layoutParams2);
        frameLayout2.addView(a());
        cp_();
    }

    private final View a() {
        EasyRecyclerView easyRecyclerView = new EasyRecyclerView(getContext());
        new RecyclerViewBuilder(getContext()).a(new RecyclerViewAdapter()).a(new EasyLinearLayoutManager(getContext())).a(easyRecyclerView).a(new TxDocAuthLicenseProducer()).f().ad_();
        return easyRecyclerView;
    }

    public final void setOnBackClickListener(Function0<Unit> callback) {
        Intrinsics.checkParameterIsNotNull(callback, "callback");
        this.f64834a = callback;
    }
}