Initial import of ADIF API reverse-engineering toolkit
This commit is contained in:
@@ -0,0 +1,489 @@
|
||||
package com.adif.elcanomovil.uiDialog;
|
||||
|
||||
import android.app.Dialog;
|
||||
import android.content.DialogInterface;
|
||||
import android.os.Bundle;
|
||||
import android.view.KeyEvent;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.widget.Button;
|
||||
import android.widget.TextView;
|
||||
import androidx.appcompat.widget.AppCompatButton;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
import androidx.fragment.app.DialogInterfaceOnCancelListenerC0174y;
|
||||
import androidx.fragment.app.K;
|
||||
import b.r;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.AlertAction;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.AlertType;
|
||||
import com.adif.elcanomovil.uiDialog.databinding.DialogAdifBinding;
|
||||
import g.C0357d;
|
||||
import g.C0361h;
|
||||
import g.DialogInterfaceC0362i;
|
||||
import java.util.Iterator;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Reflection;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import o0.C0531h;
|
||||
|
||||
@Metadata(d1 = {"\u0000X\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0003\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003J\u000f\u0010\u0005\u001a\u00020\u0004H\u0002¢\u0006\u0004\b\u0005\u0010\u0003J#\u0010\u000b\u001a\u00020\u0004*\u00020\u00062\u0006\u0010\b\u001a\u00020\u00072\u0006\u0010\n\u001a\u00020\tH\u0002¢\u0006\u0004\b\u000b\u0010\fJ\u001d\u0010\u000f\u001a\u00020\u0004*\u00020\r2\b\u0010\u000e\u001a\u0004\u0018\u00010\u0007H\u0002¢\u0006\u0004\b\u000f\u0010\u0010J\u001d\u0010\u000f\u001a\u00020\u0004*\u00020\u00112\b\u0010\u000e\u001a\u0004\u0018\u00010\u0007H\u0002¢\u0006\u0004\b\u000f\u0010\u0012J!\u0010\u0017\u001a\u00020\u00042\u0006\u0010\u0014\u001a\u00020\u00132\b\u0010\u0016\u001a\u0004\u0018\u00010\u0015H\u0016¢\u0006\u0004\b\u0017\u0010\u0018J\u000f\u0010\u0019\u001a\u00020\u0004H\u0016¢\u0006\u0004\b\u0019\u0010\u0003J\u0019\u0010\u001b\u001a\u00020\u001a2\b\u0010\u0016\u001a\u0004\u0018\u00010\u0015H\u0016¢\u0006\u0004\b\u001b\u0010\u001cR\u001b\u0010\"\u001a\u00020\u001d8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u001e\u0010\u001f\u001a\u0004\b \u0010!R\u0016\u0010$\u001a\u00020#8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b$\u0010%¨\u0006&"}, d2 = {"Lcom/adif/elcanomovil/uiDialog/AdifDialogFragment;", "Landroidx/fragment/app/y;", "<init>", "()V", "", "configureView", "Lg/h;", "", "key", "Lcom/adif/elcanomovil/commonNavGraph/arguments/AlertAction;", "alertAction", "addButton", "(Lg/h;Ljava/lang/String;Lcom/adif/elcanomovil/commonNavGraph/arguments/AlertAction;)V", "Landroid/widget/TextView;", "newText", "setTextAndVisible", "(Landroid/widget/TextView;Ljava/lang/String;)V", "Landroid/widget/Button;", "(Landroid/widget/Button;Ljava/lang/String;)V", "Landroid/view/View;", "view", "Landroid/os/Bundle;", "savedInstanceState", "onViewCreated", "(Landroid/view/View;Landroid/os/Bundle;)V", "onPause", "Landroid/app/Dialog;", "onCreateDialog", "(Landroid/os/Bundle;)Landroid/app/Dialog;", "Lcom/adif/elcanomovil/uiDialog/AdifDialogFragmentArgs;", "args$delegate", "Lo0/h;", "getArgs", "()Lcom/adif/elcanomovil/uiDialog/AdifDialogFragmentArgs;", "args", "Lcom/adif/elcanomovil/uiDialog/databinding/DialogAdifBinding;", "binding", "Lcom/adif/elcanomovil/uiDialog/databinding/DialogAdifBinding;", "ui-dialog_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nAdifDialogFragment.kt\nKotlin\n*S Kotlin\n*F\n+ 1 AdifDialogFragment.kt\ncom/adif/elcanomovil/uiDialog/AdifDialogFragment\n+ 2 FragmentNavArgsLazy.kt\nandroidx/navigation/fragment/FragmentNavArgsLazyKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 4 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,145:1\n42#2,3:146\n1#3:149\n1855#4,2:150\n*S KotlinDebug\n*F\n+ 1 AdifDialogFragment.kt\ncom/adif/elcanomovil/uiDialog/AdifDialogFragment\n*L\n23#1:146,3\n94#1:150,2\n*E\n"})
|
||||
/* loaded from: classes2.dex */
|
||||
public final class AdifDialogFragment extends DialogInterfaceOnCancelListenerC0174y {
|
||||
|
||||
/* renamed from: args$delegate, reason: from kotlin metadata */
|
||||
private final C0531h args = new C0531h(Reflection.getOrCreateKotlinClass(AdifDialogFragmentArgs.class), new Function0<Bundle>() { // from class: com.adif.elcanomovil.uiDialog.AdifDialogFragment$special$$inlined$navArgs$1
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final Bundle invoke() {
|
||||
Bundle arguments = K.this.getArguments();
|
||||
if (arguments != null) {
|
||||
return arguments;
|
||||
}
|
||||
throw new IllegalStateException("Fragment " + K.this + " has null arguments");
|
||||
}
|
||||
});
|
||||
private DialogAdifBinding binding;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public /* synthetic */ class WhenMappings {
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$1;
|
||||
|
||||
static {
|
||||
int[] iArr = new int[AlertType.values().length];
|
||||
try {
|
||||
iArr[AlertType.INFO.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused) {
|
||||
}
|
||||
try {
|
||||
iArr[AlertType.WARNING.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused2) {
|
||||
}
|
||||
try {
|
||||
iArr[AlertType.ERROR.ordinal()] = 3;
|
||||
} catch (NoSuchFieldError unused3) {
|
||||
}
|
||||
$EnumSwitchMapping$0 = iArr;
|
||||
int[] iArr2 = new int[AlertAction.Style.values().length];
|
||||
try {
|
||||
iArr2[AlertAction.Style.NEGATIVE.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused4) {
|
||||
}
|
||||
try {
|
||||
iArr2[AlertAction.Style.POSITIVE.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused5) {
|
||||
}
|
||||
try {
|
||||
iArr2[AlertAction.Style.NEUTRAL.ordinal()] = 3;
|
||||
} catch (NoSuchFieldError unused6) {
|
||||
}
|
||||
$EnumSwitchMapping$1 = iArr2;
|
||||
}
|
||||
}
|
||||
|
||||
public static final /* synthetic */ AdifDialogFragmentArgs access$getArgs(AdifDialogFragment adifDialogFragment) {
|
||||
return adifDialogFragment.getArgs();
|
||||
}
|
||||
|
||||
/* JADX WARN: Type inference failed for: r3v3, types: [com.adif.elcanomovil.uiDialog.a] */
|
||||
/* JADX WARN: Type inference failed for: r3v7, types: [com.adif.elcanomovil.uiDialog.a] */
|
||||
private final void addButton(C0361h c0361h, String str, AlertAction alertAction) {
|
||||
final d dVar = new d(this, str, alertAction);
|
||||
int i = WhenMappings.$EnumSwitchMapping$1[alertAction.getStyle().ordinal()];
|
||||
if (i == 1) {
|
||||
String title = alertAction.getTitle();
|
||||
final int i4 = 0;
|
||||
?? r32 = new DialogInterface.OnClickListener() { // from class: com.adif.elcanomovil.uiDialog.a
|
||||
@Override // android.content.DialogInterface.OnClickListener
|
||||
public final void onClick(DialogInterface dialogInterface, int i5) {
|
||||
int i6 = i4;
|
||||
d dVar2 = dVar;
|
||||
switch (i6) {
|
||||
case 0:
|
||||
AdifDialogFragment.g(dVar2, dialogInterface, i5);
|
||||
return;
|
||||
case 1:
|
||||
AdifDialogFragment.i(dVar2, dialogInterface, i5);
|
||||
return;
|
||||
default:
|
||||
AdifDialogFragment.k(dVar2, dialogInterface, i5);
|
||||
return;
|
||||
}
|
||||
}
|
||||
};
|
||||
C0357d c0357d = c0361h.f6647a;
|
||||
c0357d.i = title;
|
||||
c0357d.f6608j = r32;
|
||||
return;
|
||||
}
|
||||
if (i == 2) {
|
||||
String title2 = alertAction.getTitle();
|
||||
final int i5 = 1;
|
||||
DialogInterface.OnClickListener onClickListener = new DialogInterface.OnClickListener() { // from class: com.adif.elcanomovil.uiDialog.a
|
||||
@Override // android.content.DialogInterface.OnClickListener
|
||||
public final void onClick(DialogInterface dialogInterface, int i52) {
|
||||
int i6 = i5;
|
||||
d dVar2 = dVar;
|
||||
switch (i6) {
|
||||
case 0:
|
||||
AdifDialogFragment.g(dVar2, dialogInterface, i52);
|
||||
return;
|
||||
case 1:
|
||||
AdifDialogFragment.i(dVar2, dialogInterface, i52);
|
||||
return;
|
||||
default:
|
||||
AdifDialogFragment.k(dVar2, dialogInterface, i52);
|
||||
return;
|
||||
}
|
||||
}
|
||||
};
|
||||
C0357d c0357d2 = c0361h.f6647a;
|
||||
c0357d2.f6607g = title2;
|
||||
c0357d2.h = onClickListener;
|
||||
return;
|
||||
}
|
||||
if (i != 3) {
|
||||
return;
|
||||
}
|
||||
String title3 = alertAction.getTitle();
|
||||
final int i6 = 2;
|
||||
?? r33 = new DialogInterface.OnClickListener() { // from class: com.adif.elcanomovil.uiDialog.a
|
||||
@Override // android.content.DialogInterface.OnClickListener
|
||||
public final void onClick(DialogInterface dialogInterface, int i52) {
|
||||
int i62 = i6;
|
||||
d dVar2 = dVar;
|
||||
switch (i62) {
|
||||
case 0:
|
||||
AdifDialogFragment.g(dVar2, dialogInterface, i52);
|
||||
return;
|
||||
case 1:
|
||||
AdifDialogFragment.i(dVar2, dialogInterface, i52);
|
||||
return;
|
||||
default:
|
||||
AdifDialogFragment.k(dVar2, dialogInterface, i52);
|
||||
return;
|
||||
}
|
||||
}
|
||||
};
|
||||
C0357d c0357d3 = c0361h.f6647a;
|
||||
c0357d3.f6609k = title3;
|
||||
c0357d3.f6610l = r33;
|
||||
}
|
||||
|
||||
public static final void addButton$lambda$10(Function2 tmp0, DialogInterface dialogInterface, int i) {
|
||||
Intrinsics.checkNotNullParameter(tmp0, "$tmp0");
|
||||
tmp0.invoke(dialogInterface, Integer.valueOf(i));
|
||||
}
|
||||
|
||||
public static final void addButton$lambda$8(Function2 tmp0, DialogInterface dialogInterface, int i) {
|
||||
Intrinsics.checkNotNullParameter(tmp0, "$tmp0");
|
||||
tmp0.invoke(dialogInterface, Integer.valueOf(i));
|
||||
}
|
||||
|
||||
public static final void addButton$lambda$9(Function2 tmp0, DialogInterface dialogInterface, int i) {
|
||||
Intrinsics.checkNotNullParameter(tmp0, "$tmp0");
|
||||
tmp0.invoke(dialogInterface, Integer.valueOf(i));
|
||||
}
|
||||
|
||||
private final void configureView() {
|
||||
DialogAdifBinding dialogAdifBinding = this.binding;
|
||||
if (dialogAdifBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogAdifBinding = null;
|
||||
}
|
||||
TextView title = dialogAdifBinding.title;
|
||||
Intrinsics.checkNotNullExpressionValue(title, "title");
|
||||
setTextAndVisible(title, getArgs().getTitle());
|
||||
DialogAdifBinding dialogAdifBinding2 = this.binding;
|
||||
if (dialogAdifBinding2 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogAdifBinding2 = null;
|
||||
}
|
||||
TextView message = dialogAdifBinding2.message;
|
||||
Intrinsics.checkNotNullExpressionValue(message, "message");
|
||||
setTextAndVisible(message, getArgs().getMessage());
|
||||
int i = WhenMappings.$EnumSwitchMapping$0[getArgs().getType().ordinal()];
|
||||
if (i == 1) {
|
||||
DialogAdifBinding dialogAdifBinding3 = this.binding;
|
||||
if (dialogAdifBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogAdifBinding3 = null;
|
||||
}
|
||||
ConstraintLayout root = dialogAdifBinding3.getRoot();
|
||||
DialogAdifBinding dialogAdifBinding4 = this.binding;
|
||||
if (dialogAdifBinding4 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogAdifBinding4 = null;
|
||||
}
|
||||
root.setBackgroundColor(dialogAdifBinding4.getRoot().getContext().getColor(R.color.white));
|
||||
} else if (i == 2) {
|
||||
DialogAdifBinding dialogAdifBinding5 = this.binding;
|
||||
if (dialogAdifBinding5 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogAdifBinding5 = null;
|
||||
}
|
||||
ConstraintLayout root2 = dialogAdifBinding5.getRoot();
|
||||
DialogAdifBinding dialogAdifBinding6 = this.binding;
|
||||
if (dialogAdifBinding6 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogAdifBinding6 = null;
|
||||
}
|
||||
root2.setBackgroundColor(dialogAdifBinding6.getRoot().getContext().getColor(R.color.yellow));
|
||||
DialogAdifBinding dialogAdifBinding7 = this.binding;
|
||||
if (dialogAdifBinding7 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogAdifBinding7 = null;
|
||||
}
|
||||
dialogAdifBinding7.header.setVisibility(0);
|
||||
} else if (i == 3) {
|
||||
DialogAdifBinding dialogAdifBinding8 = this.binding;
|
||||
if (dialogAdifBinding8 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogAdifBinding8 = null;
|
||||
}
|
||||
dialogAdifBinding8.header.setText(getString(R.string.dialog_header_error));
|
||||
DialogAdifBinding dialogAdifBinding9 = this.binding;
|
||||
if (dialogAdifBinding9 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogAdifBinding9 = null;
|
||||
}
|
||||
ConstraintLayout root3 = dialogAdifBinding9.getRoot();
|
||||
DialogAdifBinding dialogAdifBinding10 = this.binding;
|
||||
if (dialogAdifBinding10 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogAdifBinding10 = null;
|
||||
}
|
||||
root3.setBackgroundColor(dialogAdifBinding10.getRoot().getContext().getColor(R.color.yellow));
|
||||
DialogAdifBinding dialogAdifBinding11 = this.binding;
|
||||
if (dialogAdifBinding11 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogAdifBinding11 = null;
|
||||
}
|
||||
dialogAdifBinding11.header.setVisibility(0);
|
||||
}
|
||||
Iterator<AlertAction> it = getArgs().getActions().iterator();
|
||||
while (it.hasNext()) {
|
||||
AlertAction next = it.next();
|
||||
final e eVar = new e(this, next);
|
||||
int i4 = WhenMappings.$EnumSwitchMapping$1[next.getStyle().ordinal()];
|
||||
if (i4 == 1) {
|
||||
DialogAdifBinding dialogAdifBinding12 = this.binding;
|
||||
if (dialogAdifBinding12 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogAdifBinding12 = null;
|
||||
}
|
||||
AppCompatButton negative = dialogAdifBinding12.negative;
|
||||
Intrinsics.checkNotNullExpressionValue(negative, "negative");
|
||||
setTextAndVisible((Button) negative, next.getTitle());
|
||||
DialogAdifBinding dialogAdifBinding13 = this.binding;
|
||||
if (dialogAdifBinding13 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogAdifBinding13 = null;
|
||||
}
|
||||
final int i5 = 0;
|
||||
dialogAdifBinding13.negative.setOnClickListener(new View.OnClickListener() { // from class: com.adif.elcanomovil.uiDialog.b
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
int i6 = i5;
|
||||
e eVar2 = eVar;
|
||||
switch (i6) {
|
||||
case 0:
|
||||
AdifDialogFragment.configureView$lambda$7$lambda$4(eVar2, view);
|
||||
return;
|
||||
case 1:
|
||||
AdifDialogFragment.configureView$lambda$7$lambda$5(eVar2, view);
|
||||
return;
|
||||
default:
|
||||
AdifDialogFragment.configureView$lambda$7$lambda$6(eVar2, view);
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
} else if (i4 == 2) {
|
||||
DialogAdifBinding dialogAdifBinding14 = this.binding;
|
||||
if (dialogAdifBinding14 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogAdifBinding14 = null;
|
||||
}
|
||||
AppCompatButton positive = dialogAdifBinding14.positive;
|
||||
Intrinsics.checkNotNullExpressionValue(positive, "positive");
|
||||
setTextAndVisible((Button) positive, next.getTitle());
|
||||
DialogAdifBinding dialogAdifBinding15 = this.binding;
|
||||
if (dialogAdifBinding15 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogAdifBinding15 = null;
|
||||
}
|
||||
final int i6 = 1;
|
||||
dialogAdifBinding15.positive.setOnClickListener(new View.OnClickListener() { // from class: com.adif.elcanomovil.uiDialog.b
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
int i62 = i6;
|
||||
e eVar2 = eVar;
|
||||
switch (i62) {
|
||||
case 0:
|
||||
AdifDialogFragment.configureView$lambda$7$lambda$4(eVar2, view);
|
||||
return;
|
||||
case 1:
|
||||
AdifDialogFragment.configureView$lambda$7$lambda$5(eVar2, view);
|
||||
return;
|
||||
default:
|
||||
AdifDialogFragment.configureView$lambda$7$lambda$6(eVar2, view);
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
} else if (i4 == 3) {
|
||||
DialogAdifBinding dialogAdifBinding16 = this.binding;
|
||||
if (dialogAdifBinding16 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogAdifBinding16 = null;
|
||||
}
|
||||
AppCompatButton neutral = dialogAdifBinding16.neutral;
|
||||
Intrinsics.checkNotNullExpressionValue(neutral, "neutral");
|
||||
setTextAndVisible((Button) neutral, next.getTitle());
|
||||
DialogAdifBinding dialogAdifBinding17 = this.binding;
|
||||
if (dialogAdifBinding17 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogAdifBinding17 = null;
|
||||
}
|
||||
final int i7 = 2;
|
||||
dialogAdifBinding17.neutral.setOnClickListener(new View.OnClickListener() { // from class: com.adif.elcanomovil.uiDialog.b
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
int i62 = i7;
|
||||
e eVar2 = eVar;
|
||||
switch (i62) {
|
||||
case 0:
|
||||
AdifDialogFragment.configureView$lambda$7$lambda$4(eVar2, view);
|
||||
return;
|
||||
case 1:
|
||||
AdifDialogFragment.configureView$lambda$7$lambda$5(eVar2, view);
|
||||
return;
|
||||
default:
|
||||
AdifDialogFragment.configureView$lambda$7$lambda$6(eVar2, view);
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static final void configureView$lambda$7$lambda$4(Function0 buttonAction, View view) {
|
||||
Intrinsics.checkNotNullParameter(buttonAction, "$buttonAction");
|
||||
buttonAction.invoke();
|
||||
}
|
||||
|
||||
public static final void configureView$lambda$7$lambda$5(Function0 buttonAction, View view) {
|
||||
Intrinsics.checkNotNullParameter(buttonAction, "$buttonAction");
|
||||
buttonAction.invoke();
|
||||
}
|
||||
|
||||
public static final void configureView$lambda$7$lambda$6(Function0 buttonAction, View view) {
|
||||
Intrinsics.checkNotNullParameter(buttonAction, "$buttonAction");
|
||||
buttonAction.invoke();
|
||||
}
|
||||
|
||||
public static /* synthetic */ void g(d dVar, DialogInterface dialogInterface, int i) {
|
||||
addButton$lambda$8(dVar, dialogInterface, i);
|
||||
}
|
||||
|
||||
public final AdifDialogFragmentArgs getArgs() {
|
||||
return (AdifDialogFragmentArgs) this.args.getValue();
|
||||
}
|
||||
|
||||
public static /* synthetic */ void i(d dVar, DialogInterface dialogInterface, int i) {
|
||||
addButton$lambda$9(dVar, dialogInterface, i);
|
||||
}
|
||||
|
||||
public static /* synthetic */ void k(d dVar, DialogInterface dialogInterface, int i) {
|
||||
addButton$lambda$10(dVar, dialogInterface, i);
|
||||
}
|
||||
|
||||
public static final boolean onCreateDialog$lambda$3(AdifDialogFragment this$0, DialogInterface dialogInterface, int i, KeyEvent keyEvent) {
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
if (i == 4 && keyEvent.getAction() == 1) {
|
||||
return this$0.getArgs().getBlockOnback();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private final void setTextAndVisible(TextView textView, String str) {
|
||||
if (str == null) {
|
||||
return;
|
||||
}
|
||||
textView.setText(str);
|
||||
textView.setVisibility(0);
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.DialogInterfaceOnCancelListenerC0174y
|
||||
public Dialog onCreateDialog(Bundle savedInstanceState) {
|
||||
C0361h c0361h = new C0361h(requireContext());
|
||||
C0357d c0357d = c0361h.f6647a;
|
||||
DialogAdifBinding inflate = DialogAdifBinding.inflate(LayoutInflater.from(c0357d.f6601a));
|
||||
Intrinsics.checkNotNullExpressionValue(inflate, "inflate(...)");
|
||||
this.binding = inflate;
|
||||
if (inflate == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
inflate = null;
|
||||
}
|
||||
c0357d.f6614q = inflate.getRoot();
|
||||
DialogInterfaceC0362i a2 = c0361h.a();
|
||||
a2.setCancelable(getArgs().isCancelable());
|
||||
a2.setCanceledOnTouchOutside(getArgs().isCancelable());
|
||||
configureView();
|
||||
Intrinsics.checkNotNullExpressionValue(a2, "also(...)");
|
||||
a2.setOnKeyListener(new DialogInterface.OnKeyListener() { // from class: com.adif.elcanomovil.uiDialog.c
|
||||
@Override // android.content.DialogInterface.OnKeyListener
|
||||
public final boolean onKey(DialogInterface dialogInterface, int i, KeyEvent keyEvent) {
|
||||
boolean onCreateDialog$lambda$3;
|
||||
onCreateDialog$lambda$3 = AdifDialogFragment.onCreateDialog$lambda$3(AdifDialogFragment.this, dialogInterface, i, keyEvent);
|
||||
return onCreateDialog$lambda$3;
|
||||
}
|
||||
});
|
||||
return a2;
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public void onPause() {
|
||||
super.onPause();
|
||||
dismiss();
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public void onViewCreated(View view, Bundle savedInstanceState) {
|
||||
Intrinsics.checkNotNullParameter(view, "view");
|
||||
super.onViewCreated(view, savedInstanceState);
|
||||
requireActivity().getOnBackPressedDispatcher().a(this, new r() { // from class: com.adif.elcanomovil.uiDialog.AdifDialogFragment$onViewCreated$1
|
||||
{
|
||||
super(true);
|
||||
}
|
||||
|
||||
@Override // b.r
|
||||
public void handleOnBackPressed() {
|
||||
AdifDialogFragmentArgs args;
|
||||
args = AdifDialogFragment.this.getArgs();
|
||||
if (args.getBlockOnback()) {
|
||||
return;
|
||||
}
|
||||
AdifDialogFragment.this.requireActivity().onBackPressed();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private final void setTextAndVisible(Button button, String str) {
|
||||
if (str == null) {
|
||||
return;
|
||||
}
|
||||
button.setText(str);
|
||||
button.setVisibility(0);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,337 @@
|
||||
package com.adif.elcanomovil.uiDialog;
|
||||
|
||||
import C.w;
|
||||
import android.os.Bundle;
|
||||
import android.os.Parcelable;
|
||||
import androidx.lifecycle.n0;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.AlertActions;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.AlertType;
|
||||
import java.io.Serializable;
|
||||
import java.util.RandomAccess;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.JvmStatic;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import o0.InterfaceC0530g;
|
||||
|
||||
@Metadata(d1 = {"\u0000F\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u000f\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0002\b\u000e\b\u0086\b\u0018\u0000 12\u00020\u0001:\u00011B7\u0012\u0006\u0010\u0003\u001a\u00020\u0002\u0012\u0006\u0010\u0004\u001a\u00020\u0002\u0012\u0006\u0010\u0006\u001a\u00020\u0005\u0012\u0006\u0010\u0007\u001a\u00020\u0005\u0012\u0006\u0010\t\u001a\u00020\b\u0012\u0006\u0010\u000b\u001a\u00020\n¢\u0006\u0004\b\f\u0010\rJ\r\u0010\u000f\u001a\u00020\u000e¢\u0006\u0004\b\u000f\u0010\u0010J\r\u0010\u0012\u001a\u00020\u0011¢\u0006\u0004\b\u0012\u0010\u0013J\u0010\u0010\u0014\u001a\u00020\u0002HÆ\u0003¢\u0006\u0004\b\u0014\u0010\u0015J\u0010\u0010\u0016\u001a\u00020\u0002HÆ\u0003¢\u0006\u0004\b\u0016\u0010\u0015J\u0010\u0010\u0017\u001a\u00020\u0005HÆ\u0003¢\u0006\u0004\b\u0017\u0010\u0018J\u0010\u0010\u0019\u001a\u00020\u0005HÆ\u0003¢\u0006\u0004\b\u0019\u0010\u0018J\u0010\u0010\u001a\u001a\u00020\bHÆ\u0003¢\u0006\u0004\b\u001a\u0010\u001bJ\u0010\u0010\u001c\u001a\u00020\nHÆ\u0003¢\u0006\u0004\b\u001c\u0010\u001dJL\u0010\u001e\u001a\u00020\u00002\b\b\u0002\u0010\u0003\u001a\u00020\u00022\b\b\u0002\u0010\u0004\u001a\u00020\u00022\b\b\u0002\u0010\u0006\u001a\u00020\u00052\b\b\u0002\u0010\u0007\u001a\u00020\u00052\b\b\u0002\u0010\t\u001a\u00020\b2\b\b\u0002\u0010\u000b\u001a\u00020\nHÆ\u0001¢\u0006\u0004\b\u001e\u0010\u001fJ\u0010\u0010 \u001a\u00020\u0005HÖ\u0001¢\u0006\u0004\b \u0010\u0018J\u0010\u0010\"\u001a\u00020!HÖ\u0001¢\u0006\u0004\b\"\u0010#J\u001a\u0010&\u001a\u00020\u00022\b\u0010%\u001a\u0004\u0018\u00010$HÖ\u0003¢\u0006\u0004\b&\u0010'R\u0017\u0010\u0003\u001a\u00020\u00028\u0006¢\u0006\f\n\u0004\b\u0003\u0010(\u001a\u0004\b)\u0010\u0015R\u0017\u0010\u0004\u001a\u00020\u00028\u0006¢\u0006\f\n\u0004\b\u0004\u0010(\u001a\u0004\b\u0004\u0010\u0015R\u0017\u0010\u0006\u001a\u00020\u00058\u0006¢\u0006\f\n\u0004\b\u0006\u0010*\u001a\u0004\b+\u0010\u0018R\u0017\u0010\u0007\u001a\u00020\u00058\u0006¢\u0006\f\n\u0004\b\u0007\u0010*\u001a\u0004\b,\u0010\u0018R\u0017\u0010\t\u001a\u00020\b8\u0006¢\u0006\f\n\u0004\b\t\u0010-\u001a\u0004\b.\u0010\u001bR\u0017\u0010\u000b\u001a\u00020\n8\u0006¢\u0006\f\n\u0004\b\u000b\u0010/\u001a\u0004\b0\u0010\u001d¨\u00062"}, d2 = {"Lcom/adif/elcanomovil/uiDialog/AdifDialogFragmentArgs;", "Lo0/g;", "", "blockOnback", "isCancelable", "", "title", "message", "Lcom/adif/elcanomovil/commonNavGraph/arguments/AlertActions;", "actions", "Lcom/adif/elcanomovil/commonNavGraph/arguments/AlertType;", "type", "<init>", "(ZZLjava/lang/String;Ljava/lang/String;Lcom/adif/elcanomovil/commonNavGraph/arguments/AlertActions;Lcom/adif/elcanomovil/commonNavGraph/arguments/AlertType;)V", "Landroid/os/Bundle;", "toBundle", "()Landroid/os/Bundle;", "Landroidx/lifecycle/n0;", "toSavedStateHandle", "()Landroidx/lifecycle/n0;", "component1", "()Z", "component2", "component3", "()Ljava/lang/String;", "component4", "component5", "()Lcom/adif/elcanomovil/commonNavGraph/arguments/AlertActions;", "component6", "()Lcom/adif/elcanomovil/commonNavGraph/arguments/AlertType;", "copy", "(ZZLjava/lang/String;Ljava/lang/String;Lcom/adif/elcanomovil/commonNavGraph/arguments/AlertActions;Lcom/adif/elcanomovil/commonNavGraph/arguments/AlertType;)Lcom/adif/elcanomovil/uiDialog/AdifDialogFragmentArgs;", "toString", "", "hashCode", "()I", "", "other", "equals", "(Ljava/lang/Object;)Z", "Z", "getBlockOnback", "Ljava/lang/String;", "getTitle", "getMessage", "Lcom/adif/elcanomovil/commonNavGraph/arguments/AlertActions;", "getActions", "Lcom/adif/elcanomovil/commonNavGraph/arguments/AlertType;", "getType", "Companion", "common-nav-graph_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final /* data */ class AdifDialogFragmentArgs implements InterfaceC0530g {
|
||||
|
||||
/* renamed from: Companion, reason: from kotlin metadata */
|
||||
public static final Companion INSTANCE = new Companion(null);
|
||||
private final AlertActions actions;
|
||||
private final boolean blockOnback;
|
||||
private final boolean isCancelable;
|
||||
private final String message;
|
||||
private final String title;
|
||||
private final AlertType type;
|
||||
|
||||
@Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003J\u0017\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\u0004H\u0007¢\u0006\u0004\b\u0007\u0010\bJ\u0017\u0010\u000b\u001a\u00020\u00062\u0006\u0010\n\u001a\u00020\tH\u0007¢\u0006\u0004\b\u000b\u0010\f¨\u0006\r"}, d2 = {"Lcom/adif/elcanomovil/uiDialog/AdifDialogFragmentArgs$Companion;", "", "<init>", "()V", "Landroid/os/Bundle;", "bundle", "Lcom/adif/elcanomovil/uiDialog/AdifDialogFragmentArgs;", "fromBundle", "(Landroid/os/Bundle;)Lcom/adif/elcanomovil/uiDialog/AdifDialogFragmentArgs;", "Landroidx/lifecycle/n0;", "savedStateHandle", "fromSavedStateHandle", "(Landroidx/lifecycle/n0;)Lcom/adif/elcanomovil/uiDialog/AdifDialogFragmentArgs;", "common-nav-graph_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public static final class Companion {
|
||||
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
public final AdifDialogFragmentArgs fromBundle(Bundle bundle) {
|
||||
Intrinsics.checkNotNullParameter(bundle, "bundle");
|
||||
bundle.setClassLoader(AdifDialogFragmentArgs.class.getClassLoader());
|
||||
if (!bundle.containsKey("blockOnback")) {
|
||||
throw new IllegalArgumentException("Required argument \"blockOnback\" is missing and does not have an android:defaultValue");
|
||||
}
|
||||
boolean z3 = bundle.getBoolean("blockOnback");
|
||||
if (!bundle.containsKey("isCancelable")) {
|
||||
throw new IllegalArgumentException("Required argument \"isCancelable\" is missing and does not have an android:defaultValue");
|
||||
}
|
||||
boolean z4 = bundle.getBoolean("isCancelable");
|
||||
if (!bundle.containsKey("title")) {
|
||||
throw new IllegalArgumentException("Required argument \"title\" is missing and does not have an android:defaultValue");
|
||||
}
|
||||
String string = bundle.getString("title");
|
||||
if (string == null) {
|
||||
throw new IllegalArgumentException("Argument \"title\" is marked as non-null but was passed a null value.");
|
||||
}
|
||||
if (!bundle.containsKey("message")) {
|
||||
throw new IllegalArgumentException("Required argument \"message\" is missing and does not have an android:defaultValue");
|
||||
}
|
||||
String string2 = bundle.getString("message");
|
||||
if (string2 == null) {
|
||||
throw new IllegalArgumentException("Argument \"message\" is marked as non-null but was passed a null value.");
|
||||
}
|
||||
if (!bundle.containsKey("actions")) {
|
||||
throw new IllegalArgumentException("Required argument \"actions\" is missing and does not have an android:defaultValue");
|
||||
}
|
||||
if (!Parcelable.class.isAssignableFrom(AlertActions.class) && !Serializable.class.isAssignableFrom(AlertActions.class)) {
|
||||
throw new UnsupportedOperationException(AlertActions.class.getName().concat(" must implement Parcelable or Serializable or must be an Enum."));
|
||||
}
|
||||
AlertActions alertActions = (AlertActions) bundle.get("actions");
|
||||
if (alertActions == null) {
|
||||
throw new IllegalArgumentException("Argument \"actions\" is marked as non-null but was passed a null value.");
|
||||
}
|
||||
if (!bundle.containsKey("type")) {
|
||||
throw new IllegalArgumentException("Required argument \"type\" is missing and does not have an android:defaultValue");
|
||||
}
|
||||
if (!Parcelable.class.isAssignableFrom(AlertType.class) && !Serializable.class.isAssignableFrom(AlertType.class)) {
|
||||
throw new UnsupportedOperationException(AlertType.class.getName().concat(" must implement Parcelable or Serializable or must be an Enum."));
|
||||
}
|
||||
AlertType alertType = (AlertType) bundle.get("type");
|
||||
if (alertType != null) {
|
||||
return new AdifDialogFragmentArgs(z3, z4, string, string2, alertActions, alertType);
|
||||
}
|
||||
throw new IllegalArgumentException("Argument \"type\" is marked as non-null but was passed a null value.");
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
public final AdifDialogFragmentArgs fromSavedStateHandle(n0 savedStateHandle) {
|
||||
Intrinsics.checkNotNullParameter(savedStateHandle, "savedStateHandle");
|
||||
if (!savedStateHandle.b("blockOnback")) {
|
||||
throw new IllegalArgumentException("Required argument \"blockOnback\" is missing and does not have an android:defaultValue");
|
||||
}
|
||||
Boolean bool = (Boolean) savedStateHandle.c("blockOnback");
|
||||
if (bool == null) {
|
||||
throw new IllegalArgumentException("Argument \"blockOnback\" of type boolean does not support null values");
|
||||
}
|
||||
if (!savedStateHandle.b("isCancelable")) {
|
||||
throw new IllegalArgumentException("Required argument \"isCancelable\" is missing and does not have an android:defaultValue");
|
||||
}
|
||||
Boolean bool2 = (Boolean) savedStateHandle.c("isCancelable");
|
||||
if (bool2 == null) {
|
||||
throw new IllegalArgumentException("Argument \"isCancelable\" of type boolean does not support null values");
|
||||
}
|
||||
if (!savedStateHandle.b("title")) {
|
||||
throw new IllegalArgumentException("Required argument \"title\" is missing and does not have an android:defaultValue");
|
||||
}
|
||||
String str = (String) savedStateHandle.c("title");
|
||||
if (str == null) {
|
||||
throw new IllegalArgumentException("Argument \"title\" is marked as non-null but was passed a null value");
|
||||
}
|
||||
if (!savedStateHandle.b("message")) {
|
||||
throw new IllegalArgumentException("Required argument \"message\" is missing and does not have an android:defaultValue");
|
||||
}
|
||||
String str2 = (String) savedStateHandle.c("message");
|
||||
if (str2 == null) {
|
||||
throw new IllegalArgumentException("Argument \"message\" is marked as non-null but was passed a null value");
|
||||
}
|
||||
if (!savedStateHandle.b("actions")) {
|
||||
throw new IllegalArgumentException("Required argument \"actions\" is missing and does not have an android:defaultValue");
|
||||
}
|
||||
if (!Parcelable.class.isAssignableFrom(AlertActions.class) && !Serializable.class.isAssignableFrom(AlertActions.class)) {
|
||||
throw new UnsupportedOperationException(AlertActions.class.getName().concat(" must implement Parcelable or Serializable or must be an Enum."));
|
||||
}
|
||||
AlertActions alertActions = (AlertActions) savedStateHandle.c("actions");
|
||||
if (alertActions == null) {
|
||||
throw new IllegalArgumentException("Argument \"actions\" is marked as non-null but was passed a null value");
|
||||
}
|
||||
if (!savedStateHandle.b("type")) {
|
||||
throw new IllegalArgumentException("Required argument \"type\" is missing and does not have an android:defaultValue");
|
||||
}
|
||||
if (!Parcelable.class.isAssignableFrom(AlertType.class) && !Serializable.class.isAssignableFrom(AlertType.class)) {
|
||||
throw new UnsupportedOperationException(AlertType.class.getName().concat(" must implement Parcelable or Serializable or must be an Enum."));
|
||||
}
|
||||
AlertType alertType = (AlertType) savedStateHandle.c("type");
|
||||
if (alertType != null) {
|
||||
return new AdifDialogFragmentArgs(bool.booleanValue(), bool2.booleanValue(), str, str2, alertActions, alertType);
|
||||
}
|
||||
throw new IllegalArgumentException("Argument \"type\" is marked as non-null but was passed a null value");
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
}
|
||||
|
||||
public AdifDialogFragmentArgs(boolean z3, boolean z4, String title, String message, AlertActions actions, AlertType type) {
|
||||
Intrinsics.checkNotNullParameter(title, "title");
|
||||
Intrinsics.checkNotNullParameter(message, "message");
|
||||
Intrinsics.checkNotNullParameter(actions, "actions");
|
||||
Intrinsics.checkNotNullParameter(type, "type");
|
||||
this.blockOnback = z3;
|
||||
this.isCancelable = z4;
|
||||
this.title = title;
|
||||
this.message = message;
|
||||
this.actions = actions;
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public static /* synthetic */ AdifDialogFragmentArgs copy$default(AdifDialogFragmentArgs adifDialogFragmentArgs, boolean z3, boolean z4, String str, String str2, AlertActions alertActions, AlertType alertType, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
z3 = adifDialogFragmentArgs.blockOnback;
|
||||
}
|
||||
if ((i & 2) != 0) {
|
||||
z4 = adifDialogFragmentArgs.isCancelable;
|
||||
}
|
||||
if ((i & 4) != 0) {
|
||||
str = adifDialogFragmentArgs.title;
|
||||
}
|
||||
if ((i & 8) != 0) {
|
||||
str2 = adifDialogFragmentArgs.message;
|
||||
}
|
||||
if ((i & 16) != 0) {
|
||||
alertActions = adifDialogFragmentArgs.actions;
|
||||
}
|
||||
if ((i & 32) != 0) {
|
||||
alertType = adifDialogFragmentArgs.type;
|
||||
}
|
||||
AlertActions alertActions2 = alertActions;
|
||||
AlertType alertType2 = alertType;
|
||||
return adifDialogFragmentArgs.copy(z3, z4, str, str2, alertActions2, alertType2);
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
public static final AdifDialogFragmentArgs fromBundle(Bundle bundle) {
|
||||
return INSTANCE.fromBundle(bundle);
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
public static final AdifDialogFragmentArgs fromSavedStateHandle(n0 n0Var) {
|
||||
return INSTANCE.fromSavedStateHandle(n0Var);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final boolean getBlockOnback() {
|
||||
return this.blockOnback;
|
||||
}
|
||||
|
||||
/* renamed from: component2, reason: from getter */
|
||||
public final boolean getIsCancelable() {
|
||||
return this.isCancelable;
|
||||
}
|
||||
|
||||
/* renamed from: component3, reason: from getter */
|
||||
public final String getTitle() {
|
||||
return this.title;
|
||||
}
|
||||
|
||||
/* renamed from: component4, reason: from getter */
|
||||
public final String getMessage() {
|
||||
return this.message;
|
||||
}
|
||||
|
||||
/* renamed from: component5, reason: from getter */
|
||||
public final AlertActions getActions() {
|
||||
return this.actions;
|
||||
}
|
||||
|
||||
/* renamed from: component6, reason: from getter */
|
||||
public final AlertType getType() {
|
||||
return this.type;
|
||||
}
|
||||
|
||||
public final AdifDialogFragmentArgs copy(boolean blockOnback, boolean isCancelable, String title, String message, AlertActions actions, AlertType type) {
|
||||
Intrinsics.checkNotNullParameter(title, "title");
|
||||
Intrinsics.checkNotNullParameter(message, "message");
|
||||
Intrinsics.checkNotNullParameter(actions, "actions");
|
||||
Intrinsics.checkNotNullParameter(type, "type");
|
||||
return new AdifDialogFragmentArgs(blockOnback, isCancelable, title, message, actions, type);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
if (!(other instanceof AdifDialogFragmentArgs)) {
|
||||
return false;
|
||||
}
|
||||
AdifDialogFragmentArgs adifDialogFragmentArgs = (AdifDialogFragmentArgs) other;
|
||||
return this.blockOnback == adifDialogFragmentArgs.blockOnback && this.isCancelable == adifDialogFragmentArgs.isCancelable && Intrinsics.areEqual(this.title, adifDialogFragmentArgs.title) && Intrinsics.areEqual(this.message, adifDialogFragmentArgs.message) && Intrinsics.areEqual(this.actions, adifDialogFragmentArgs.actions) && this.type == adifDialogFragmentArgs.type;
|
||||
}
|
||||
|
||||
public final AlertActions getActions() {
|
||||
return this.actions;
|
||||
}
|
||||
|
||||
public final boolean getBlockOnback() {
|
||||
return this.blockOnback;
|
||||
}
|
||||
|
||||
public final String getMessage() {
|
||||
return this.message;
|
||||
}
|
||||
|
||||
public final String getTitle() {
|
||||
return this.title;
|
||||
}
|
||||
|
||||
public final AlertType getType() {
|
||||
return this.type;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return this.type.hashCode() + ((this.actions.hashCode() + com.google.android.gms.measurement.internal.a.d(this.message, com.google.android.gms.measurement.internal.a.d(this.title, w.c(Boolean.hashCode(this.blockOnback) * 31, 31, this.isCancelable), 31), 31)) * 31);
|
||||
}
|
||||
|
||||
public final boolean isCancelable() {
|
||||
return this.isCancelable;
|
||||
}
|
||||
|
||||
public final Bundle toBundle() {
|
||||
Bundle bundle = new Bundle();
|
||||
bundle.putBoolean("blockOnback", this.blockOnback);
|
||||
bundle.putBoolean("isCancelable", this.isCancelable);
|
||||
bundle.putString("title", this.title);
|
||||
bundle.putString("message", this.message);
|
||||
if (Parcelable.class.isAssignableFrom(AlertActions.class)) {
|
||||
RandomAccess randomAccess = this.actions;
|
||||
Intrinsics.checkNotNull(randomAccess, "null cannot be cast to non-null type android.os.Parcelable");
|
||||
bundle.putParcelable("actions", (Parcelable) randomAccess);
|
||||
} else {
|
||||
if (!Serializable.class.isAssignableFrom(AlertActions.class)) {
|
||||
throw new UnsupportedOperationException(AlertActions.class.getName().concat(" must implement Parcelable or Serializable or must be an Enum."));
|
||||
}
|
||||
AlertActions alertActions = this.actions;
|
||||
Intrinsics.checkNotNull(alertActions, "null cannot be cast to non-null type java.io.Serializable");
|
||||
bundle.putSerializable("actions", alertActions);
|
||||
}
|
||||
if (Parcelable.class.isAssignableFrom(AlertType.class)) {
|
||||
Object obj = this.type;
|
||||
Intrinsics.checkNotNull(obj, "null cannot be cast to non-null type android.os.Parcelable");
|
||||
bundle.putParcelable("type", (Parcelable) obj);
|
||||
return bundle;
|
||||
}
|
||||
if (!Serializable.class.isAssignableFrom(AlertType.class)) {
|
||||
throw new UnsupportedOperationException(AlertType.class.getName().concat(" must implement Parcelable or Serializable or must be an Enum."));
|
||||
}
|
||||
AlertType alertType = this.type;
|
||||
Intrinsics.checkNotNull(alertType, "null cannot be cast to non-null type java.io.Serializable");
|
||||
bundle.putSerializable("type", alertType);
|
||||
return bundle;
|
||||
}
|
||||
|
||||
public final n0 toSavedStateHandle() {
|
||||
n0 n0Var = new n0();
|
||||
n0Var.d(Boolean.valueOf(this.blockOnback), "blockOnback");
|
||||
n0Var.d(Boolean.valueOf(this.isCancelable), "isCancelable");
|
||||
n0Var.d(this.title, "title");
|
||||
n0Var.d(this.message, "message");
|
||||
if (Parcelable.class.isAssignableFrom(AlertActions.class)) {
|
||||
Object obj = this.actions;
|
||||
Intrinsics.checkNotNull(obj, "null cannot be cast to non-null type android.os.Parcelable");
|
||||
n0Var.d((Parcelable) obj, "actions");
|
||||
} else {
|
||||
if (!Serializable.class.isAssignableFrom(AlertActions.class)) {
|
||||
throw new UnsupportedOperationException(AlertActions.class.getName().concat(" must implement Parcelable or Serializable or must be an Enum."));
|
||||
}
|
||||
AlertActions alertActions = this.actions;
|
||||
Intrinsics.checkNotNull(alertActions, "null cannot be cast to non-null type java.io.Serializable");
|
||||
n0Var.d(alertActions, "actions");
|
||||
}
|
||||
if (Parcelable.class.isAssignableFrom(AlertType.class)) {
|
||||
Object obj2 = this.type;
|
||||
Intrinsics.checkNotNull(obj2, "null cannot be cast to non-null type android.os.Parcelable");
|
||||
n0Var.d((Parcelable) obj2, "type");
|
||||
return n0Var;
|
||||
}
|
||||
if (!Serializable.class.isAssignableFrom(AlertType.class)) {
|
||||
throw new UnsupportedOperationException(AlertType.class.getName().concat(" must implement Parcelable or Serializable or must be an Enum."));
|
||||
}
|
||||
AlertType alertType = this.type;
|
||||
Intrinsics.checkNotNull(alertType, "null cannot be cast to non-null type java.io.Serializable");
|
||||
n0Var.d(alertType, "type");
|
||||
return n0Var;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "AdifDialogFragmentArgs(blockOnback=" + this.blockOnback + ", isCancelable=" + this.isCancelable + ", title=" + this.title + ", message=" + this.message + ", actions=" + this.actions + ", type=" + this.type + ')';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
package com.adif.elcanomovil.uiDialog;
|
||||
|
||||
import com.adif.elcanomovil.commonNavGraph.MainNavigationDirections;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.AlertActions;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.AlertType;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.Filters;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.StationObservationArg;
|
||||
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import o0.F;
|
||||
|
||||
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0003\u0018\u0000 \u00032\u00020\u0001:\u0001\u0003B\u0007\b\u0002¢\u0006\u0002\u0010\u0002¨\u0006\u0004"}, d2 = {"Lcom/adif/elcanomovil/uiDialog/AdifDialogFragmentDirections;", "", "()V", "Companion", "common-nav-graph_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final class AdifDialogFragmentDirections {
|
||||
|
||||
/* renamed from: Companion, reason: from kotlin metadata */
|
||||
public static final Companion INSTANCE = new Companion(null);
|
||||
|
||||
@Metadata(d1 = {"\u0000H\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0011\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0013\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003J=\u0010\u000f\u001a\u00020\u000e2\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0006\u001a\u00020\u00042\u0006\u0010\b\u001a\u00020\u00072\u0006\u0010\t\u001a\u00020\u00072\u0006\u0010\u000b\u001a\u00020\n2\u0006\u0010\r\u001a\u00020\f¢\u0006\u0004\b\u000f\u0010\u0010J#\u0010\u0014\u001a\u00020\u000e2\u0006\u0010\u0011\u001a\u00020\u00072\f\u0010\u0013\u001a\b\u0012\u0004\u0012\u00020\u00070\u0012¢\u0006\u0004\b\u0014\u0010\u0015J\u001d\u0010\u0017\u001a\u00020\u000e2\u0006\u0010\u0011\u001a\u00020\u00072\u0006\u0010\u0013\u001a\u00020\u0016¢\u0006\u0004\b\u0017\u0010\u0018J\u0015\u0010\u001a\u001a\u00020\u000e2\u0006\u0010\u0019\u001a\u00020\u0007¢\u0006\u0004\b\u001a\u0010\u001bJ\u001d\u0010\u001d\u001a\u00020\u000e2\u0006\u0010\u0011\u001a\u00020\u00072\u0006\u0010\u0013\u001a\u00020\u001c¢\u0006\u0004\b\u001d\u0010\u001eJ\u0099\u0001\u0010,\u001a\u00020\u000e2\b\u0010\u001f\u001a\u0004\u0018\u00010\u00072\b\u0010 \u001a\u0004\u0018\u00010\u00072\b\u0010!\u001a\u0004\u0018\u00010\u00072\b\u0010\"\u001a\u0004\u0018\u00010\u00072\u0006\u0010#\u001a\u00020\u00042\u000e\u0010$\u001a\n\u0012\u0004\u0012\u00020\u0007\u0018\u00010\u00122\b\u0010%\u001a\u0004\u0018\u00010\u00072\u000e\u0010&\u001a\n\u0012\u0004\u0012\u00020\u0007\u0018\u00010\u00122\b\u0010'\u001a\u0004\u0018\u00010\u00072\b\u0010(\u001a\u0004\u0018\u00010\u00072\b\u0010)\u001a\u0004\u0018\u00010\u00072\b\u0010*\u001a\u0004\u0018\u00010\u00072\b\u0010+\u001a\u0004\u0018\u00010\u0007¢\u0006\u0004\b,\u0010-J\u0015\u0010.\u001a\u00020\u000e2\u0006\u0010\u0011\u001a\u00020\u0007¢\u0006\u0004\b.\u0010\u001b¨\u0006/"}, d2 = {"Lcom/adif/elcanomovil/uiDialog/AdifDialogFragmentDirections$Companion;", "", "<init>", "()V", "", "blockOnback", "isCancelable", "", "title", "message", "Lcom/adif/elcanomovil/commonNavGraph/arguments/AlertActions;", "actions", "Lcom/adif/elcanomovil/commonNavGraph/arguments/AlertType;", "type", "Lo0/F;", "toAlertDialog", "(ZZLjava/lang/String;Ljava/lang/String;Lcom/adif/elcanomovil/commonNavGraph/arguments/AlertActions;Lcom/adif/elcanomovil/commonNavGraph/arguments/AlertType;)Lo0/F;", "key", "", "values", "toSelectableBottomSheet", "(Ljava/lang/String;[Ljava/lang/String;)Lo0/F;", "Lcom/adif/elcanomovil/commonNavGraph/arguments/StationObservationArg;", "toStationObservationsBottomSheet", "(Ljava/lang/String;Lcom/adif/elcanomovil/commonNavGraph/arguments/StationObservationArg;)Lo0/F;", "observation", "toTrainObservationBottomSheet", "(Ljava/lang/String;)Lo0/F;", "Lcom/adif/elcanomovil/commonNavGraph/arguments/Filters;", "toFilterListBottomSheet", "(Ljava/lang/String;Lcom/adif/elcanomovil/commonNavGraph/arguments/Filters;)Lo0/F;", "logo", AppMeasurementSdk.ConditionalUserProperty.NAME, "phone", "description", "accessible", "paymentWay", "offer", "correspondences", "web", FirebaseAnalytics.Param.LOCATION, "accessibleLabel", "openingHours", "playStore", "toStationsAlertDialog", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lo0/F;", "toSelectStationFragment", "common-nav-graph_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public static final class Companion {
|
||||
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
public final F toAlertDialog(boolean blockOnback, boolean isCancelable, String title, String message, AlertActions actions, AlertType type) {
|
||||
Intrinsics.checkNotNullParameter(title, "title");
|
||||
Intrinsics.checkNotNullParameter(message, "message");
|
||||
Intrinsics.checkNotNullParameter(actions, "actions");
|
||||
Intrinsics.checkNotNullParameter(type, "type");
|
||||
return MainNavigationDirections.INSTANCE.toAlertDialog(blockOnback, isCancelable, title, message, actions, type);
|
||||
}
|
||||
|
||||
public final F toFilterListBottomSheet(String key, Filters values) {
|
||||
Intrinsics.checkNotNullParameter(key, "key");
|
||||
Intrinsics.checkNotNullParameter(values, "values");
|
||||
return MainNavigationDirections.INSTANCE.toFilterListBottomSheet(key, values);
|
||||
}
|
||||
|
||||
public final F toSelectStationFragment(String key) {
|
||||
Intrinsics.checkNotNullParameter(key, "key");
|
||||
return MainNavigationDirections.INSTANCE.toSelectStationFragment(key);
|
||||
}
|
||||
|
||||
public final F toSelectableBottomSheet(String key, String[] values) {
|
||||
Intrinsics.checkNotNullParameter(key, "key");
|
||||
Intrinsics.checkNotNullParameter(values, "values");
|
||||
return MainNavigationDirections.INSTANCE.toSelectableBottomSheet(key, values);
|
||||
}
|
||||
|
||||
public final F toStationObservationsBottomSheet(String key, StationObservationArg values) {
|
||||
Intrinsics.checkNotNullParameter(key, "key");
|
||||
Intrinsics.checkNotNullParameter(values, "values");
|
||||
return MainNavigationDirections.INSTANCE.toStationObservationsBottomSheet(key, values);
|
||||
}
|
||||
|
||||
public final F toStationsAlertDialog(String logo, String name, String phone, String description, boolean accessible, String[] paymentWay, String offer, String[] correspondences, String web, String location, String accessibleLabel, String openingHours, String playStore) {
|
||||
return MainNavigationDirections.INSTANCE.toStationsAlertDialog(logo, name, phone, description, accessible, paymentWay, offer, correspondences, web, location, accessibleLabel, openingHours, playStore);
|
||||
}
|
||||
|
||||
public final F toTrainObservationBottomSheet(String observation) {
|
||||
Intrinsics.checkNotNullParameter(observation, "observation");
|
||||
return MainNavigationDirections.INSTANCE.toTrainObservationBottomSheet(observation);
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
}
|
||||
|
||||
private AdifDialogFragmentDirections() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.adif.elcanomovil.uiDialog;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class BuildConfig {
|
||||
public static final String BUILD_TYPE = "release";
|
||||
public static final boolean DEBUG = false;
|
||||
public static final String FLAVOR = "proNon_corporate";
|
||||
public static final String FLAVOR_is_corporate = "non_corporate";
|
||||
public static final String FLAVOR_version = "pro";
|
||||
public static final String LIBRARY_PACKAGE_NAME = "com.adif.elcanomovil.uiDialog";
|
||||
}
|
||||
8252
apk_decompiled/sources/com/adif/elcanomovil/uiDialog/R.java
Normal file
8252
apk_decompiled/sources/com/adif/elcanomovil/uiDialog/R.java
Normal file
File diff suppressed because one or more lines are too long
@@ -0,0 +1,454 @@
|
||||
package com.adif.elcanomovil.uiDialog;
|
||||
|
||||
import C.w;
|
||||
import G2.l;
|
||||
import I0.h;
|
||||
import I0.p;
|
||||
import S0.i;
|
||||
import android.content.Intent;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.text.method.ScrollingMovementMethod;
|
||||
import android.util.Patterns;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.webkit.URLUtil;
|
||||
import android.widget.Button;
|
||||
import android.widget.ImageButton;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
import androidx.fragment.app.DialogInterfaceOnCancelListenerC0174y;
|
||||
import androidx.fragment.app.K;
|
||||
import com.adif.elcanomovil.commonNavGraph.navigation.IntentAction;
|
||||
import com.adif.elcanomovil.commonNavGraph.navigation.Navigation;
|
||||
import com.adif.elcanomovil.commonNavGraph.navigation.NavigationHandler;
|
||||
import com.adif.elcanomovil.uiDialog.adapters.SingleLogoAdapter;
|
||||
import com.adif.elcanomovil.uiDialog.databinding.DialogStationsBinding;
|
||||
import com.adif.elcanomovil.uiStations.mappers.RequestedStationInfoMapperKt;
|
||||
import java.text.DecimalFormat;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.collections.ArraysKt;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Reflection;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.jvm.internal.StringCompanionObject;
|
||||
import kotlin.text.StringsKt__StringsJVMKt;
|
||||
import kotlin.text.StringsKt__StringsKt;
|
||||
import o0.C0531h;
|
||||
|
||||
@Metadata(d1 = {"\u0000J\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0003\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003J\u000f\u0010\u0005\u001a\u00020\u0004H\u0002¢\u0006\u0004\b\u0005\u0010\u0003J\u001d\u0010\t\u001a\u00020\u0004*\u00020\u00062\b\u0010\b\u001a\u0004\u0018\u00010\u0007H\u0002¢\u0006\u0004\b\t\u0010\nJ%\u0010\t\u001a\u00020\u0004*\u00020\u00062\b\u0010\b\u001a\u0004\u0018\u00010\u00072\u0006\u0010\f\u001a\u00020\u000bH\u0002¢\u0006\u0004\b\t\u0010\rJ\u001d\u0010\t\u001a\u00020\u0004*\u00020\u000e2\b\u0010\b\u001a\u0004\u0018\u00010\u0007H\u0002¢\u0006\u0004\b\t\u0010\u000fJ\u0019\u0010\u0013\u001a\u00020\u00122\b\u0010\u0011\u001a\u0004\u0018\u00010\u0010H\u0016¢\u0006\u0004\b\u0013\u0010\u0014R\u001b\u0010\u001a\u001a\u00020\u00158BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u0016\u0010\u0017\u001a\u0004\b\u0018\u0010\u0019R\u0016\u0010\u001c\u001a\u00020\u001b8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b\u001c\u0010\u001d¨\u0006\u001e"}, d2 = {"Lcom/adif/elcanomovil/uiDialog/StationsDialogFragment;", "Landroidx/fragment/app/y;", "<init>", "()V", "", "configureView", "Landroid/widget/TextView;", "", "newText", "setTextAndVisible", "(Landroid/widget/TextView;Ljava/lang/String;)V", "Landroid/widget/LinearLayout;", "linearLayout", "(Landroid/widget/TextView;Ljava/lang/String;Landroid/widget/LinearLayout;)V", "Landroid/widget/Button;", "(Landroid/widget/Button;Ljava/lang/String;)V", "Landroid/os/Bundle;", "savedInstanceState", "Lo2/e;", "onCreateDialog", "(Landroid/os/Bundle;)Lo2/e;", "Lcom/adif/elcanomovil/uiDialog/StationsDialogFragmentArgs;", "args$delegate", "Lo0/h;", "getArgs", "()Lcom/adif/elcanomovil/uiDialog/StationsDialogFragmentArgs;", "args", "Lcom/adif/elcanomovil/uiDialog/databinding/DialogStationsBinding;", "binding", "Lcom/adif/elcanomovil/uiDialog/databinding/DialogStationsBinding;", "ui-dialog_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nStationsDialogFragment.kt\nKotlin\n*S Kotlin\n*F\n+ 1 StationsDialogFragment.kt\ncom/adif/elcanomovil/uiDialog/StationsDialogFragment\n+ 2 FragmentNavArgsLazy.kt\nandroidx/navigation/fragment/FragmentNavArgsLazyKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 4 Extensions.kt\ncoil/-SingletonExtensions\n*L\n1#1,194:1\n42#2,3:195\n1#3:198\n54#4,3:199\n24#4:202\n59#4,6:203\n*S KotlinDebug\n*F\n+ 1 StationsDialogFragment.kt\ncom/adif/elcanomovil/uiDialog/StationsDialogFragment\n*L\n26#1:195,3\n38#1:199,3\n38#1:202\n38#1:203,6\n*E\n"})
|
||||
/* loaded from: classes2.dex */
|
||||
public final class StationsDialogFragment extends DialogInterfaceOnCancelListenerC0174y {
|
||||
|
||||
/* renamed from: args$delegate, reason: from kotlin metadata */
|
||||
private final C0531h args = new C0531h(Reflection.getOrCreateKotlinClass(StationsDialogFragmentArgs.class), new Function0<Bundle>() { // from class: com.adif.elcanomovil.uiDialog.StationsDialogFragment$special$$inlined$navArgs$1
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final Bundle invoke() {
|
||||
Bundle arguments = K.this.getArguments();
|
||||
if (arguments != null) {
|
||||
return arguments;
|
||||
}
|
||||
throw new IllegalStateException("Fragment " + K.this + " has null arguments");
|
||||
}
|
||||
});
|
||||
private DialogStationsBinding binding;
|
||||
|
||||
private final void configureView() {
|
||||
List split$default;
|
||||
DialogStationsBinding dialogStationsBinding = this.binding;
|
||||
DialogStationsBinding dialogStationsBinding2 = null;
|
||||
if (dialogStationsBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogStationsBinding = null;
|
||||
}
|
||||
ImageView logo = dialogStationsBinding.logo;
|
||||
Intrinsics.checkNotNullExpressionValue(logo, "logo");
|
||||
String logo2 = getArgs().getLogo();
|
||||
h a2 = I0.a.a(logo.getContext());
|
||||
i iVar = new i(logo.getContext());
|
||||
iVar.f1464c = logo2;
|
||||
iVar.c(logo);
|
||||
((p) a2).b(iVar.a());
|
||||
DialogStationsBinding dialogStationsBinding3 = this.binding;
|
||||
if (dialogStationsBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogStationsBinding3 = null;
|
||||
}
|
||||
TextView name = dialogStationsBinding3.name;
|
||||
Intrinsics.checkNotNullExpressionValue(name, "name");
|
||||
setTextAndVisible(name, getArgs().getName());
|
||||
DialogStationsBinding dialogStationsBinding4 = this.binding;
|
||||
if (dialogStationsBinding4 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogStationsBinding4 = null;
|
||||
}
|
||||
TextView description = dialogStationsBinding4.description;
|
||||
Intrinsics.checkNotNullExpressionValue(description, "description");
|
||||
setTextAndVisible(description, getArgs().getDescription());
|
||||
String[] paymentWay = getArgs().getPaymentWay();
|
||||
if (paymentWay != null && ArraysKt.contains(paymentWay, "APPLE_PAY")) {
|
||||
DialogStationsBinding dialogStationsBinding5 = this.binding;
|
||||
if (dialogStationsBinding5 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogStationsBinding5 = null;
|
||||
}
|
||||
dialogStationsBinding5.paymentWayApplePay.setVisibility(0);
|
||||
}
|
||||
if (paymentWay != null && ArraysKt.contains(paymentWay, "BIZUM")) {
|
||||
DialogStationsBinding dialogStationsBinding6 = this.binding;
|
||||
if (dialogStationsBinding6 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogStationsBinding6 = null;
|
||||
}
|
||||
dialogStationsBinding6.paymentWayBizum.setVisibility(0);
|
||||
}
|
||||
if (paymentWay != null && ArraysKt.contains(paymentWay, "CASH")) {
|
||||
DialogStationsBinding dialogStationsBinding7 = this.binding;
|
||||
if (dialogStationsBinding7 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogStationsBinding7 = null;
|
||||
}
|
||||
dialogStationsBinding7.paymentWayCash.setVisibility(0);
|
||||
}
|
||||
if (paymentWay != null && ArraysKt.contains(paymentWay, "CREDIT_CARD")) {
|
||||
DialogStationsBinding dialogStationsBinding8 = this.binding;
|
||||
if (dialogStationsBinding8 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogStationsBinding8 = null;
|
||||
}
|
||||
dialogStationsBinding8.paymentWayCreditCard.setVisibility(0);
|
||||
}
|
||||
if (paymentWay != null && ArraysKt.contains(paymentWay, "FOOD_VOUCHER")) {
|
||||
DialogStationsBinding dialogStationsBinding9 = this.binding;
|
||||
if (dialogStationsBinding9 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogStationsBinding9 = null;
|
||||
}
|
||||
dialogStationsBinding9.paymentWayFoodVoucher.setVisibility(0);
|
||||
}
|
||||
if (paymentWay != null && ArraysKt.contains(paymentWay, "GOOGLE_PAY")) {
|
||||
DialogStationsBinding dialogStationsBinding10 = this.binding;
|
||||
if (dialogStationsBinding10 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogStationsBinding10 = null;
|
||||
}
|
||||
dialogStationsBinding10.paymentWayGooglePay.setVisibility(0);
|
||||
}
|
||||
if (paymentWay != null && ArraysKt.contains(paymentWay, RequestedStationInfoMapperKt.OTHERS)) {
|
||||
DialogStationsBinding dialogStationsBinding11 = this.binding;
|
||||
if (dialogStationsBinding11 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogStationsBinding11 = null;
|
||||
}
|
||||
dialogStationsBinding11.paymentWayOthers.setVisibility(0);
|
||||
}
|
||||
if (paymentWay != null && ArraysKt.contains(paymentWay, "PAY_PAL")) {
|
||||
DialogStationsBinding dialogStationsBinding12 = this.binding;
|
||||
if (dialogStationsBinding12 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogStationsBinding12 = null;
|
||||
}
|
||||
dialogStationsBinding12.paymentWayPayPal.setVisibility(0);
|
||||
}
|
||||
if (paymentWay != null && ArraysKt.contains(paymentWay, "SAMSUNG_PAY")) {
|
||||
DialogStationsBinding dialogStationsBinding13 = this.binding;
|
||||
if (dialogStationsBinding13 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogStationsBinding13 = null;
|
||||
}
|
||||
dialogStationsBinding13.paymentWaySamsungPay.setVisibility(0);
|
||||
}
|
||||
SingleLogoAdapter singleLogoAdapter = new SingleLogoAdapter();
|
||||
DialogStationsBinding dialogStationsBinding14 = this.binding;
|
||||
if (dialogStationsBinding14 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogStationsBinding14 = null;
|
||||
}
|
||||
dialogStationsBinding14.rv.setAdapter(singleLogoAdapter);
|
||||
String[] correspondences = getArgs().getCorrespondences();
|
||||
singleLogoAdapter.update(correspondences != null ? ArraysKt.toList(correspondences) : null);
|
||||
String web = getArgs().getWeb();
|
||||
if (web != null) {
|
||||
DialogStationsBinding dialogStationsBinding15 = this.binding;
|
||||
if (dialogStationsBinding15 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogStationsBinding15 = null;
|
||||
}
|
||||
LinearLayout linearLayout = dialogStationsBinding15.webLayout;
|
||||
linearLayout.setVisibility(0);
|
||||
linearLayout.setOnClickListener(new f(web, this));
|
||||
}
|
||||
String location = getArgs().getLocation();
|
||||
if (location != null) {
|
||||
DialogStationsBinding dialogStationsBinding16 = this.binding;
|
||||
if (dialogStationsBinding16 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogStationsBinding16 = null;
|
||||
}
|
||||
LinearLayout linearLayout2 = dialogStationsBinding16.locationLayout;
|
||||
linearLayout2.setVisibility(0);
|
||||
split$default = StringsKt__StringsKt.split$default(location, new String[]{","}, false, 0, 6, (Object) null);
|
||||
linearLayout2.setOnClickListener(new l(5, split$default, this));
|
||||
}
|
||||
String phone = getArgs().getPhone();
|
||||
if (phone != null) {
|
||||
if (phone.length() > 0) {
|
||||
DialogStationsBinding dialogStationsBinding17 = this.binding;
|
||||
if (dialogStationsBinding17 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogStationsBinding17 = null;
|
||||
}
|
||||
LinearLayout linearLayout3 = dialogStationsBinding17.telephoneLayout;
|
||||
linearLayout3.setVisibility(0);
|
||||
linearLayout3.setOnClickListener(new f(this, phone));
|
||||
Intrinsics.checkNotNull(linearLayout3);
|
||||
} else {
|
||||
DialogStationsBinding dialogStationsBinding18 = this.binding;
|
||||
if (dialogStationsBinding18 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogStationsBinding18 = null;
|
||||
}
|
||||
dialogStationsBinding18.telephoneLayout.setVisibility(8);
|
||||
}
|
||||
}
|
||||
String openingHours = getArgs().getOpeningHours();
|
||||
if (openingHours != null && openingHours.length() != 0) {
|
||||
DialogStationsBinding dialogStationsBinding19 = this.binding;
|
||||
if (dialogStationsBinding19 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogStationsBinding19 = null;
|
||||
}
|
||||
TextView openingHours2 = dialogStationsBinding19.openingHours;
|
||||
Intrinsics.checkNotNullExpressionValue(openingHours2, "openingHours");
|
||||
String openingHours3 = getArgs().getOpeningHours();
|
||||
DialogStationsBinding dialogStationsBinding20 = this.binding;
|
||||
if (dialogStationsBinding20 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogStationsBinding20 = null;
|
||||
}
|
||||
LinearLayout openingHoursLayout = dialogStationsBinding20.openingHoursLayout;
|
||||
Intrinsics.checkNotNullExpressionValue(openingHoursLayout, "openingHoursLayout");
|
||||
setTextAndVisible(openingHours2, openingHours3, openingHoursLayout);
|
||||
}
|
||||
if (getArgs().getAccessible()) {
|
||||
DialogStationsBinding dialogStationsBinding21 = this.binding;
|
||||
if (dialogStationsBinding21 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogStationsBinding21 = null;
|
||||
}
|
||||
TextView accessibility = dialogStationsBinding21.accessibility;
|
||||
Intrinsics.checkNotNullExpressionValue(accessibility, "accessibility");
|
||||
String accessibleLabel = getArgs().getAccessibleLabel();
|
||||
String string = (accessibleLabel == null || accessibleLabel.length() == 0) ? getString(R.string.station_accessibility_label) : getArgs().getAccessibleLabel();
|
||||
DialogStationsBinding dialogStationsBinding22 = this.binding;
|
||||
if (dialogStationsBinding22 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogStationsBinding22 = null;
|
||||
}
|
||||
LinearLayout accessibilityLayout = dialogStationsBinding22.accessibilityLayout;
|
||||
Intrinsics.checkNotNullExpressionValue(accessibilityLayout, "accessibilityLayout");
|
||||
setTextAndVisible(accessibility, string, accessibilityLayout);
|
||||
}
|
||||
if (getArgs().getOffer() != null) {
|
||||
DialogStationsBinding dialogStationsBinding23 = this.binding;
|
||||
if (dialogStationsBinding23 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogStationsBinding23 = null;
|
||||
}
|
||||
dialogStationsBinding23.offerDescription.setText(getArgs().getOffer());
|
||||
DialogStationsBinding dialogStationsBinding24 = this.binding;
|
||||
if (dialogStationsBinding24 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogStationsBinding24 = null;
|
||||
}
|
||||
dialogStationsBinding24.offerLayout.setVisibility(0);
|
||||
DialogStationsBinding dialogStationsBinding25 = this.binding;
|
||||
if (dialogStationsBinding25 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogStationsBinding25 = null;
|
||||
}
|
||||
dialogStationsBinding25.offerDescription.setMovementMethod(ScrollingMovementMethod.getInstance());
|
||||
}
|
||||
String playStore = getArgs().getPlayStore();
|
||||
if (playStore != null && playStore.length() != 0 && URLUtil.isValidUrl(getArgs().getPlayStore()) && Patterns.WEB_URL.matcher(getArgs().getPlayStore()).matches()) {
|
||||
DialogStationsBinding dialogStationsBinding26 = this.binding;
|
||||
if (dialogStationsBinding26 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogStationsBinding26 = null;
|
||||
}
|
||||
dialogStationsBinding26.playSore.setVisibility(0);
|
||||
DialogStationsBinding dialogStationsBinding27 = this.binding;
|
||||
if (dialogStationsBinding27 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
dialogStationsBinding27 = null;
|
||||
}
|
||||
final int i = 0;
|
||||
dialogStationsBinding27.playSore.setOnClickListener(new View.OnClickListener(this) { // from class: com.adif.elcanomovil.uiDialog.g
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ StationsDialogFragment f5053b;
|
||||
|
||||
{
|
||||
this.f5053b = this;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
int i4 = i;
|
||||
StationsDialogFragment stationsDialogFragment = this.f5053b;
|
||||
switch (i4) {
|
||||
case 0:
|
||||
StationsDialogFragment.configureView$lambda$15(stationsDialogFragment, view);
|
||||
return;
|
||||
default:
|
||||
StationsDialogFragment.configureView$lambda$16(stationsDialogFragment, view);
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
DialogStationsBinding dialogStationsBinding28 = this.binding;
|
||||
if (dialogStationsBinding28 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
dialogStationsBinding2 = dialogStationsBinding28;
|
||||
}
|
||||
ImageButton imageButton = dialogStationsBinding2.close;
|
||||
final int i4 = 1;
|
||||
imageButton.setOnClickListener(new View.OnClickListener(this) { // from class: com.adif.elcanomovil.uiDialog.g
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ StationsDialogFragment f5053b;
|
||||
|
||||
{
|
||||
this.f5053b = this;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
int i42 = i4;
|
||||
StationsDialogFragment stationsDialogFragment = this.f5053b;
|
||||
switch (i42) {
|
||||
case 0:
|
||||
StationsDialogFragment.configureView$lambda$15(stationsDialogFragment, view);
|
||||
return;
|
||||
default:
|
||||
StationsDialogFragment.configureView$lambda$16(stationsDialogFragment, view);
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public static final void configureView$lambda$12$lambda$11$lambda$10(StationsDialogFragment this$0, String phoneNumber, View view) {
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
Intrinsics.checkNotNullParameter(phoneNumber, "$phoneNumber");
|
||||
Intent intent = new Intent("android.intent.action.DIAL");
|
||||
StringCompanionObject stringCompanionObject = StringCompanionObject.INSTANCE;
|
||||
String format = String.format("%s:%s", Arrays.copyOf(new Object[]{"tel", phoneNumber}, 2));
|
||||
Intrinsics.checkNotNullExpressionValue(format, "format(...)");
|
||||
intent.setData(Uri.parse(format));
|
||||
this$0.startActivity(intent);
|
||||
}
|
||||
|
||||
public static final void configureView$lambda$15(StationsDialogFragment this$0, View view) {
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
Intent intent = new Intent("android.intent.action.VIEW");
|
||||
intent.setData(Uri.parse(this$0.getArgs().getPlayStore()));
|
||||
intent.setPackage("com.android.vending");
|
||||
try {
|
||||
this$0.startActivity(intent);
|
||||
} catch (Exception unused) {
|
||||
}
|
||||
}
|
||||
|
||||
public static final void configureView$lambda$16(StationsDialogFragment this$0, View view) {
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
this$0.dismiss();
|
||||
}
|
||||
|
||||
public static final void configureView$lambda$5$lambda$4$lambda$3(String it, StationsDialogFragment this$0, View view) {
|
||||
boolean contains$default;
|
||||
Intrinsics.checkNotNullParameter(it, "$it");
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
contains$default = StringsKt__StringsKt.contains$default(it, (CharSequence) "http", false, 2, (Object) null);
|
||||
if (!contains$default) {
|
||||
it = w.z("https://", it);
|
||||
}
|
||||
Uri parse = Uri.parse(it);
|
||||
Intrinsics.checkNotNullExpressionValue(parse, "parse(...)");
|
||||
new NavigationHandler(this$0).invoke2((Navigation) new Navigation.Intent(new IntentAction.View(parse)));
|
||||
}
|
||||
|
||||
public static final void configureView$lambda$8$lambda$7$lambda$6(List coords, StationsDialogFragment this$0, View view) {
|
||||
String replace$default;
|
||||
String replace$default2;
|
||||
Intrinsics.checkNotNullParameter(coords, "$coords");
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
StringBuilder sb = new StringBuilder("geo:");
|
||||
String format = new DecimalFormat("#.####").format(Double.parseDouble((String) coords.get(0)));
|
||||
Intrinsics.checkNotNullExpressionValue(format, "format(...)");
|
||||
replace$default = StringsKt__StringsJVMKt.replace$default(format, ",", ".", false, 4, (Object) null);
|
||||
sb.append(replace$default);
|
||||
sb.append(", ");
|
||||
String format2 = new DecimalFormat("#.####").format(Double.parseDouble((String) coords.get(1)));
|
||||
Intrinsics.checkNotNullExpressionValue(format2, "format(...)");
|
||||
replace$default2 = StringsKt__StringsJVMKt.replace$default(format2, ",", ".", false, 4, (Object) null);
|
||||
sb.append(replace$default2);
|
||||
this$0.startActivity(new Intent("android.intent.action.VIEW", Uri.parse(sb.toString())));
|
||||
}
|
||||
|
||||
private final StationsDialogFragmentArgs getArgs() {
|
||||
return (StationsDialogFragmentArgs) this.args.getValue();
|
||||
}
|
||||
|
||||
private final void setTextAndVisible(TextView textView, String str) {
|
||||
if (str == null) {
|
||||
return;
|
||||
}
|
||||
textView.setText(str);
|
||||
textView.setVisibility(0);
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.DialogInterfaceOnCancelListenerC0174y
|
||||
public o2.e onCreateDialog(Bundle savedInstanceState) {
|
||||
o2.e eVar = new o2.e(requireContext());
|
||||
DialogStationsBinding inflate = DialogStationsBinding.inflate(LayoutInflater.from(eVar.getContext()));
|
||||
Intrinsics.checkNotNullExpressionValue(inflate, "inflate(...)");
|
||||
this.binding = inflate;
|
||||
if (inflate == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
inflate = null;
|
||||
}
|
||||
eVar.setContentView(inflate.getRoot());
|
||||
configureView();
|
||||
return eVar;
|
||||
}
|
||||
|
||||
private final void setTextAndVisible(TextView textView, String str, LinearLayout linearLayout) {
|
||||
if (str == null) {
|
||||
return;
|
||||
}
|
||||
textView.setText(str);
|
||||
textView.setVisibility(0);
|
||||
linearLayout.setVisibility(0);
|
||||
}
|
||||
|
||||
private final void setTextAndVisible(Button button, String str) {
|
||||
if (str == null) {
|
||||
return;
|
||||
}
|
||||
button.setText(str);
|
||||
button.setVisibility(0);
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,75 @@
|
||||
package com.adif.elcanomovil.uiDialog;
|
||||
|
||||
import com.adif.elcanomovil.commonNavGraph.MainNavigationDirections;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.AlertActions;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.AlertType;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.Filters;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.StationObservationArg;
|
||||
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import o0.F;
|
||||
|
||||
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0003\u0018\u0000 \u00032\u00020\u0001:\u0001\u0003B\u0007\b\u0002¢\u0006\u0002\u0010\u0002¨\u0006\u0004"}, d2 = {"Lcom/adif/elcanomovil/uiDialog/StationsDialogFragmentDirections;", "", "()V", "Companion", "common-nav-graph_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final class StationsDialogFragmentDirections {
|
||||
|
||||
/* renamed from: Companion, reason: from kotlin metadata */
|
||||
public static final Companion INSTANCE = new Companion(null);
|
||||
|
||||
@Metadata(d1 = {"\u0000H\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0011\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0013\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003J=\u0010\u000f\u001a\u00020\u000e2\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0006\u001a\u00020\u00042\u0006\u0010\b\u001a\u00020\u00072\u0006\u0010\t\u001a\u00020\u00072\u0006\u0010\u000b\u001a\u00020\n2\u0006\u0010\r\u001a\u00020\f¢\u0006\u0004\b\u000f\u0010\u0010J#\u0010\u0014\u001a\u00020\u000e2\u0006\u0010\u0011\u001a\u00020\u00072\f\u0010\u0013\u001a\b\u0012\u0004\u0012\u00020\u00070\u0012¢\u0006\u0004\b\u0014\u0010\u0015J\u001d\u0010\u0017\u001a\u00020\u000e2\u0006\u0010\u0011\u001a\u00020\u00072\u0006\u0010\u0013\u001a\u00020\u0016¢\u0006\u0004\b\u0017\u0010\u0018J\u0015\u0010\u001a\u001a\u00020\u000e2\u0006\u0010\u0019\u001a\u00020\u0007¢\u0006\u0004\b\u001a\u0010\u001bJ\u001d\u0010\u001d\u001a\u00020\u000e2\u0006\u0010\u0011\u001a\u00020\u00072\u0006\u0010\u0013\u001a\u00020\u001c¢\u0006\u0004\b\u001d\u0010\u001eJ\u0099\u0001\u0010,\u001a\u00020\u000e2\b\u0010\u001f\u001a\u0004\u0018\u00010\u00072\b\u0010 \u001a\u0004\u0018\u00010\u00072\b\u0010!\u001a\u0004\u0018\u00010\u00072\b\u0010\"\u001a\u0004\u0018\u00010\u00072\u0006\u0010#\u001a\u00020\u00042\u000e\u0010$\u001a\n\u0012\u0004\u0012\u00020\u0007\u0018\u00010\u00122\b\u0010%\u001a\u0004\u0018\u00010\u00072\u000e\u0010&\u001a\n\u0012\u0004\u0012\u00020\u0007\u0018\u00010\u00122\b\u0010'\u001a\u0004\u0018\u00010\u00072\b\u0010(\u001a\u0004\u0018\u00010\u00072\b\u0010)\u001a\u0004\u0018\u00010\u00072\b\u0010*\u001a\u0004\u0018\u00010\u00072\b\u0010+\u001a\u0004\u0018\u00010\u0007¢\u0006\u0004\b,\u0010-J\u0015\u0010.\u001a\u00020\u000e2\u0006\u0010\u0011\u001a\u00020\u0007¢\u0006\u0004\b.\u0010\u001b¨\u0006/"}, d2 = {"Lcom/adif/elcanomovil/uiDialog/StationsDialogFragmentDirections$Companion;", "", "<init>", "()V", "", "blockOnback", "isCancelable", "", "title", "message", "Lcom/adif/elcanomovil/commonNavGraph/arguments/AlertActions;", "actions", "Lcom/adif/elcanomovil/commonNavGraph/arguments/AlertType;", "type", "Lo0/F;", "toAlertDialog", "(ZZLjava/lang/String;Ljava/lang/String;Lcom/adif/elcanomovil/commonNavGraph/arguments/AlertActions;Lcom/adif/elcanomovil/commonNavGraph/arguments/AlertType;)Lo0/F;", "key", "", "values", "toSelectableBottomSheet", "(Ljava/lang/String;[Ljava/lang/String;)Lo0/F;", "Lcom/adif/elcanomovil/commonNavGraph/arguments/StationObservationArg;", "toStationObservationsBottomSheet", "(Ljava/lang/String;Lcom/adif/elcanomovil/commonNavGraph/arguments/StationObservationArg;)Lo0/F;", "observation", "toTrainObservationBottomSheet", "(Ljava/lang/String;)Lo0/F;", "Lcom/adif/elcanomovil/commonNavGraph/arguments/Filters;", "toFilterListBottomSheet", "(Ljava/lang/String;Lcom/adif/elcanomovil/commonNavGraph/arguments/Filters;)Lo0/F;", "logo", AppMeasurementSdk.ConditionalUserProperty.NAME, "phone", "description", "accessible", "paymentWay", "offer", "correspondences", "web", FirebaseAnalytics.Param.LOCATION, "accessibleLabel", "openingHours", "playStore", "toStationsAlertDialog", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lo0/F;", "toSelectStationFragment", "common-nav-graph_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public static final class Companion {
|
||||
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
public final F toAlertDialog(boolean blockOnback, boolean isCancelable, String title, String message, AlertActions actions, AlertType type) {
|
||||
Intrinsics.checkNotNullParameter(title, "title");
|
||||
Intrinsics.checkNotNullParameter(message, "message");
|
||||
Intrinsics.checkNotNullParameter(actions, "actions");
|
||||
Intrinsics.checkNotNullParameter(type, "type");
|
||||
return MainNavigationDirections.INSTANCE.toAlertDialog(blockOnback, isCancelable, title, message, actions, type);
|
||||
}
|
||||
|
||||
public final F toFilterListBottomSheet(String key, Filters values) {
|
||||
Intrinsics.checkNotNullParameter(key, "key");
|
||||
Intrinsics.checkNotNullParameter(values, "values");
|
||||
return MainNavigationDirections.INSTANCE.toFilterListBottomSheet(key, values);
|
||||
}
|
||||
|
||||
public final F toSelectStationFragment(String key) {
|
||||
Intrinsics.checkNotNullParameter(key, "key");
|
||||
return MainNavigationDirections.INSTANCE.toSelectStationFragment(key);
|
||||
}
|
||||
|
||||
public final F toSelectableBottomSheet(String key, String[] values) {
|
||||
Intrinsics.checkNotNullParameter(key, "key");
|
||||
Intrinsics.checkNotNullParameter(values, "values");
|
||||
return MainNavigationDirections.INSTANCE.toSelectableBottomSheet(key, values);
|
||||
}
|
||||
|
||||
public final F toStationObservationsBottomSheet(String key, StationObservationArg values) {
|
||||
Intrinsics.checkNotNullParameter(key, "key");
|
||||
Intrinsics.checkNotNullParameter(values, "values");
|
||||
return MainNavigationDirections.INSTANCE.toStationObservationsBottomSheet(key, values);
|
||||
}
|
||||
|
||||
public final F toStationsAlertDialog(String logo, String name, String phone, String description, boolean accessible, String[] paymentWay, String offer, String[] correspondences, String web, String location, String accessibleLabel, String openingHours, String playStore) {
|
||||
return MainNavigationDirections.INSTANCE.toStationsAlertDialog(logo, name, phone, description, accessible, paymentWay, offer, correspondences, web, location, accessibleLabel, openingHours, playStore);
|
||||
}
|
||||
|
||||
public final F toTrainObservationBottomSheet(String observation) {
|
||||
Intrinsics.checkNotNullParameter(observation, "observation");
|
||||
return MainNavigationDirections.INSTANCE.toTrainObservationBottomSheet(observation);
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
}
|
||||
|
||||
private StationsDialogFragmentDirections() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.adif.elcanomovil.uiDialog.adapters;
|
||||
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import androidx.recyclerview.widget.AbstractC0220h0;
|
||||
import androidx.recyclerview.widget.I0;
|
||||
import com.adif.elcanomovil.uiDialog.R;
|
||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u00000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u000b\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\u0007¢\u0006\u0004\b\u0003\u0010\u0004J\u001d\u0010\t\u001a\u00020\b2\u000e\u0010\u0007\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0005¢\u0006\u0004\b\t\u0010\nJ\u001f\u0010\u000f\u001a\u00020\u00022\u0006\u0010\f\u001a\u00020\u000b2\u0006\u0010\u000e\u001a\u00020\rH\u0016¢\u0006\u0004\b\u000f\u0010\u0010J\u000f\u0010\u0011\u001a\u00020\rH\u0016¢\u0006\u0004\b\u0011\u0010\u0012J\u001f\u0010\u0015\u001a\u00020\b2\u0006\u0010\u0013\u001a\u00020\u00022\u0006\u0010\u0014\u001a\u00020\rH\u0016¢\u0006\u0004\b\u0015\u0010\u0016R\u001c\u0010\u0007\u001a\b\u0012\u0004\u0012\u00020\u00060\u00058\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u0007\u0010\u0017¨\u0006\u0018"}, d2 = {"Lcom/adif/elcanomovil/uiDialog/adapters/SingleLogoAdapter;", "Landroidx/recyclerview/widget/h0;", "Landroidx/recyclerview/widget/I0;", "<init>", "()V", "", "", FirebaseAnalytics.Param.ITEMS, "", "update", "(Ljava/util/List;)V", "Landroid/view/ViewGroup;", "parent", "", "viewType", "onCreateViewHolder", "(Landroid/view/ViewGroup;I)Landroidx/recyclerview/widget/I0;", "getItemCount", "()I", "holder", "position", "onBindViewHolder", "(Landroidx/recyclerview/widget/I0;I)V", "Ljava/util/List;", "ui-dialog_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes2.dex */
|
||||
public final class SingleLogoAdapter extends AbstractC0220h0 {
|
||||
private List<String> items = new ArrayList();
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0220h0
|
||||
public int getItemCount() {
|
||||
return this.items.size();
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0220h0
|
||||
public void onBindViewHolder(I0 holder, int position) {
|
||||
Intrinsics.checkNotNullParameter(holder, "holder");
|
||||
if (holder instanceof SingleLogoViewHolder) {
|
||||
((SingleLogoViewHolder) holder).bind(this.items.get(position));
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0220h0
|
||||
public I0 onCreateViewHolder(ViewGroup parent, int viewType) {
|
||||
Intrinsics.checkNotNullParameter(parent, "parent");
|
||||
View inflate = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_single_logo, parent, false);
|
||||
Intrinsics.checkNotNull(inflate);
|
||||
return new SingleLogoViewHolder(inflate);
|
||||
}
|
||||
|
||||
public final void update(List<String> items) {
|
||||
if (items != null) {
|
||||
this.items = items;
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package com.adif.elcanomovil.uiDialog.adapters;
|
||||
|
||||
import I0.a;
|
||||
import I0.h;
|
||||
import I0.p;
|
||||
import S0.i;
|
||||
import android.view.View;
|
||||
import android.widget.ImageView;
|
||||
import androidx.recyclerview.widget.I0;
|
||||
import com.adif.elcanomovil.uiDialog.databinding.ItemSingleLogoBinding;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
|
||||
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\u0018\u00002\u00020\u0001B\u000f\u0012\u0006\u0010\u0003\u001a\u00020\u0002¢\u0006\u0004\b\u0004\u0010\u0005J\u0015\u0010\t\u001a\u00020\b2\u0006\u0010\u0007\u001a\u00020\u0006¢\u0006\u0004\b\t\u0010\nR\u0014\u0010\f\u001a\u00020\u000b8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\f\u0010\r¨\u0006\u000e"}, d2 = {"Lcom/adif/elcanomovil/uiDialog/adapters/SingleLogoViewHolder;", "Landroidx/recyclerview/widget/I0;", "Landroid/view/View;", "itemView", "<init>", "(Landroid/view/View;)V", "", "item", "", "bind", "(Ljava/lang/String;)V", "Lcom/adif/elcanomovil/uiDialog/databinding/ItemSingleLogoBinding;", "itemBinding", "Lcom/adif/elcanomovil/uiDialog/databinding/ItemSingleLogoBinding;", "ui-dialog_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nSingleLogoAdapter.kt\nKotlin\n*S Kotlin\n*F\n+ 1 SingleLogoAdapter.kt\ncom/adif/elcanomovil/uiDialog/adapters/SingleLogoViewHolder\n+ 2 Extensions.kt\ncoil/-SingletonExtensions\n+ 3 Extensions.kt\ncoil/-SingletonExtensions$load$1\n*L\n1#1,51:1\n54#2,3:52\n24#2:55\n57#2,6:56\n63#2,2:63\n57#3:62\n*S KotlinDebug\n*F\n+ 1 SingleLogoAdapter.kt\ncom/adif/elcanomovil/uiDialog/adapters/SingleLogoViewHolder\n*L\n48#1:52,3\n48#1:55\n48#1:56,6\n48#1:63,2\n48#1:62\n*E\n"})
|
||||
/* loaded from: classes2.dex */
|
||||
public final class SingleLogoViewHolder extends I0 {
|
||||
private final ItemSingleLogoBinding itemBinding;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public SingleLogoViewHolder(View itemView) {
|
||||
super(itemView);
|
||||
Intrinsics.checkNotNullParameter(itemView, "itemView");
|
||||
ItemSingleLogoBinding bind = ItemSingleLogoBinding.bind(itemView);
|
||||
Intrinsics.checkNotNullExpressionValue(bind, "bind(...)");
|
||||
this.itemBinding = bind;
|
||||
}
|
||||
|
||||
public final void bind(String item) {
|
||||
Intrinsics.checkNotNullParameter(item, "item");
|
||||
ImageView icon = this.itemBinding.icon;
|
||||
Intrinsics.checkNotNullExpressionValue(icon, "icon");
|
||||
h a2 = a.a(icon.getContext());
|
||||
i iVar = new i(icon.getContext());
|
||||
iVar.f1464c = item;
|
||||
iVar.c(icon);
|
||||
((p) a2).b(iVar.a());
|
||||
}
|
||||
}
|
||||
41
apk_decompiled/sources/com/adif/elcanomovil/uiDialog/d.java
Normal file
41
apk_decompiled/sources/com/adif/elcanomovil/uiDialog/d.java
Normal file
@@ -0,0 +1,41 @@
|
||||
package com.adif.elcanomovil.uiDialog;
|
||||
|
||||
import android.content.DialogInterface;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.AlertAction;
|
||||
import com.adif.elcanomovil.commonNavGraph.extensions.NavigationExtensionsKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Lambda;
|
||||
import m3.l;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class d extends Lambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ AdifDialogFragment f5044a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ String f5045b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ AlertAction f5046c;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public d(AdifDialogFragment adifDialogFragment, String str, AlertAction alertAction) {
|
||||
super(2);
|
||||
this.f5044a = adifDialogFragment;
|
||||
this.f5045b = str;
|
||||
this.f5046c = alertAction;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
DialogInterface dialog = (DialogInterface) obj;
|
||||
((Number) obj2).intValue();
|
||||
Intrinsics.checkNotNullParameter(dialog, "dialog");
|
||||
dialog.dismiss();
|
||||
NavigationExtensionsKt.setDestinationResult(l.n(this.f5044a), this.f5045b, this.f5046c.getStyle());
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
package com.adif.elcanomovil.uiDialog.databinding;
|
||||
|
||||
import a.AbstractC0105a;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.ScrollView;
|
||||
import android.widget.TextView;
|
||||
import androidx.appcompat.widget.AppCompatButton;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
import com.adif.elcanomovil.uiDialog.R;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class DialogAdifBinding {
|
||||
public final ConstraintLayout containerButtons;
|
||||
public final TextView header;
|
||||
public final TextView message;
|
||||
public final AppCompatButton negative;
|
||||
public final AppCompatButton neutral;
|
||||
public final AppCompatButton positive;
|
||||
private final ConstraintLayout rootView;
|
||||
public final ScrollView scroll;
|
||||
public final TextView title;
|
||||
|
||||
private DialogAdifBinding(ConstraintLayout constraintLayout, ConstraintLayout constraintLayout2, TextView textView, TextView textView2, AppCompatButton appCompatButton, AppCompatButton appCompatButton2, AppCompatButton appCompatButton3, ScrollView scrollView, TextView textView3) {
|
||||
this.rootView = constraintLayout;
|
||||
this.containerButtons = constraintLayout2;
|
||||
this.header = textView;
|
||||
this.message = textView2;
|
||||
this.negative = appCompatButton;
|
||||
this.neutral = appCompatButton2;
|
||||
this.positive = appCompatButton3;
|
||||
this.scroll = scrollView;
|
||||
this.title = textView3;
|
||||
}
|
||||
|
||||
public static DialogAdifBinding bind(View view) {
|
||||
int i = R.id.containerButtons;
|
||||
ConstraintLayout constraintLayout = (ConstraintLayout) AbstractC0105a.t(view, i);
|
||||
if (constraintLayout != null) {
|
||||
i = R.id.header;
|
||||
TextView textView = (TextView) AbstractC0105a.t(view, i);
|
||||
if (textView != null) {
|
||||
i = R.id.message;
|
||||
TextView textView2 = (TextView) AbstractC0105a.t(view, i);
|
||||
if (textView2 != null) {
|
||||
i = R.id.negative;
|
||||
AppCompatButton appCompatButton = (AppCompatButton) AbstractC0105a.t(view, i);
|
||||
if (appCompatButton != null) {
|
||||
i = R.id.neutral;
|
||||
AppCompatButton appCompatButton2 = (AppCompatButton) AbstractC0105a.t(view, i);
|
||||
if (appCompatButton2 != null) {
|
||||
i = R.id.positive;
|
||||
AppCompatButton appCompatButton3 = (AppCompatButton) AbstractC0105a.t(view, i);
|
||||
if (appCompatButton3 != null) {
|
||||
i = R.id.scroll;
|
||||
ScrollView scrollView = (ScrollView) AbstractC0105a.t(view, i);
|
||||
if (scrollView != null) {
|
||||
i = R.id.title;
|
||||
TextView textView3 = (TextView) AbstractC0105a.t(view, i);
|
||||
if (textView3 != null) {
|
||||
return new DialogAdifBinding((ConstraintLayout) view, constraintLayout, textView, textView2, appCompatButton, appCompatButton2, appCompatButton3, scrollView, textView3);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i)));
|
||||
}
|
||||
|
||||
public static DialogAdifBinding inflate(LayoutInflater layoutInflater) {
|
||||
return inflate(layoutInflater, null, false);
|
||||
}
|
||||
|
||||
public static DialogAdifBinding inflate(LayoutInflater layoutInflater, ViewGroup viewGroup, boolean z3) {
|
||||
View inflate = layoutInflater.inflate(R.layout.dialog_adif, viewGroup, false);
|
||||
if (z3) {
|
||||
viewGroup.addView(inflate);
|
||||
}
|
||||
return bind(inflate);
|
||||
}
|
||||
|
||||
public ConstraintLayout getRoot() {
|
||||
return this.rootView;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,216 @@
|
||||
package com.adif.elcanomovil.uiDialog.databinding;
|
||||
|
||||
import a.AbstractC0105a;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.ImageButton;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import com.adif.elcanomovil.uiDialog.R;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class DialogStationsBinding {
|
||||
public final TextView accessibility;
|
||||
public final LinearLayout accessibilityLayout;
|
||||
public final LinearLayout clLinks;
|
||||
public final ImageButton close;
|
||||
public final TextView description;
|
||||
public final TextView location;
|
||||
public final LinearLayout locationLayout;
|
||||
public final ImageView logo;
|
||||
public final TextView name;
|
||||
public final TextView offerDescription;
|
||||
public final ImageView offerImage;
|
||||
public final LinearLayout offerLayout;
|
||||
public final TextView openingHours;
|
||||
public final LinearLayout openingHoursLayout;
|
||||
public final ImageView paymentWayApplePay;
|
||||
public final ImageView paymentWayBizum;
|
||||
public final ImageView paymentWayCash;
|
||||
public final ImageView paymentWayCreditCard;
|
||||
public final ImageView paymentWayFoodVoucher;
|
||||
public final ImageView paymentWayGooglePay;
|
||||
public final ImageView paymentWayOthers;
|
||||
public final ImageView paymentWayPayPal;
|
||||
public final ImageView paymentWaySamsungPay;
|
||||
public final ImageButton playSore;
|
||||
private final LinearLayout rootView;
|
||||
public final RecyclerView rv;
|
||||
public final TextView telephone;
|
||||
public final LinearLayout telephoneLayout;
|
||||
public final TextView web;
|
||||
public final LinearLayout webLayout;
|
||||
|
||||
private DialogStationsBinding(LinearLayout linearLayout, TextView textView, LinearLayout linearLayout2, LinearLayout linearLayout3, ImageButton imageButton, TextView textView2, TextView textView3, LinearLayout linearLayout4, ImageView imageView, TextView textView4, TextView textView5, ImageView imageView2, LinearLayout linearLayout5, TextView textView6, LinearLayout linearLayout6, ImageView imageView3, ImageView imageView4, ImageView imageView5, ImageView imageView6, ImageView imageView7, ImageView imageView8, ImageView imageView9, ImageView imageView10, ImageView imageView11, ImageButton imageButton2, RecyclerView recyclerView, TextView textView7, LinearLayout linearLayout7, TextView textView8, LinearLayout linearLayout8) {
|
||||
this.rootView = linearLayout;
|
||||
this.accessibility = textView;
|
||||
this.accessibilityLayout = linearLayout2;
|
||||
this.clLinks = linearLayout3;
|
||||
this.close = imageButton;
|
||||
this.description = textView2;
|
||||
this.location = textView3;
|
||||
this.locationLayout = linearLayout4;
|
||||
this.logo = imageView;
|
||||
this.name = textView4;
|
||||
this.offerDescription = textView5;
|
||||
this.offerImage = imageView2;
|
||||
this.offerLayout = linearLayout5;
|
||||
this.openingHours = textView6;
|
||||
this.openingHoursLayout = linearLayout6;
|
||||
this.paymentWayApplePay = imageView3;
|
||||
this.paymentWayBizum = imageView4;
|
||||
this.paymentWayCash = imageView5;
|
||||
this.paymentWayCreditCard = imageView6;
|
||||
this.paymentWayFoodVoucher = imageView7;
|
||||
this.paymentWayGooglePay = imageView8;
|
||||
this.paymentWayOthers = imageView9;
|
||||
this.paymentWayPayPal = imageView10;
|
||||
this.paymentWaySamsungPay = imageView11;
|
||||
this.playSore = imageButton2;
|
||||
this.rv = recyclerView;
|
||||
this.telephone = textView7;
|
||||
this.telephoneLayout = linearLayout7;
|
||||
this.web = textView8;
|
||||
this.webLayout = linearLayout8;
|
||||
}
|
||||
|
||||
public static DialogStationsBinding bind(View view) {
|
||||
int i = R.id.accessibility;
|
||||
TextView textView = (TextView) AbstractC0105a.t(view, i);
|
||||
if (textView != null) {
|
||||
i = R.id.accessibility_layout;
|
||||
LinearLayout linearLayout = (LinearLayout) AbstractC0105a.t(view, i);
|
||||
if (linearLayout != null) {
|
||||
i = R.id.cl_links;
|
||||
LinearLayout linearLayout2 = (LinearLayout) AbstractC0105a.t(view, i);
|
||||
if (linearLayout2 != null) {
|
||||
i = R.id.close;
|
||||
ImageButton imageButton = (ImageButton) AbstractC0105a.t(view, i);
|
||||
if (imageButton != null) {
|
||||
i = R.id.description;
|
||||
TextView textView2 = (TextView) AbstractC0105a.t(view, i);
|
||||
if (textView2 != null) {
|
||||
i = R.id.location;
|
||||
TextView textView3 = (TextView) AbstractC0105a.t(view, i);
|
||||
if (textView3 != null) {
|
||||
i = R.id.location_layout;
|
||||
LinearLayout linearLayout3 = (LinearLayout) AbstractC0105a.t(view, i);
|
||||
if (linearLayout3 != null) {
|
||||
i = R.id.logo;
|
||||
ImageView imageView = (ImageView) AbstractC0105a.t(view, i);
|
||||
if (imageView != null) {
|
||||
i = R.id.name;
|
||||
TextView textView4 = (TextView) AbstractC0105a.t(view, i);
|
||||
if (textView4 != null) {
|
||||
i = R.id.offer_description;
|
||||
TextView textView5 = (TextView) AbstractC0105a.t(view, i);
|
||||
if (textView5 != null) {
|
||||
i = R.id.offer_image;
|
||||
ImageView imageView2 = (ImageView) AbstractC0105a.t(view, i);
|
||||
if (imageView2 != null) {
|
||||
i = R.id.offer_layout;
|
||||
LinearLayout linearLayout4 = (LinearLayout) AbstractC0105a.t(view, i);
|
||||
if (linearLayout4 != null) {
|
||||
i = R.id.opening_hours;
|
||||
TextView textView6 = (TextView) AbstractC0105a.t(view, i);
|
||||
if (textView6 != null) {
|
||||
i = R.id.opening_hours_layout;
|
||||
LinearLayout linearLayout5 = (LinearLayout) AbstractC0105a.t(view, i);
|
||||
if (linearLayout5 != null) {
|
||||
i = R.id.payment_way_apple_pay;
|
||||
ImageView imageView3 = (ImageView) AbstractC0105a.t(view, i);
|
||||
if (imageView3 != null) {
|
||||
i = R.id.payment_way_bizum;
|
||||
ImageView imageView4 = (ImageView) AbstractC0105a.t(view, i);
|
||||
if (imageView4 != null) {
|
||||
i = R.id.payment_way_cash;
|
||||
ImageView imageView5 = (ImageView) AbstractC0105a.t(view, i);
|
||||
if (imageView5 != null) {
|
||||
i = R.id.payment_way_credit_card;
|
||||
ImageView imageView6 = (ImageView) AbstractC0105a.t(view, i);
|
||||
if (imageView6 != null) {
|
||||
i = R.id.payment_way_food_voucher;
|
||||
ImageView imageView7 = (ImageView) AbstractC0105a.t(view, i);
|
||||
if (imageView7 != null) {
|
||||
i = R.id.payment_way_google_pay;
|
||||
ImageView imageView8 = (ImageView) AbstractC0105a.t(view, i);
|
||||
if (imageView8 != null) {
|
||||
i = R.id.payment_way_others;
|
||||
ImageView imageView9 = (ImageView) AbstractC0105a.t(view, i);
|
||||
if (imageView9 != null) {
|
||||
i = R.id.payment_way_pay_pal;
|
||||
ImageView imageView10 = (ImageView) AbstractC0105a.t(view, i);
|
||||
if (imageView10 != null) {
|
||||
i = R.id.payment_way_samsung_pay;
|
||||
ImageView imageView11 = (ImageView) AbstractC0105a.t(view, i);
|
||||
if (imageView11 != null) {
|
||||
i = R.id.play_sore;
|
||||
ImageButton imageButton2 = (ImageButton) AbstractC0105a.t(view, i);
|
||||
if (imageButton2 != null) {
|
||||
i = R.id.rv;
|
||||
RecyclerView recyclerView = (RecyclerView) AbstractC0105a.t(view, i);
|
||||
if (recyclerView != null) {
|
||||
i = R.id.telephone;
|
||||
TextView textView7 = (TextView) AbstractC0105a.t(view, i);
|
||||
if (textView7 != null) {
|
||||
i = R.id.telephone_layout;
|
||||
LinearLayout linearLayout6 = (LinearLayout) AbstractC0105a.t(view, i);
|
||||
if (linearLayout6 != null) {
|
||||
i = R.id.web;
|
||||
TextView textView8 = (TextView) AbstractC0105a.t(view, i);
|
||||
if (textView8 != null) {
|
||||
i = R.id.web_layout;
|
||||
LinearLayout linearLayout7 = (LinearLayout) AbstractC0105a.t(view, i);
|
||||
if (linearLayout7 != null) {
|
||||
return new DialogStationsBinding((LinearLayout) view, textView, linearLayout, linearLayout2, imageButton, textView2, textView3, linearLayout3, imageView, textView4, textView5, imageView2, linearLayout4, textView6, linearLayout5, imageView3, imageView4, imageView5, imageView6, imageView7, imageView8, imageView9, imageView10, imageView11, imageButton2, recyclerView, textView7, linearLayout6, textView8, linearLayout7);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i)));
|
||||
}
|
||||
|
||||
public static DialogStationsBinding inflate(LayoutInflater layoutInflater) {
|
||||
return inflate(layoutInflater, null, false);
|
||||
}
|
||||
|
||||
public static DialogStationsBinding inflate(LayoutInflater layoutInflater, ViewGroup viewGroup, boolean z3) {
|
||||
View inflate = layoutInflater.inflate(R.layout.dialog_stations, viewGroup, false);
|
||||
if (z3) {
|
||||
viewGroup.addView(inflate);
|
||||
}
|
||||
return bind(inflate);
|
||||
}
|
||||
|
||||
public LinearLayout getRoot() {
|
||||
return this.rootView;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package com.adif.elcanomovil.uiDialog.databinding;
|
||||
|
||||
import a.AbstractC0105a;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.ImageView;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
import com.adif.elcanomovil.uiDialog.R;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class ItemSingleLogoBinding {
|
||||
public final ImageView icon;
|
||||
private final ConstraintLayout rootView;
|
||||
|
||||
private ItemSingleLogoBinding(ConstraintLayout constraintLayout, ImageView imageView) {
|
||||
this.rootView = constraintLayout;
|
||||
this.icon = imageView;
|
||||
}
|
||||
|
||||
public static ItemSingleLogoBinding bind(View view) {
|
||||
int i = R.id.icon;
|
||||
ImageView imageView = (ImageView) AbstractC0105a.t(view, i);
|
||||
if (imageView != null) {
|
||||
return new ItemSingleLogoBinding((ConstraintLayout) view, imageView);
|
||||
}
|
||||
throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i)));
|
||||
}
|
||||
|
||||
public static ItemSingleLogoBinding inflate(LayoutInflater layoutInflater) {
|
||||
return inflate(layoutInflater, null, false);
|
||||
}
|
||||
|
||||
public static ItemSingleLogoBinding inflate(LayoutInflater layoutInflater, ViewGroup viewGroup, boolean z3) {
|
||||
View inflate = layoutInflater.inflate(R.layout.item_single_logo, viewGroup, false);
|
||||
if (z3) {
|
||||
viewGroup.addView(inflate);
|
||||
}
|
||||
return bind(inflate);
|
||||
}
|
||||
|
||||
public ConstraintLayout getRoot() {
|
||||
return this.rootView;
|
||||
}
|
||||
}
|
||||
37
apk_decompiled/sources/com/adif/elcanomovil/uiDialog/e.java
Normal file
37
apk_decompiled/sources/com/adif/elcanomovil/uiDialog/e.java
Normal file
@@ -0,0 +1,37 @@
|
||||
package com.adif.elcanomovil.uiDialog;
|
||||
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.AlertAction;
|
||||
import com.adif.elcanomovil.commonNavGraph.extensions.NavigationExtensionsKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.Lambda;
|
||||
import m3.l;
|
||||
import o0.AbstractC0544v;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final class e extends Lambda implements Function0 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ AdifDialogFragment f5047a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ AlertAction f5048b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public e(AdifDialogFragment adifDialogFragment, AlertAction alertAction) {
|
||||
super(0);
|
||||
this.f5047a = adifDialogFragment;
|
||||
this.f5048b = alertAction;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final Object invoke() {
|
||||
AdifDialogFragmentArgs args;
|
||||
AdifDialogFragment adifDialogFragment = this.f5047a;
|
||||
adifDialogFragment.dismiss();
|
||||
AbstractC0544v n4 = l.n(adifDialogFragment);
|
||||
args = adifDialogFragment.getArgs();
|
||||
NavigationExtensionsKt.setDestinationResult(n4, args.getActions().getKey(), this.f5048b.getStyle());
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
38
apk_decompiled/sources/com/adif/elcanomovil/uiDialog/f.java
Normal file
38
apk_decompiled/sources/com/adif/elcanomovil/uiDialog/f.java
Normal file
@@ -0,0 +1,38 @@
|
||||
package com.adif.elcanomovil.uiDialog;
|
||||
|
||||
import android.view.View;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public final /* synthetic */ class f implements View.OnClickListener {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ int f5049a = 1;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ StationsDialogFragment f5050b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ String f5051c;
|
||||
|
||||
public /* synthetic */ f(StationsDialogFragment stationsDialogFragment, String str) {
|
||||
this.f5050b = stationsDialogFragment;
|
||||
this.f5051c = str;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
switch (this.f5049a) {
|
||||
case 0:
|
||||
StationsDialogFragment.k(this.f5050b, this.f5051c, view);
|
||||
return;
|
||||
default:
|
||||
StationsDialogFragment.h(this.f5050b, this.f5051c, view);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
public /* synthetic */ f(String str, StationsDialogFragment stationsDialogFragment) {
|
||||
this.f5051c = str;
|
||||
this.f5050b = stationsDialogFragment;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user