Fast Orange v3.5.3版本的 MD5 值为:33b91aba50c566533dfd683a85f79158

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


package com.free.vpn.proxy.hotspot.ui.components.dialog;

import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.view.View;
import androidx.appcompat.widget.AppCompatTextView;
import androidx.compose.runtime.internal.StabilityInferred;
import com.free.vpn.proxy.hotspot.databinding.SupportQrInfoDialogBinding;
import com.free.vpn.proxy.hotspot.ff1;
import com.free.vpn.proxy.hotspot.gu4;
import com.free.vpn.proxy.hotspot.hc4;
import com.free.vpn.proxy.hotspot.hx;
import com.free.vpn.proxy.hotspot.ko4;
import com.free.vpn.proxy.hotspot.n05;
import com.free.vpn.proxy.hotspot.n10;
import com.free.vpn.proxy.hotspot.u80;
import com.free.vpn.proxy.hotspot.ui.components.dialog.SupportQrInfoDialog;
import com.free.vpn.proxy.hotspot.z93;
import com.free.vpn.proxy.hotspot.zs4;
import com.free.vpn.proxy.hotspot.zu2;
import com.google.android.gms.appindex.ThingPropertyKeys;
import kotlin.Metadata;
import kotlin.Result;
import kotlin.ResultKt;
import kotlin.Unit;
import kotlin.reflect.KProperty;
import web.accelerator.p003new.util.R;

@StabilityInferred(parameters = 0)
@Metadata(d1 = {"\u0000H\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u0004\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u000b\b\u0007\u0018\u0000 &2\u00020\u0001:\u0001'B\u000f\u0012\u0006\u0010\u000e\u001a\u00020\r¢\u0006\u0004\b$\u0010%J\u0012\u0010\u0005\u001a\u00020\u00042\b\u0010\u0003\u001a\u0004\u0018\u00010\u0002H\u0016J\u001a\u0010\b\u001a\u00020\u00042\u0006\u0010\u0007\u001a\u00020\u00062\b\u0010\u0003\u001a\u0004\u0018\u00010\u0002H\u0016J\u0010\u0010\f\u001a\u0004\u0018\u00010\u000b2\u0006\u0010\n\u001a\u00020\tR\u0017\u0010\u000e\u001a\u00020\r8\u0006¢\u0006\f\n\u0004\b\u000e\u0010\u000f\u001a\u0004\b\u0010\u0010\u0011R\u001a\u0010\u0013\u001a\u00020\u00128\u0016X\u0096\u0004¢\u0006\f\n\u0004\b\u0013\u0010\u0014\u001a\u0004\b\u0015\u0010\u0016R\u001b\u0010\u001c\u001a\u00020\u00178BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u0018\u0010\u0019\u001a\u0004\b\u001a\u0010\u001bR\"\u0010\u001e\u001a\u00020\u001d8\u0006@\u0006X\u0087.¢\u0006\u0012\n\u0004\b\u001e\u0010\u001f\u001a\u0004\b \u0010!\"\u0004\b\"\u0010#¨\u0006("}, d2 = {"Lcom/free/vpn/proxy/hotspot/ui/components/dialog/SupportQrInfoDialog;", "Lcom/free/vpn/proxy/hotspot/ui/base/BaseDialogFragment;", "Landroid/os/Bundle;", "savedInstanceState", "", "onCreate", "Landroid/view/View;", "view", "onViewCreated", "", "link", "Landroid/graphics/Bitmap;", "loadQrImage", "Lcom/free/vpn/proxy/hotspot/z93;", "qrType", "Lcom/free/vpn/proxy/hotspot/z93;", "getQrType", "()Lcom/free/vpn/proxy/hotspot/z93;", "", "width", "Ljava/lang/Number;", "getWidth", "()Ljava/lang/Number;", "Lcom/free/vpn/proxy/hotspot/databinding/SupportQrInfoDialogBinding;", "vb$delegate", "Lcom/free/vpn/proxy/hotspot/gu4;", "getVb", "()Lcom/free/vpn/proxy/hotspot/databinding/SupportQrInfoDialogBinding;", "vb", "Landroid/content/ClipboardManager;", "clipboardManager", "Landroid/content/ClipboardManager;", "getClipboardManager", "()Landroid/content/ClipboardManager;", "setClipboardManager", "(Landroid/content/ClipboardManager;)V", "<init>", "(Lcom/free/vpn/proxy/hotspot/z93;)V", "Companion", "com/free/vpn/proxy/hotspot/hc4", "app_chinaSeoDirectBlackRelease"}, k = 1, mv = {1, 8, 0})
public final class SupportQrInfoDialog extends Hilt_SupportQrInfoDialog {
    private static final String TG_CHANNEL_ID = "@FASTORANGEVPN";
    private static final String TG_LINK = "https://t.me/FastOrangeVPN";
    private static final String TWITTER_CHANNEL_ID = "@FastOrangeVPN";
    private static final String TWITTER_LINK = "https://twitter.com/FastOrangeVPN";
    public ClipboardManager clipboardManager;
    private final z93 qrType;

    private final gu4 vb;
    private final Number width;
    static final KProperty[] $$delegatedProperties = {n05.j(SupportQrInfoDialog.class, "vb", "getVb()Lcom/free/vpn/proxy/hotspot/databinding/SupportQrInfoDialogBinding;", 0)};
    public static final hc4 Companion = new hc4();
    public static final int $stable = 8;

    public SupportQrInfoDialog(z93 z93Var) {
        super(R.layout.support_qr_info_dialog);
        zs4.o(z93Var, "qrType");
        this.qrType = z93Var;
        this.width = Float.valueOf(getMaxWidth() - u80.j(40));
        this.vb = ko4.A0(this, new hx(6));
    }

    private final SupportQrInfoDialogBinding getVb() {
        return (SupportQrInfoDialogBinding) this.vb.getValue(this, $$delegatedProperties[0]);
    }

    public static final void onViewCreated$lambda$6$lambda$2(SupportQrInfoDialog supportQrInfoDialog, View view) {
        zs4.o(supportQrInfoDialog, "this$0");
        supportQrInfoDialog.dismiss();
    }

    public static final void onViewCreated$lambda$6$lambda$3(SupportQrInfoDialog supportQrInfoDialog, View view) {
        Context requireContext;
        String str;
        zs4.o(supportQrInfoDialog, "this$0");
        int ordinal = supportQrInfoDialog.qrType.ordinal();
        if (ordinal == 0) {
            requireContext = supportQrInfoDialog.requireContext();
            zs4.n(requireContext, "requireContext()");
            str = TG_LINK;
        } else {
            if (ordinal != 1) {
                return;
            }
            requireContext = supportQrInfoDialog.requireContext();
            zs4.n(requireContext, "requireContext()");
            str = TWITTER_LINK;
        }
        ff1.L(requireContext, str);
    }

    public static final boolean onViewCreated$lambda$6$lambda$4(SupportQrInfoDialog supportQrInfoDialog, View view) {
        ClipboardManager clipboardManager;
        String str;
        zs4.o(supportQrInfoDialog, "this$0");
        int ordinal = supportQrInfoDialog.qrType.ordinal();
        if (ordinal != 0) {
            if (ordinal == 1) {
                clipboardManager = supportQrInfoDialog.getClipboardManager();
                str = TWITTER_LINK;
            }
            return true;
        }
        clipboardManager = supportQrInfoDialog.getClipboardManager();
        str = TG_LINK;
        clipboardManager.setPrimaryClip(ClipData.newPlainText(ThingPropertyKeys.TEXT, str));
        n10.b1(supportQrInfoDialog, R.string.copy_toast);
        return true;
    }

    public static final boolean onViewCreated$lambda$6$lambda$5(SupportQrInfoDialog supportQrInfoDialog, View view) {
        ClipboardManager clipboardManager;
        String str;
        zs4.o(supportQrInfoDialog, "this$0");
        int ordinal = supportQrInfoDialog.qrType.ordinal();
        if (ordinal != 0) {
            if (ordinal == 1) {
                clipboardManager = supportQrInfoDialog.getClipboardManager();
                str = TWITTER_CHANNEL_ID;
            }
            return true;
        }
        clipboardManager = supportQrInfoDialog.getClipboardManager();
        str = TG_CHANNEL_ID;
        clipboardManager.setPrimaryClip(ClipData.newPlainText(ThingPropertyKeys.TEXT, str));
        n10.b1(supportQrInfoDialog, R.string.copy_toast);
        return true;
    }

    public final ClipboardManager getClipboardManager() {
        ClipboardManager clipboardManager = this.clipboardManager;
        if (clipboardManager != null) {
            return clipboardManager;
        }
        zs4.s0("clipboardManager");
        throw null;
    }

    public final z93 getQrType() {
        return this.qrType;
    }

    @Override
    public Number getWidth() {
        return this.width;
    }

    public final Bitmap loadQrImage(String link) {
        Object m4425constructorimpl;
        zs4.o(link, "link");
        try {
            Result.Companion companion = Result.INSTANCE;
            m4425constructorimpl = Result.m4425constructorimpl(zu2.m(link));
        } catch (Throwable th) {
            Result.Companion companion2 = Result.INSTANCE;
            m4425constructorimpl = Result.m4425constructorimpl(ResultKt.createFailure(th));
        }
        if (Result.m4429isFailureimpl(m4425constructorimpl)) {
            m4425constructorimpl = null;
        }
        return (Bitmap) m4425constructorimpl;
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setStyle(1, R.style.AppDialogTheme);
    }

    @Override
    public void onViewCreated(View view, Bundle savedInstanceState) {
        AppCompatTextView appCompatTextView;
        int i;
        zs4.o(view, "view");
        super.onViewCreated(view, savedInstanceState);
        SupportQrInfoDialogBinding vb = getVb();
        int ordinal = this.qrType.ordinal();
        Unit unit = null;
        final int i2 = 1;
        if (ordinal != 0) {
            if (ordinal == 1) {
                vb.channelId.setText(TWITTER_CHANNEL_ID);
                vb.titleImage.setImageResource(R.drawable.ic_menu_twitter);
                Bitmap loadQrImage = loadQrImage(TWITTER_LINK);
                if (loadQrImage != null) {
                    vb.qrImage.setImageBitmap(loadQrImage);
                    unit = Unit.INSTANCE;
                }
                if (unit == null) {
                    vb.qrImage.setImageResource(R.drawable.qr_twitter);
                }
                appCompatTextView = vb.btnOpen;
                i = R.string.open_with_twitter;
            }
            final int i3 = 0;
            vb.btnClose.setOnClickListener(new View.OnClickListener(this) {
                public final SupportQrInfoDialog b;

                {
                    this.b = this;
                }

                @Override
                public final void onClick(View view2) {
                    int i4 = i3;
                    SupportQrInfoDialog supportQrInfoDialog = this.b;
                    switch (i4) {
                        case 0:
                            SupportQrInfoDialog.onViewCreated$lambda$6$lambda$2(supportQrInfoDialog, view2);
                            return;
                        default:
                            SupportQrInfoDialog.onViewCreated$lambda$6$lambda$3(supportQrInfoDialog, view2);
                            return;
                    }
                }
            });
            vb.btnOpen.setOnClickListener(new View.OnClickListener(this) {
                public final SupportQrInfoDialog b;

                {
                    this.b = this;
                }

                @Override
                public final void onClick(View view2) {
                    int i4 = i2;
                    SupportQrInfoDialog supportQrInfoDialog = this.b;
                    switch (i4) {
                        case 0:
                            SupportQrInfoDialog.onViewCreated$lambda$6$lambda$2(supportQrInfoDialog, view2);
                            return;
                        default:
                            SupportQrInfoDialog.onViewCreated$lambda$6$lambda$3(supportQrInfoDialog, view2);
                            return;
                    }
                }
            });
            vb.qrImage.setOnLongClickListener(new View.OnLongClickListener(this) {
                public final SupportQrInfoDialog b;

                {
                    this.b = this;
                }

                @Override
                public final boolean onLongClick(View view2) {
                    boolean onViewCreated$lambda$6$lambda$5;
                    boolean onViewCreated$lambda$6$lambda$4;
                    int i4 = i3;
                    SupportQrInfoDialog supportQrInfoDialog = this.b;
                    switch (i4) {
                        case 0:
                            onViewCreated$lambda$6$lambda$4 = SupportQrInfoDialog.onViewCreated$lambda$6$lambda$4(supportQrInfoDialog, view2);
                            return onViewCreated$lambda$6$lambda$4;
                        default:
                            onViewCreated$lambda$6$lambda$5 = SupportQrInfoDialog.onViewCreated$lambda$6$lambda$5(supportQrInfoDialog, view2);
                            return onViewCreated$lambda$6$lambda$5;
                    }
                }
            });
            vb.channelId.setOnLongClickListener(new View.OnLongClickListener(this) {
                public final SupportQrInfoDialog b;

                {
                    this.b = this;
                }

                @Override
                public final boolean onLongClick(View view2) {
                    boolean onViewCreated$lambda$6$lambda$5;
                    boolean onViewCreated$lambda$6$lambda$4;
                    int i4 = i2;
                    SupportQrInfoDialog supportQrInfoDialog = this.b;
                    switch (i4) {
                        case 0:
                            onViewCreated$lambda$6$lambda$4 = SupportQrInfoDialog.onViewCreated$lambda$6$lambda$4(supportQrInfoDialog, view2);
                            return onViewCreated$lambda$6$lambda$4;
                        default:
                            onViewCreated$lambda$6$lambda$5 = SupportQrInfoDialog.onViewCreated$lambda$6$lambda$5(supportQrInfoDialog, view2);
                            return onViewCreated$lambda$6$lambda$5;
                    }
                }
            });
        }
        vb.channelId.setText(TG_CHANNEL_ID);
        vb.titleImage.setImageResource(R.drawable.ic_menu_tg);
        Bitmap loadQrImage2 = loadQrImage(TG_LINK);
        if (loadQrImage2 != null) {
            vb.qrImage.setImageBitmap(loadQrImage2);
            unit = Unit.INSTANCE;
        }
        if (unit == null) {
            vb.qrImage.setImageResource(R.drawable.qr_telegram);
        }
        appCompatTextView = vb.btnOpen;
        i = R.string.open_with_telegram;
        appCompatTextView.setText(getString(i));
        final int i32 = 0;
        vb.btnClose.setOnClickListener(new View.OnClickListener(this) {
            public final SupportQrInfoDialog b;

            {
                this.b = this;
            }

            @Override
            public final void onClick(View view2) {
                int i4 = i32;
                SupportQrInfoDialog supportQrInfoDialog = this.b;
                switch (i4) {
                    case 0:
                        SupportQrInfoDialog.onViewCreated$lambda$6$lambda$2(supportQrInfoDialog, view2);
                        return;
                    default:
                        SupportQrInfoDialog.onViewCreated$lambda$6$lambda$3(supportQrInfoDialog, view2);
                        return;
                }
            }
        });
        vb.btnOpen.setOnClickListener(new View.OnClickListener(this) {
            public final SupportQrInfoDialog b;

            {
                this.b = this;
            }

            @Override
            public final void onClick(View view2) {
                int i4 = i2;
                SupportQrInfoDialog supportQrInfoDialog = this.b;
                switch (i4) {
                    case 0:
                        SupportQrInfoDialog.onViewCreated$lambda$6$lambda$2(supportQrInfoDialog, view2);
                        return;
                    default:
                        SupportQrInfoDialog.onViewCreated$lambda$6$lambda$3(supportQrInfoDialog, view2);
                        return;
                }
            }
        });
        vb.qrImage.setOnLongClickListener(new View.OnLongClickListener(this) {
            public final SupportQrInfoDialog b;

            {
                this.b = this;
            }

            @Override
            public final boolean onLongClick(View view2) {
                boolean onViewCreated$lambda$6$lambda$5;
                boolean onViewCreated$lambda$6$lambda$4;
                int i4 = i32;
                SupportQrInfoDialog supportQrInfoDialog = this.b;
                switch (i4) {
                    case 0:
                        onViewCreated$lambda$6$lambda$4 = SupportQrInfoDialog.onViewCreated$lambda$6$lambda$4(supportQrInfoDialog, view2);
                        return onViewCreated$lambda$6$lambda$4;
                    default:
                        onViewCreated$lambda$6$lambda$5 = SupportQrInfoDialog.onViewCreated$lambda$6$lambda$5(supportQrInfoDialog, view2);
                        return onViewCreated$lambda$6$lambda$5;
                }
            }
        });
        vb.channelId.setOnLongClickListener(new View.OnLongClickListener(this) {
            public final SupportQrInfoDialog b;

            {
                this.b = this;
            }

            @Override
            public final boolean onLongClick(View view2) {
                boolean onViewCreated$lambda$6$lambda$5;
                boolean onViewCreated$lambda$6$lambda$4;
                int i4 = i2;
                SupportQrInfoDialog supportQrInfoDialog = this.b;
                switch (i4) {
                    case 0:
                        onViewCreated$lambda$6$lambda$4 = SupportQrInfoDialog.onViewCreated$lambda$6$lambda$4(supportQrInfoDialog, view2);
                        return onViewCreated$lambda$6$lambda$4;
                    default:
                        onViewCreated$lambda$6$lambda$5 = SupportQrInfoDialog.onViewCreated$lambda$6$lambda$5(supportQrInfoDialog, view2);
                        return onViewCreated$lambda$6$lambda$5;
                }
            }
        });
    }

    public final void setClipboardManager(ClipboardManager clipboardManager) {
        zs4.o(clipboardManager, "<set-?>");
        this.clipboardManager = clipboardManager;
    }
}