导航菜单

页面标题

页面副标题

SpeedCash v6.5.1482 - SendInternalQrImageActivity.java 源代码

正在查看: SpeedCash v6.5.1482 应用的 SendInternalQrImageActivity.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.bm.sc.kotlin.ui.cash.qrcode;

import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.text.method.DigitsKeyListener;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.appcompat.widget.AppCompatButton;
import androidx.core.content.res.ResourcesCompat;
import androidx.core.view.ViewCompat;
import androidx.core.widget.NestedScrollView;
import androidx.exifinterface.media.ExifInterface;
import androidx.lifecycle.LifecycleOwnerKt;
import com.bm.sc.bebasbayar.R;
import com.bm.sc.bebasbayar.adapter.entity.TrainScheduleEntity;
import com.bm.sc.bebasbayar.adapter.list.CashWdTokenAdapter;
import com.bm.sc.bebasbayar.handler.QRISO;
import com.bm.sc.bebasbayar.helper.Affinity;
import com.bm.sc.bebasbayar.iface.BBCallback;
import com.bm.sc.bebasbayar.setting.ApiConfig;
import com.bm.sc.bebasbayar.setting.session.AppSession;
import com.bm.sc.bebasbayar.ui.BaseActivity;
import com.bm.sc.kotlin.helper.ExtKt;
import com.bm.sc.kotlin.ui.cash.qrcode.SendInternalQrImageActivity;
import com.bm.sc.util.android.Imagery;
import com.bm.sc.util.common.Var;
import com.bm.sc.util.format.Locales;
import com.google.android.material.textfield.TextInputEditText;
import defpackage.COROUTINE_SUSPENDED;
import defpackage.qs;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.Objects;
import kotlin.Metadata;
import kotlin.ResultKt;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.jvm.internal.DebugMetadata;
import kotlin.coroutines.jvm.internal.SuspendLambda;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.Regex;
import kotlin.text.StringsKt___StringsKt;
import kotlinx.coroutines.CoroutineScope;
import org.apache.commons.text.WordUtils;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

@Metadata(d1 = {"\u0000Z\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u000e\n\u0002\b\t\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u000b\n\u0002\u0018\u0002\n\u0002\b\u000b\n\u0002\u0018\u0002\n\u0002\b\t\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\bB\u0010CJ\u0012\u0010\u0005\u001a\u00020\u00042\b\u0010\u0003\u001a\u0004\u0018\u00010\u0002H\u0014J\b\u0010\u0006\u001a\u00020\u0004H\u0014J\b\u0010\b\u001a\u00020\u0007H\u0014J\b\u0010\n\u001a\u00020\tH\u0016J\b\u0010\f\u001a\u00020\u000bH\u0014J\b\u0010\r\u001a\u00020\u0004H\u0002J\b\u0010\u000e\u001a\u00020\u0004H\u0002J\u001c\u0010\u0011\u001a\u00020\u00042\b\b\u0002\u0010\u000f\u001a\u00020\u000b2\b\b\u0002\u0010\u0010\u001a\u00020\u000bH\u0002J\b\u0010\u0012\u001a\u00020\u0004H\u0002J\b\u0010\u0013\u001a\u00020\u0004H\u0002J\b\u0010\u0014\u001a\u00020\u0004H\u0002R\u0016\u0010\u0018\u001a\u00020\u00158\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b\u0016\u0010\u0017R\u0016\u0010\u001c\u001a\u00020\u00198\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b\u001a\u0010\u001bR\u0016\u0010 \u001a\u00020\u001d8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b\u001e\u0010\u001fR\u0016\u0010\"\u001a\u00020\u001d8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b!\u0010\u001fR\u0016\u0010&\u001a\u00020#8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b$\u0010%R\u0016\u0010(\u001a\u00020\u001d8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b'\u0010\u001fR\u0016\u0010*\u001a\u00020\u001d8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b)\u0010\u001fR\u0016\u0010,\u001a\u00020\u001d8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b+\u0010\u001fR\u0016\u0010.\u001a\u00020\u001d8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b-\u0010\u001fR\u0016\u00102\u001a\u00020/8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b0\u00101R\u0016\u00104\u001a\u00020#8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b3\u0010%R\u0016\u00106\u001a\u00020#8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b5\u0010%R\u0016\u00108\u001a\u00020#8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b7\u0010%R\u0016\u0010:\u001a\u00020#8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b9\u0010%R\u0016\u0010>\u001a\u00020;8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b<\u0010=R\u0016\u0010A\u001a\u00020\t8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b?\u0010@¨\u0006D"}, d2 = {"Lcom/bm/sc/kotlin/ui/cash/qrcode/SendInternalQrImageActivity;", "Lcom/bm/sc/bebasbayar/ui/BaseActivity;", "Landroid/os/Bundle;", "savedInstanceState", "", "onCreate", "onResume", "", "getLayoutResource", "", "isEligibleForFavorit", "", "getWikiNameSpace", "x", TrainScheduleEntity.CLASS_BUSSINESS, "id", "nominal", "v", "F", "G", "D", "Lcom/google/android/material/textfield/TextInputEditText;", "c", "Lcom/google/android/material/textfield/TextInputEditText;", "tieInputNominal", "Landroidx/appcompat/widget/AppCompatButton;", "d", "Landroidx/appcompat/widget/AppCompatButton;", "btnTrx", "Landroid/view/View;", "e", "Landroid/view/View;", "clKeyboardLayout", "f", "clInformLayout", "Landroid/widget/TextView;", "g", "Landroid/widget/TextView;", "tv", "h", "cpsClose1", "i", "clInputLayout", "j", "clActionLayout", "k", "btnShare", "Landroid/widget/ImageView;", "l", "Landroid/widget/ImageView;", "qrImageViewIv", "m", "tvName", "n", "tvNameInitial", "o", "tvIdOrPhone", "p", "tvReset", "Landroidx/core/widget/NestedScrollView;", "q", "Landroidx/core/widget/NestedScrollView;", "nsv", "r", "Z", "isEditing", "<init>", "()V", "app_release"}, k = 1, mv = {1, 8, 0})
public final class SendInternalQrImageActivity extends BaseActivity {

    public TextInputEditText tieInputNominal;

    public AppCompatButton btnTrx;

    public View clKeyboardLayout;

    public View clInformLayout;

    public TextView tv;

    public View cpsClose1;

    public View clInputLayout;

    public View clActionLayout;

    public View btnShare;

    public ImageView qrImageViewIv;

    public TextView tvName;

    public TextView tvNameInitial;

    public TextView tvIdOrPhone;

    public TextView tvReset;

    public NestedScrollView nsv;

    public boolean isEditing;

    @Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0000\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\u008a@"}, d2 = {"Lkotlinx/coroutines/CoroutineScope;", "", "<anonymous>"}, k = 3, mv = {1, 8, 0})
    @DebugMetadata(c = "com.bm.sc.kotlin.ui.cash.qrcode.SendInternalQrImageActivity$initComponent$7$1", f = "SendInternalQrImageActivity.kt", i = {}, l = {}, m = "invokeSuspend", n = {}, s = {})
    public static final class a extends SuspendLambda implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {

        public int f6947a;
        public final String c;

        public a(String str, Continuation<? super a> continuation) {
            super(2, continuation);
            this.c = str;
        }

        public static final void b(SendInternalQrImageActivity sendInternalQrImageActivity, int i, Uri uri) {
            if (uri != null) {
                Affinity.shareImageAndNotes(sendInternalQrImageActivity, uri, "Hai, Scan QR-ku ini buat transfer saldo gampang tanpa ribet!\nSpeedCash bikin semua kebutuhan jadi praktis dan hemat.\nTentu mau dong, Coba deh download di https://speedcash.co.id");
            }
        }

        @Override
        @NotNull
        public final Continuation<Unit> create(@Nullable Object obj, @NotNull Continuation<?> continuation) {
            return SendInternalQrImageActivity.this.new a(this.c, continuation);
        }

        @Override
        @Nullable
        public final Object invoke(@NotNull CoroutineScope coroutineScope, @Nullable Continuation<? super Unit> continuation) {
            return ((a) create(coroutineScope, continuation)).invokeSuspend(Unit.INSTANCE);
        }

        @Override
        @Nullable
        public final Object invokeSuspend(@NotNull Object obj) {
            COROUTINE_SUSPENDED.getCOROUTINE_SUSPENDED();
            if (this.f6947a != 0) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            ResultKt.throwOnFailure(obj);
            ImageView imageView = SendInternalQrImageActivity.this.qrImageViewIv;
            if (imageView == null) {
                Intrinsics.throwUninitializedPropertyAccessException("qrImageViewIv");
                imageView = null;
            }
            String str = this.c;
            final SendInternalQrImageActivity sendInternalQrImageActivity = SendInternalQrImageActivity.this;
            Imagery.shareImageCacheUri(imageView, str, new BBCallback() {
                @Override
                public final void do_callback(int i, Object obj2) {
                    SendInternalQrImageActivity.a.b(SendInternalQrImageActivity.this, i, (Uri) obj2);
                }
            });
            return Unit.INSTANCE;
        }
    }

    public static final void A(SendInternalQrImageActivity this$0, View view) {
        Intrinsics.checkNotNullParameter(this$0, "this$0");
        qs.e(LifecycleOwnerKt.getLifecycleScope(this$0), null, null, this$0.new a(this$0.getString(R.string.app_name) + "_SCTI-QR_" + new SimpleDateFormat("yyyyMMdd_HHmmss").format(new Date()), null), 3, null);
    }

    public static final void C(SendInternalQrImageActivity this$0) {
        Intrinsics.checkNotNullParameter(this$0, "this$0");
        NestedScrollView nestedScrollView = this$0.nsv;
        NestedScrollView nestedScrollView2 = null;
        if (nestedScrollView == null) {
            Intrinsics.throwUninitializedPropertyAccessException("nsv");
            nestedScrollView = null;
        }
        NestedScrollView nestedScrollView3 = this$0.nsv;
        if (nestedScrollView3 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("nsv");
        } else {
            nestedScrollView2 = nestedScrollView3;
        }
        nestedScrollView.smoothScrollTo(0, nestedScrollView2.getChildAt(0).getHeight());
    }

    public static final void E(SendInternalQrImageActivity this$0, View v) {
        Intrinsics.checkNotNullParameter(this$0, "this$0");
        Intrinsics.checkNotNullParameter(v, "v");
        TextInputEditText textInputEditText = null;
        if (v.getId() == R.id.button1) {
            TextInputEditText textInputEditText2 = this$0.tieInputNominal;
            if (textInputEditText2 == null) {
                Intrinsics.throwUninitializedPropertyAccessException("tieInputNominal");
            } else {
                textInputEditText = textInputEditText2;
            }
            textInputEditText.append("1");
            return;
        }
        if (v.getId() == R.id.button2) {
            TextInputEditText textInputEditText3 = this$0.tieInputNominal;
            if (textInputEditText3 == null) {
                Intrinsics.throwUninitializedPropertyAccessException("tieInputNominal");
            } else {
                textInputEditText = textInputEditText3;
            }
            textInputEditText.append("2");
            return;
        }
        if (v.getId() == R.id.button3) {
            TextInputEditText textInputEditText4 = this$0.tieInputNominal;
            if (textInputEditText4 == null) {
                Intrinsics.throwUninitializedPropertyAccessException("tieInputNominal");
            } else {
                textInputEditText = textInputEditText4;
            }
            textInputEditText.append(ExifInterface.GPS_MEASUREMENT_3D);
            return;
        }
        if (v.getId() == R.id.button4) {
            TextInputEditText textInputEditText5 = this$0.tieInputNominal;
            if (textInputEditText5 == null) {
                Intrinsics.throwUninitializedPropertyAccessException("tieInputNominal");
            } else {
                textInputEditText = textInputEditText5;
            }
            textInputEditText.append(CashWdTokenAdapter.STATE_EXPIRED);
            return;
        }
        if (v.getId() == R.id.button5) {
            TextInputEditText textInputEditText6 = this$0.tieInputNominal;
            if (textInputEditText6 == null) {
                Intrinsics.throwUninitializedPropertyAccessException("tieInputNominal");
            } else {
                textInputEditText = textInputEditText6;
            }
            textInputEditText.append("5");
            return;
        }
        if (v.getId() == R.id.button6) {
            TextInputEditText textInputEditText7 = this$0.tieInputNominal;
            if (textInputEditText7 == null) {
                Intrinsics.throwUninitializedPropertyAccessException("tieInputNominal");
            } else {
                textInputEditText = textInputEditText7;
            }
            textInputEditText.append("6");
            return;
        }
        if (v.getId() == R.id.button7) {
            TextInputEditText textInputEditText8 = this$0.tieInputNominal;
            if (textInputEditText8 == null) {
                Intrinsics.throwUninitializedPropertyAccessException("tieInputNominal");
            } else {
                textInputEditText = textInputEditText8;
            }
            textInputEditText.append("7");
            return;
        }
        if (v.getId() == R.id.button8) {
            TextInputEditText textInputEditText9 = this$0.tieInputNominal;
            if (textInputEditText9 == null) {
                Intrinsics.throwUninitializedPropertyAccessException("tieInputNominal");
            } else {
                textInputEditText = textInputEditText9;
            }
            textInputEditText.append("8");
            return;
        }
        if (v.getId() == R.id.button9) {
            TextInputEditText textInputEditText10 = this$0.tieInputNominal;
            if (textInputEditText10 == null) {
                Intrinsics.throwUninitializedPropertyAccessException("tieInputNominal");
            } else {
                textInputEditText = textInputEditText10;
            }
            textInputEditText.append("9");
            return;
        }
        if (v.getId() == R.id.button0) {
            TextInputEditText textInputEditText11 = this$0.tieInputNominal;
            if (textInputEditText11 == null) {
                Intrinsics.throwUninitializedPropertyAccessException("tieInputNominal");
            } else {
                textInputEditText = textInputEditText11;
            }
            textInputEditText.append("0");
            return;
        }
        if (v.getId() == R.id.button000) {
            TextInputEditText textInputEditText12 = this$0.tieInputNominal;
            if (textInputEditText12 == null) {
                Intrinsics.throwUninitializedPropertyAccessException("tieInputNominal");
            } else {
                textInputEditText = textInputEditText12;
            }
            textInputEditText.append("000");
            return;
        }
        if (v.getId() == R.id.buttonDel) {
            TextInputEditText textInputEditText13 = this$0.tieInputNominal;
            if (textInputEditText13 == null) {
                Intrinsics.throwUninitializedPropertyAccessException("tieInputNominal");
                textInputEditText13 = null;
            }
            Editable text = textInputEditText13.getText();
            Objects.requireNonNull(text);
            int length = text.length();
            if (length > 0) {
                TextInputEditText textInputEditText14 = this$0.tieInputNominal;
                if (textInputEditText14 == null) {
                    Intrinsics.throwUninitializedPropertyAccessException("tieInputNominal");
                } else {
                    textInputEditText = textInputEditText14;
                }
                Editable text2 = textInputEditText.getText();
                if (text2 != null) {
                    text2.delete(length - 1, length);
                }
            }
        }
    }

    public static final void H(SendInternalQrImageActivity this$0, View view) {
        Intrinsics.checkNotNullParameter(this$0, "this$0");
        TextInputEditText textInputEditText = this$0.tieInputNominal;
        View view2 = null;
        if (textInputEditText == null) {
            Intrinsics.throwUninitializedPropertyAccessException("tieInputNominal");
            textInputEditText = null;
        }
        String onlyAlphanumeric = ExtKt.onlyAlphanumeric(String.valueOf(textInputEditText.getText()));
        if (Var.toDouble(onlyAlphanumeric, 0.0d) > 0.0d) {
            w(this$0, null, onlyAlphanumeric, 1, null);
            TextView textView = this$0.tvReset;
            if (textView == null) {
                Intrinsics.throwUninitializedPropertyAccessException("tvReset");
                textView = null;
            }
            ExtKt.visible(textView);
            View view3 = this$0.clActionLayout;
            if (view3 == null) {
                Intrinsics.throwUninitializedPropertyAccessException("clActionLayout");
                view3 = null;
            }
            ExtKt.gone(view3);
            View view4 = this$0.btnShare;
            if (view4 == null) {
                Intrinsics.throwUninitializedPropertyAccessException("btnShare");
            } else {
                view2 = view4;
            }
            ExtKt.visible(view2);
        }
    }

    public static void w(SendInternalQrImageActivity sendInternalQrImageActivity, String str, String str2, int i, Object obj) {
        if ((i & 1) != 0) {
            str = sendInternalQrImageActivity.appSession.retrieve(AppSession.PROPERTY_MERCHANT_ID);
            Intrinsics.checkNotNullExpressionValue(str, "appSession.retrieve(AppS…ion.PROPERTY_MERCHANT_ID)");
        }
        if ((i & 2) != 0) {
            str2 = "0";
        }
        sendInternalQrImageActivity.v(str, str2);
    }

    public static final void y(SendInternalQrImageActivity this$0, View view) {
        Intrinsics.checkNotNullParameter(this$0, "this$0");
        this$0.B();
    }

    public static final void z(SendInternalQrImageActivity this$0, View view) {
        Intrinsics.checkNotNullParameter(this$0, "this$0");
        this$0.B();
        w(this$0, null, null, 3, null);
    }

    public final void B() {
        View view = this.clActionLayout;
        NestedScrollView nestedScrollView = null;
        if (view == null) {
            Intrinsics.throwUninitializedPropertyAccessException("clActionLayout");
            view = null;
        }
        ExtKt.visible(view);
        View view2 = this.clInputLayout;
        if (view2 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("clInputLayout");
            view2 = null;
        }
        ExtKt.visible(view2);
        View view3 = this.clInformLayout;
        if (view3 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("clInformLayout");
            view3 = null;
        }
        ExtKt.gone(view3);
        View view4 = this.btnShare;
        if (view4 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("btnShare");
            view4 = null;
        }
        ExtKt.gone(view4);
        TextInputEditText textInputEditText = this.tieInputNominal;
        if (textInputEditText == null) {
            Intrinsics.throwUninitializedPropertyAccessException("tieInputNominal");
            textInputEditText = null;
        }
        Editable text = textInputEditText.getText();
        if (text != null) {
            text.clear();
        }
        NestedScrollView nestedScrollView2 = this.nsv;
        if (nestedScrollView2 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("nsv");
        } else {
            nestedScrollView = nestedScrollView2;
        }
        nestedScrollView.postDelayed(new Runnable() {
            @Override
            public final void run() {
                SendInternalQrImageActivity.C(SendInternalQrImageActivity.this);
            }
        }, 500L);
    }

    public final void D() {
        View.OnClickListener onClickListener = new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                SendInternalQrImageActivity.E(SendInternalQrImageActivity.this, view);
            }
        };
        findViewById(R.id.button1).setOnClickListener(onClickListener);
        findViewById(R.id.button2).setOnClickListener(onClickListener);
        findViewById(R.id.button3).setOnClickListener(onClickListener);
        findViewById(R.id.button4).setOnClickListener(onClickListener);
        findViewById(R.id.button5).setOnClickListener(onClickListener);
        findViewById(R.id.button6).setOnClickListener(onClickListener);
        findViewById(R.id.button7).setOnClickListener(onClickListener);
        findViewById(R.id.button8).setOnClickListener(onClickListener);
        findViewById(R.id.button9).setOnClickListener(onClickListener);
        findViewById(R.id.button0).setOnClickListener(onClickListener);
        findViewById(R.id.button000).setOnClickListener(onClickListener);
        findViewById(R.id.buttonDel).setOnClickListener(onClickListener);
    }

    public final void F() {
        Drawable drawable = ResourcesCompat.getDrawable(getResources(), R.drawable.button_rounded25dp_gray, null);
        AppCompatButton appCompatButton = this.btnTrx;
        if (appCompatButton == null) {
            Intrinsics.throwUninitializedPropertyAccessException("btnTrx");
            appCompatButton = null;
        }
        appCompatButton.setBackground(drawable);
        appCompatButton.setOnClickListener(null);
    }

    public final void G() {
        AppCompatButton appCompatButton = null;
        Drawable drawable = ResourcesCompat.getDrawable(getResources(), R.drawable.bb_background_gradient_round_25, null);
        AppCompatButton appCompatButton2 = this.btnTrx;
        if (appCompatButton2 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("btnTrx");
        } else {
            appCompatButton = appCompatButton2;
        }
        appCompatButton.setBackground(drawable);
        appCompatButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                SendInternalQrImageActivity.H(SendInternalQrImageActivity.this, view);
            }
        });
    }

    @Override
    public int getLayoutResource() {
        return R.layout.activity_internal_send_qr_image;
    }

    @Override
    @NotNull
    public String getWikiNameSpace() {
        String simpleName = SendInternalQrImageActivity.class.getSimpleName();
        Intrinsics.checkNotNullExpressionValue(simpleName, "javaClass.simpleName");
        return simpleName;
    }

    @Override
    public boolean isEligibleForFavorit() {
        return false;
    }

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        x();
        D();
        w(this, null, null, 3, null);
    }

    @Override
    public void onResume() {
        super.onResume();
        w(this, null, null, 3, null);
    }

    public final void v(String id, String nominal) {
        String str = ApiConfig.getBaseUrl()[0] + "gen-qrku?id=" + id + "&nominal=" + nominal;
        ImageView imageView = this.qrImageViewIv;
        if (imageView == null) {
            Intrinsics.throwUninitializedPropertyAccessException("qrImageViewIv");
            imageView = null;
        }
        ExtKt.loadWithCredentials(imageView, str);
    }

    public final void x() {
        View findViewById = findViewById(R.id.nsv);
        Intrinsics.checkNotNullExpressionValue(findViewById, "findViewById(R.id.nsv)");
        this.nsv = (NestedScrollView) findViewById;
        View findViewById2 = findViewById(R.id.tv_name);
        Intrinsics.checkNotNullExpressionValue(findViewById2, "findViewById(R.id.tv_name)");
        this.tvName = (TextView) findViewById2;
        View findViewById3 = findViewById(R.id.tv_name_initial);
        Intrinsics.checkNotNullExpressionValue(findViewById3, "findViewById(R.id.tv_name_initial)");
        this.tvNameInitial = (TextView) findViewById3;
        View findViewById4 = findViewById(R.id.tv_id_or_phone);
        Intrinsics.checkNotNullExpressionValue(findViewById4, "findViewById(R.id.tv_id_or_phone)");
        this.tvIdOrPhone = (TextView) findViewById4;
        String var = Var.toString(this.appSession.retrieve(AppSession.PROPERTY_OWNER_NAME), "Username");
        String var2 = Var.toString(this.appSession.retrieve(AppSession.PROPERTY_MERCHANT_ID), QRISO.COUNTRY_CODE_ID);
        TextView textView = this.tvName;
        View view = null;
        if (textView == null) {
            Intrinsics.throwUninitializedPropertyAccessException("tvName");
            textView = null;
        }
        textView.setText(WordUtils.capitalizeFully(var));
        TextView textView2 = this.tvNameInitial;
        if (textView2 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("tvNameInitial");
            textView2 = null;
        }
        TextView textView3 = this.tvNameInitial;
        if (textView3 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("tvNameInitial");
            textView3 = null;
        }
        String obj = textView3.toString();
        Intrinsics.checkNotNullExpressionValue(obj, "tvNameInitial.toString()");
        String upperCase = String.valueOf(StringsKt___StringsKt.first(obj)).toUpperCase(Locale.ROOT);
        Intrinsics.checkNotNullExpressionValue(upperCase, "toUpperCase(...)");
        textView2.setText(upperCase);
        TextView textView4 = this.tvIdOrPhone;
        if (textView4 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("tvIdOrPhone");
            textView4 = null;
        }
        textView4.setText(var2);
        View findViewById5 = findViewById(R.id.qr_view_img_iv);
        Intrinsics.checkNotNullExpressionValue(findViewById5, "findViewById(R.id.qr_view_img_iv)");
        this.qrImageViewIv = (ImageView) findViewById5;
        View findViewById6 = findViewById(R.id.btn_generate);
        Intrinsics.checkNotNullExpressionValue(findViewById6, "findViewById(R.id.btn_generate)");
        this.btnTrx = (AppCompatButton) findViewById6;
        View findViewById7 = findViewById(R.id.cl_keyboard_layout);
        Intrinsics.checkNotNullExpressionValue(findViewById7, "findViewById(R.id.cl_keyboard_layout)");
        this.clKeyboardLayout = findViewById7;
        View findViewById8 = findViewById(R.id.cl_input_layout);
        Intrinsics.checkNotNullExpressionValue(findViewById8, "findViewById(R.id.cl_input_layout)");
        this.clInputLayout = findViewById8;
        View findViewById9 = findViewById(R.id.cl_inform_layout);
        Intrinsics.checkNotNullExpressionValue(findViewById9, "findViewById(R.id.cl_inform_layout)");
        this.clInformLayout = findViewById9;
        View findViewById10 = findViewById(R.id.cl_action_layout);
        Intrinsics.checkNotNullExpressionValue(findViewById10, "findViewById(R.id.cl_action_layout)");
        this.clActionLayout = findViewById10;
        View findViewById11 = findViewById(R.id.tv_);
        Intrinsics.checkNotNullExpressionValue(findViewById11, "findViewById(R.id.tv_)");
        this.tv = (TextView) findViewById11;
        View findViewById12 = findViewById(R.id.cps_close1);
        Intrinsics.checkNotNullExpressionValue(findViewById12, "findViewById(R.id.cps_close1)");
        this.cpsClose1 = findViewById12;
        View.OnClickListener onClickListener = new View.OnClickListener() {
            @Override
            public final void onClick(View view2) {
                SendInternalQrImageActivity.y(SendInternalQrImageActivity.this, view2);
            }
        };
        View view2 = this.clInformLayout;
        if (view2 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("clInformLayout");
            view2 = null;
        }
        view2.setOnClickListener(onClickListener);
        TextView textView5 = this.tv;
        if (textView5 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("tv");
            textView5 = null;
        }
        textView5.setOnClickListener(onClickListener);
        View view3 = this.cpsClose1;
        if (view3 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("cpsClose1");
            view3 = null;
        }
        view3.setOnClickListener(onClickListener);
        View findViewById13 = findViewById(R.id.tie_input_nominal);
        Intrinsics.checkNotNullExpressionValue(findViewById13, "findViewById(R.id.tie_input_nominal)");
        TextInputEditText textInputEditText = (TextInputEditText) findViewById13;
        this.tieInputNominal = textInputEditText;
        if (textInputEditText == null) {
            Intrinsics.throwUninitializedPropertyAccessException("tieInputNominal");
            textInputEditText = null;
        }
        textInputEditText.setEnabled(false);
        textInputEditText.setInputType(2);
        textInputEditText.setInputType(8192);
        textInputEditText.setKeyListener(DigitsKeyListener.getInstance("0123456789."));
        TextInputEditText textInputEditText2 = this.tieInputNominal;
        if (textInputEditText2 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("tieInputNominal");
            textInputEditText2 = null;
        }
        textInputEditText2.addTextChangedListener(new TextWatcher() {
            @Override
            public void afterTextChanged(@NotNull Editable editable) {
                boolean z;
                TextInputEditText textInputEditText3;
                TextInputEditText textInputEditText4;
                Intrinsics.checkNotNullParameter(editable, "editable");
                if ((editable.toString().length() == 0) && Intrinsics.areEqual(editable.toString(), "")) {
                    SendInternalQrImageActivity.this.F();
                } else {
                    SendInternalQrImageActivity.this.G();
                }
                z = SendInternalQrImageActivity.this.isEditing;
                if (z) {
                    return;
                }
                SendInternalQrImageActivity.this.isEditing = true;
                String obj2 = editable.toString();
                TextInputEditText textInputEditText5 = null;
                if (obj2.length() > 0) {
                    textInputEditText4 = SendInternalQrImageActivity.this.tieInputNominal;
                    if (textInputEditText4 == null) {
                        Intrinsics.throwUninitializedPropertyAccessException("tieInputNominal");
                    } else {
                        textInputEditText5 = textInputEditText4;
                    }
                    textInputEditText5.setTextColor(ViewCompat.MEASURED_STATE_MASK);
                } else if (obj2.length() < 1) {
                    textInputEditText3 = SendInternalQrImageActivity.this.tieInputNominal;
                    if (textInputEditText3 == null) {
                        Intrinsics.throwUninitializedPropertyAccessException("tieInputNominal");
                    } else {
                        textInputEditText5 = textInputEditText3;
                    }
                    textInputEditText5.setTextColor(-7829368);
                }
                editable.replace(0, editable.length(), Locales.money(Var.toInt(new Regex("[^\\d]").replace(editable.toString(), ""), 0), ""));
                SendInternalQrImageActivity.this.isEditing = false;
            }

            @Override
            public void beforeTextChanged(@NotNull CharSequence charSequence, int i, int i1, int i2) {
                Intrinsics.checkNotNullParameter(charSequence, "charSequence");
            }

            @Override
            public void onTextChanged(@NotNull CharSequence charSequence, int i, int i1, int i2) {
                Intrinsics.checkNotNullParameter(charSequence, "charSequence");
            }
        });
        View findViewById14 = findViewById(R.id.tv_reset);
        Intrinsics.checkNotNullExpressionValue(findViewById14, "findViewById(R.id.tv_reset)");
        TextView textView6 = (TextView) findViewById14;
        this.tvReset = textView6;
        if (textView6 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("tvReset");
            textView6 = null;
        }
        textView6.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view4) {
                SendInternalQrImageActivity.z(SendInternalQrImageActivity.this, view4);
            }
        });
        View findViewById15 = findViewById(R.id.btn_share);
        Intrinsics.checkNotNullExpressionValue(findViewById15, "findViewById(R.id.btn_share)");
        this.btnShare = findViewById15;
        if (findViewById15 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("btnShare");
        } else {
            view = findViewById15;
        }
        view.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view4) {
                SendInternalQrImageActivity.A(SendInternalQrImageActivity.this, view4);
            }
        });
    }
}