正在查看: Baubap v3.9.7 应用的 PaymentsSuccessFragment.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Baubap v3.9.7 应用的 PaymentsSuccessFragment.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.baubap.modules.services.payments.presentation.payment;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcelable;
import android.view.View;
import c0.d;
import cl.l;
import cl.w;
import com.airbnb.lottie.LottieAnimationView;
import com.baubap.modules.services.payments.presentation.PaymentsViewModel;
import com.baubap.util.views.TitleToolbar;
import com.google.android.material.button.MaterialButton;
import com.google.android.material.textfield.TextInputEditText;
import com.google.android.material.textfield.TextInputLayout;
import com.google.android.material.textview.MaterialTextView;
import el.g;
import f40.k;
import f6.l1;
import fl.l0;
import gk.a;
import hk.m;
import kotlin.jvm.internal.q;
import kotlin.jvm.internal.y;
import me.g3;
import mo.i;
import xu.b;
public final class PaymentsSuccessFragment extends a {
public static final k[] f9694j;
public final i f9695h;
public final l1 f9696i;
static {
q qVar = new q(PaymentsSuccessFragment.class, "binding", "getBinding()Lcom/baubap/databinding/PaymentsSuccessFragmentBinding;", 0);
y.a.getClass();
f9694j = new k[]{qVar};
}
public PaymentsSuccessFragment() {
super(2131558811, 27);
this.f9695h = d.V0(this, l0.f13226b);
this.f9696i = f40.q.K(this, y.a(PaymentsViewModel.class), new g(this, 13), new dl.k(this, 11), new g(this, 14));
}
@Override
public final void onViewCreated(View view, Bundle bundle) {
Parcelable parcelable;
Object parcelable2;
b.y(view, "view");
((TitleToolbar) requireActivity().findViewById(2131364068)).setTitle("Paga y Gana");
k[] kVarArr = f9694j;
k kVar = kVarArr[0];
i iVar = this.f9695h;
g3 g3Var = (g3) iVar.a(this, kVar);
LottieAnimationView lottieAnimationView = g3Var.f20763a;
b.x(lottieAnimationView, "animation");
lottieAnimationView.setAnimationFromUrl("https://media.baubap.com/android/common/success.json");
lottieAnimationView.d();
Bundle requireArguments = requireArguments();
b.x(requireArguments, "requireArguments(...)");
if (Build.VERSION.SDK_INT >= 33) {
parcelable2 = requireArguments.getParcelable("PAYMENT", l.class);
parcelable = (Parcelable) parcelable2;
} else {
Parcelable parcelable3 = requireArguments.getParcelable("PAYMENT");
if (!(parcelable3 instanceof l)) {
parcelable3 = null;
}
parcelable = (l) parcelable3;
}
l lVar = (l) parcelable;
if (lVar != null) {
w wVar = ((PaymentsViewModel) this.f9696i.getValue()).J;
g3Var.f20769g.setText(wVar != null ? wVar.f8589b : null);
g3Var.f20768f.setText(lVar.f8526d);
g3Var.f20772j.setText(lVar.f8525c);
MaterialTextView materialTextView = g3Var.f20770h;
String str = lVar.f8527e;
materialTextView.setText(str);
g3Var.f20765c.setText(lVar.f8528f);
g3Var.f20771i.setText(str);
g3Var.f20767e.setText(lVar.f8529g);
TextInputLayout textInputLayout = g3Var.f20773k;
MaterialTextView materialTextView2 = g3Var.f20766d;
String str2 = lVar.f8530h;
if (str2 == null) {
b.x(materialTextView2, "lblCode");
materialTextView2.setVisibility(8);
b.x(textInputLayout, "tilCode");
textInputLayout.setVisibility(8);
} else {
b.x(materialTextView2, "lblCode");
materialTextView2.setVisibility(0);
b.x(textInputLayout, "tilCode");
textInputLayout.setVisibility(0);
TextInputEditText textInputEditText = g3Var.f20774l;
textInputEditText.setText(str2);
textInputEditText.setShowSoftInputOnFocus(false);
}
}
MaterialButton materialButton = ((g3) iVar.a(this, kVarArr[0])).f20764b;
b.x(materialButton, "btnNext");
z50.a.Z(materialButton, new m(this, 12));
}
}