Primer paso de la investigacion. Se aportan el .apk, las carpetas con el apk extraido y el apk descompilado. El archivo API_DOCUMENTATION.md es un archivo donde se anotaran los descubrimientos del funcionamiento de la API, y los .py son scripts para probar la funcionalidad de la API con los métodos que vayamos encontrando. Finalmente, los archivos .js son scripts de Frida para extraer informacion de la APP durante la ejecucion.
This commit is contained in:
@@ -0,0 +1,502 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.widget.Button;
|
||||
import androidx.fragment.app.K;
|
||||
import androidx.fragment.app.P;
|
||||
import androidx.lifecycle.C0;
|
||||
import androidx.lifecycle.D0;
|
||||
import androidx.lifecycle.InterfaceC0200v;
|
||||
import androidx.lifecycle.J;
|
||||
import androidx.lifecycle.y0;
|
||||
import androidx.recyclerview.widget.AbstractC0220h0;
|
||||
import androidx.recyclerview.widget.C0246x;
|
||||
import b1.InterfaceC0266a;
|
||||
import com.adif.elcanomovil.commonNavGraph.navigation.NavigationHandler;
|
||||
import com.adif.elcanomovil.commonViews.data.InfoData;
|
||||
import com.adif.elcanomovil.commonViews.data.InfoHeaderData;
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.Incidence;
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.IncidenceStation;
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import com.adif.elcanomovil.domain.entities.utils.Status;
|
||||
import com.adif.elcanomovil.uiAvisa.R;
|
||||
import com.adif.elcanomovil.uiAvisa.components.home.IssuesAdapter;
|
||||
import com.adif.elcanomovil.uiAvisa.databinding.FragmentAvisaHomeBinding;
|
||||
import dagger.hilt.android.AndroidEntryPoint;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Comparator;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.Lazy;
|
||||
import kotlin.LazyKt;
|
||||
import kotlin.LazyThreadSafetyMode;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.comparisons.ComparisonsKt;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Reflection;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import l0.C0435a;
|
||||
|
||||
@Metadata(d1 = {"\u0000F\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\b\b\u0007\u0018\u00002\u00020\u00012\u00020\u0002B\u0007¢\u0006\u0004\b\u0003\u0010\u0004J\u000f\u0010\u0006\u001a\u00020\u0005H\u0002¢\u0006\u0004\b\u0006\u0010\u0004J\u000f\u0010\u0007\u001a\u00020\u0005H\u0002¢\u0006\u0004\b\u0007\u0010\u0004J\u000f\u0010\b\u001a\u00020\u0005H\u0002¢\u0006\u0004\b\b\u0010\u0004J\u0017\u0010\u000b\u001a\u00020\u00052\u0006\u0010\n\u001a\u00020\tH\u0002¢\u0006\u0004\b\u000b\u0010\fJ!\u0010\u000f\u001a\u00020\u00052\u0006\u0010\r\u001a\u00020\t2\b\b\u0002\u0010\u000e\u001a\u00020\tH\u0002¢\u0006\u0004\b\u000f\u0010\u0010J!\u0010\u0015\u001a\u00020\u00052\u0006\u0010\u0012\u001a\u00020\u00112\b\u0010\u0014\u001a\u0004\u0018\u00010\u0013H\u0016¢\u0006\u0004\b\u0015\u0010\u0016J\u0017\u0010\u0019\u001a\u00020\u00052\u0006\u0010\u0018\u001a\u00020\u0017H\u0016¢\u0006\u0004\b\u0019\u0010\u001aR\u0016\u0010\u001c\u001a\u00020\u001b8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b\u001c\u0010\u001dR\u001b\u0010#\u001a\u00020\u001e8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u001f\u0010 \u001a\u0004\b!\u0010\"R\u0016\u0010$\u001a\u00020\t8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b$\u0010%¨\u0006&"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/home/AvisaHomeFragment;", "Landroidx/fragment/app/K;", "Lcom/adif/elcanomovil/uiAvisa/components/home/IssuesAdapter$OnIssueListFragmentInteractionListener;", "<init>", "()V", "", "bindViewModel", "getIncidences", "subscribeToIncidences", "", "isLoading", "loading", "(Z)V", "isVisible", "fromFailure", "emptyStatus", "(ZZ)V", "Landroid/view/View;", "view", "Landroid/os/Bundle;", "savedInstanceState", "onViewCreated", "(Landroid/view/View;Landroid/os/Bundle;)V", "Lcom/adif/elcanomovil/domain/entities/avisa/incidence/Incidence;", "issue", "onIssueInteraction", "(Lcom/adif/elcanomovil/domain/entities/avisa/incidence/Incidence;)V", "Lcom/adif/elcanomovil/uiAvisa/databinding/FragmentAvisaHomeBinding;", "binding", "Lcom/adif/elcanomovil/uiAvisa/databinding/FragmentAvisaHomeBinding;", "Lcom/adif/elcanomovil/uiAvisa/components/home/AvisaHomeViewModel;", "viewModel$delegate", "Lkotlin/Lazy;", "getViewModel", "()Lcom/adif/elcanomovil/uiAvisa/components/home/AvisaHomeViewModel;", "viewModel", "initialDataAvailable", "Z", "ui-avisa_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@AndroidEntryPoint
|
||||
@SourceDebugExtension({"SMAP\nAvisaHomeFragment.kt\nKotlin\n*S Kotlin\n*F\n+ 1 AvisaHomeFragment.kt\ncom/adif/elcanomovil/uiAvisa/components/home/AvisaHomeFragment\n+ 2 FragmentViewModelLazy.kt\nandroidx/fragment/app/FragmentViewModelLazyKt\n+ 3 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,209:1\n106#2,15:210\n1045#3:225\n1549#3:226\n1620#3,3:227\n*S KotlinDebug\n*F\n+ 1 AvisaHomeFragment.kt\ncom/adif/elcanomovil/uiAvisa/components/home/AvisaHomeFragment\n*L\n26#1:210,15\n124#1:225\n126#1:226\n126#1:227,3\n*E\n"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class AvisaHomeFragment extends Hilt_AvisaHomeFragment implements IssuesAdapter.OnIssueListFragmentInteractionListener {
|
||||
private FragmentAvisaHomeBinding binding;
|
||||
private boolean initialDataAvailable;
|
||||
|
||||
/* renamed from: viewModel$delegate, reason: from kotlin metadata */
|
||||
private final Lazy viewModel;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public /* synthetic */ class WhenMappings {
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
||||
|
||||
static {
|
||||
int[] iArr = new int[Status.values().length];
|
||||
try {
|
||||
iArr[Status.SUCCESS.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused) {
|
||||
}
|
||||
try {
|
||||
iArr[Status.ERROR.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused2) {
|
||||
}
|
||||
try {
|
||||
iArr[Status.LOADING.ordinal()] = 3;
|
||||
} catch (NoSuchFieldError unused3) {
|
||||
}
|
||||
$EnumSwitchMapping$0 = iArr;
|
||||
}
|
||||
}
|
||||
|
||||
public AvisaHomeFragment() {
|
||||
super(R.layout.fragment_avisa_home);
|
||||
final Function0<K> function0 = new Function0<K>() { // from class: com.adif.elcanomovil.uiAvisa.components.home.AvisaHomeFragment$special$$inlined$viewModels$default$1
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final K invoke() {
|
||||
return K.this;
|
||||
}
|
||||
};
|
||||
final Lazy lazy = LazyKt.lazy(LazyThreadSafetyMode.NONE, (Function0) new Function0<D0>() { // from class: com.adif.elcanomovil.uiAvisa.components.home.AvisaHomeFragment$special$$inlined$viewModels$default$2
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final D0 invoke() {
|
||||
return (D0) Function0.this.invoke();
|
||||
}
|
||||
});
|
||||
final Function0 function02 = null;
|
||||
this.viewModel = m3.d.n(this, Reflection.getOrCreateKotlinClass(AvisaHomeViewModel.class), new Function0<C0>() { // from class: com.adif.elcanomovil.uiAvisa.components.home.AvisaHomeFragment$special$$inlined$viewModels$default$3
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final C0 invoke() {
|
||||
return ((D0) Lazy.this.getValue()).getViewModelStore();
|
||||
}
|
||||
}, new Function0<l0.c>() { // from class: com.adif.elcanomovil.uiAvisa.components.home.AvisaHomeFragment$special$$inlined$viewModels$default$4
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final l0.c invoke() {
|
||||
l0.c cVar;
|
||||
Function0 function03 = Function0.this;
|
||||
if (function03 != null && (cVar = (l0.c) function03.invoke()) != null) {
|
||||
return cVar;
|
||||
}
|
||||
D0 d02 = (D0) lazy.getValue();
|
||||
InterfaceC0200v interfaceC0200v = d02 instanceof InterfaceC0200v ? (InterfaceC0200v) d02 : null;
|
||||
return interfaceC0200v != null ? interfaceC0200v.getDefaultViewModelCreationExtras() : C0435a.f7312b;
|
||||
}
|
||||
}, new Function0<y0>() { // from class: com.adif.elcanomovil.uiAvisa.components.home.AvisaHomeFragment$special$$inlined$viewModels$default$5
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final y0 invoke() {
|
||||
y0 defaultViewModelProviderFactory;
|
||||
D0 d02 = (D0) lazy.getValue();
|
||||
InterfaceC0200v interfaceC0200v = d02 instanceof InterfaceC0200v ? (InterfaceC0200v) d02 : null;
|
||||
if (interfaceC0200v != null && (defaultViewModelProviderFactory = interfaceC0200v.getDefaultViewModelProviderFactory()) != null) {
|
||||
return defaultViewModelProviderFactory;
|
||||
}
|
||||
y0 defaultViewModelProviderFactory2 = K.this.getDefaultViewModelProviderFactory();
|
||||
Intrinsics.checkNotNullExpressionValue(defaultViewModelProviderFactory2, "defaultViewModelProviderFactory");
|
||||
return defaultViewModelProviderFactory2;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private final void bindViewModel() {
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding = this.binding;
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding2 = null;
|
||||
if (fragmentAvisaHomeBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaHomeBinding = null;
|
||||
}
|
||||
final int i = 0;
|
||||
((Button) fragmentAvisaHomeBinding.emptyView.findViewById(R.id.action_button_retry)).setOnClickListener(new View.OnClickListener(this) { // from class: com.adif.elcanomovil.uiAvisa.components.home.b
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ AvisaHomeFragment f4899b;
|
||||
|
||||
{
|
||||
this.f4899b = this;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
int i4 = i;
|
||||
AvisaHomeFragment avisaHomeFragment = this.f4899b;
|
||||
switch (i4) {
|
||||
case 0:
|
||||
AvisaHomeFragment.bindViewModel$lambda$0(avisaHomeFragment, view);
|
||||
return;
|
||||
default:
|
||||
AvisaHomeFragment.bindViewModel$lambda$3(avisaHomeFragment, view);
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
getViewModel().getStationsList().e(getViewLifecycleOwner(), new a(this, 1));
|
||||
InterfaceC0266a navigation = getViewModel().getNavigation();
|
||||
J viewLifecycleOwner = getViewLifecycleOwner();
|
||||
Intrinsics.checkNotNullExpressionValue(viewLifecycleOwner, "getViewLifecycleOwner(...)");
|
||||
((b1.f) navigation).a(viewLifecycleOwner, new NavigationHandler(this));
|
||||
C0246x c0246x = new C0246x(requireContext());
|
||||
Drawable drawable = D.h.getDrawable(requireContext(), R.drawable.divider);
|
||||
if (drawable != null) {
|
||||
c0246x.f3928a = drawable;
|
||||
}
|
||||
P requireActivity = requireActivity();
|
||||
Intrinsics.checkNotNullExpressionValue(requireActivity, "requireActivity(...)");
|
||||
IssuesAdapter issuesAdapter = new IssuesAdapter(this, requireActivity);
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding3 = this.binding;
|
||||
if (fragmentAvisaHomeBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaHomeBinding3 = null;
|
||||
}
|
||||
fragmentAvisaHomeBinding3.issuesRecyclerview.setAdapter(issuesAdapter);
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding4 = this.binding;
|
||||
if (fragmentAvisaHomeBinding4 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaHomeBinding4 = null;
|
||||
}
|
||||
fragmentAvisaHomeBinding4.issuesRecyclerview.i(c0246x);
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding5 = this.binding;
|
||||
if (fragmentAvisaHomeBinding5 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentAvisaHomeBinding2 = fragmentAvisaHomeBinding5;
|
||||
}
|
||||
final int i4 = 1;
|
||||
fragmentAvisaHomeBinding2.fab.setOnClickListener(new View.OnClickListener(this) { // from class: com.adif.elcanomovil.uiAvisa.components.home.b
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ AvisaHomeFragment f4899b;
|
||||
|
||||
{
|
||||
this.f4899b = this;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
int i42 = i4;
|
||||
AvisaHomeFragment avisaHomeFragment = this.f4899b;
|
||||
switch (i42) {
|
||||
case 0:
|
||||
AvisaHomeFragment.bindViewModel$lambda$0(avisaHomeFragment, view);
|
||||
return;
|
||||
default:
|
||||
AvisaHomeFragment.bindViewModel$lambda$3(avisaHomeFragment, view);
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
getViewModel().canContinue().e(getViewLifecycleOwner(), new a(this, 2));
|
||||
loading(true);
|
||||
}
|
||||
|
||||
public static final void bindViewModel$lambda$0(AvisaHomeFragment this$0, View view) {
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
if (Intrinsics.areEqual(this$0.getViewModel().canContinue().d(), Boolean.TRUE)) {
|
||||
this$0.getIncidences();
|
||||
return;
|
||||
}
|
||||
this$0.loading(true);
|
||||
emptyStatus$default(this$0, false, false, 2, null);
|
||||
this$0.getViewModel().retryAuth();
|
||||
}
|
||||
|
||||
public static final void bindViewModel$lambda$1(AvisaHomeFragment this$0, List list) {
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
if (list.isEmpty()) {
|
||||
this$0.loading(false);
|
||||
this$0.emptyStatus(true, true);
|
||||
}
|
||||
}
|
||||
|
||||
public static final void bindViewModel$lambda$3(AvisaHomeFragment this$0, View view) {
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
this$0.getViewModel().navigateToCreateIncidence();
|
||||
}
|
||||
|
||||
public static final void bindViewModel$lambda$4(AvisaHomeFragment this$0, Boolean bool) {
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
if (Intrinsics.areEqual(bool, Boolean.TRUE)) {
|
||||
this$0.getIncidences();
|
||||
}
|
||||
}
|
||||
|
||||
private final void emptyStatus(boolean isVisible, boolean fromFailure) {
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding = null;
|
||||
if (!isVisible) {
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding2 = this.binding;
|
||||
if (fragmentAvisaHomeBinding2 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaHomeBinding2 = null;
|
||||
}
|
||||
fragmentAvisaHomeBinding2.issuesRecyclerview.setVisibility(0);
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding3 = this.binding;
|
||||
if (fragmentAvisaHomeBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentAvisaHomeBinding = fragmentAvisaHomeBinding3;
|
||||
}
|
||||
fragmentAvisaHomeBinding.emptyView.setVisibility(8);
|
||||
return;
|
||||
}
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding4 = this.binding;
|
||||
if (fragmentAvisaHomeBinding4 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaHomeBinding4 = null;
|
||||
}
|
||||
fragmentAvisaHomeBinding4.issuesRecyclerview.setVisibility(8);
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding5 = this.binding;
|
||||
if (fragmentAvisaHomeBinding5 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaHomeBinding5 = null;
|
||||
}
|
||||
fragmentAvisaHomeBinding5.emptyView.setVisibility(0);
|
||||
InfoData infoData = new InfoData(null, null, null, 7, null);
|
||||
if (fromFailure) {
|
||||
infoData.setTitle(getString(R.string.generic_error_title));
|
||||
infoData.setMsg(getString(R.string.generic_error_message));
|
||||
infoData.setImage(Integer.valueOf(R.drawable.ic_result_error));
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding6 = this.binding;
|
||||
if (fragmentAvisaHomeBinding6 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaHomeBinding6 = null;
|
||||
}
|
||||
((Button) fragmentAvisaHomeBinding6.emptyView.findViewById(R.id.action_button_retry)).setVisibility(0);
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding7 = this.binding;
|
||||
if (fragmentAvisaHomeBinding7 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaHomeBinding7 = null;
|
||||
}
|
||||
fragmentAvisaHomeBinding7.fab.setVisibility(4);
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding8 = this.binding;
|
||||
if (fragmentAvisaHomeBinding8 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentAvisaHomeBinding = fragmentAvisaHomeBinding8;
|
||||
}
|
||||
fragmentAvisaHomeBinding.emptyView.configureView(infoData);
|
||||
return;
|
||||
}
|
||||
infoData.setTitle(getString(R.string.avisa_empty_title));
|
||||
infoData.setMsg(getString(R.string.avisa_empty_message, getString(R.string.action_button_new)));
|
||||
infoData.setImage(Integer.valueOf(R.drawable.ic_result_empty));
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding9 = this.binding;
|
||||
if (fragmentAvisaHomeBinding9 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaHomeBinding9 = null;
|
||||
}
|
||||
((Button) fragmentAvisaHomeBinding9.emptyView.findViewById(R.id.action_button_retry)).setVisibility(8);
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding10 = this.binding;
|
||||
if (fragmentAvisaHomeBinding10 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaHomeBinding10 = null;
|
||||
}
|
||||
fragmentAvisaHomeBinding10.fab.setVisibility(0);
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding11 = this.binding;
|
||||
if (fragmentAvisaHomeBinding11 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentAvisaHomeBinding = fragmentAvisaHomeBinding11;
|
||||
}
|
||||
fragmentAvisaHomeBinding.emptyView.configureView(infoData);
|
||||
}
|
||||
|
||||
public static /* synthetic */ void emptyStatus$default(AvisaHomeFragment avisaHomeFragment, boolean z3, boolean z4, int i, Object obj) {
|
||||
if ((i & 2) != 0) {
|
||||
z4 = false;
|
||||
}
|
||||
avisaHomeFragment.emptyStatus(z3, z4);
|
||||
}
|
||||
|
||||
private final void getIncidences() {
|
||||
getViewModel().fetchIncidences();
|
||||
subscribeToIncidences();
|
||||
}
|
||||
|
||||
private final AvisaHomeViewModel getViewModel() {
|
||||
return (AvisaHomeViewModel) this.viewModel.getValue();
|
||||
}
|
||||
|
||||
private final void loading(boolean isLoading) {
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding = null;
|
||||
if (!isLoading) {
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding2 = this.binding;
|
||||
if (fragmentAvisaHomeBinding2 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentAvisaHomeBinding = fragmentAvisaHomeBinding2;
|
||||
}
|
||||
fragmentAvisaHomeBinding.loadingViewContainer.setVisibility(8);
|
||||
return;
|
||||
}
|
||||
if (this.initialDataAvailable) {
|
||||
return;
|
||||
}
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding3 = this.binding;
|
||||
if (fragmentAvisaHomeBinding3 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaHomeBinding3 = null;
|
||||
}
|
||||
fragmentAvisaHomeBinding3.loadingViewContainer.setVisibility(0);
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding4 = this.binding;
|
||||
if (fragmentAvisaHomeBinding4 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentAvisaHomeBinding = fragmentAvisaHomeBinding4;
|
||||
}
|
||||
fragmentAvisaHomeBinding.fab.setVisibility(4);
|
||||
}
|
||||
|
||||
private final void subscribeToIncidences() {
|
||||
getViewModel().getUserListIncidences().e(getViewLifecycleOwner(), new a(this, 0));
|
||||
}
|
||||
|
||||
public static final void subscribeToIncidences$lambda$9(AvisaHomeFragment this$0, AsyncResult asyncResult) {
|
||||
Unit unit;
|
||||
int collectionSizeOrDefault;
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
int i = WhenMappings.$EnumSwitchMapping$0[asyncResult.getStatus().ordinal()];
|
||||
if (i != 1) {
|
||||
if (i != 2) {
|
||||
if (i != 3) {
|
||||
return;
|
||||
}
|
||||
this$0.loading(true);
|
||||
return;
|
||||
} else if (!this$0.initialDataAvailable) {
|
||||
emptyStatus$default(this$0, true, false, 2, null);
|
||||
this$0.loading(false);
|
||||
return;
|
||||
} else {
|
||||
if (this$0.getContext() != null) {
|
||||
this$0.getViewModel().showErrorDialog();
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
this$0.loading(false);
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding = this$0.binding;
|
||||
if (fragmentAvisaHomeBinding == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaHomeBinding = null;
|
||||
}
|
||||
fragmentAvisaHomeBinding.fab.setVisibility(0);
|
||||
List list = (List) asyncResult.getData();
|
||||
if (list == null) {
|
||||
unit = null;
|
||||
} else {
|
||||
if (list.isEmpty()) {
|
||||
emptyStatus$default(this$0, true, false, 2, null);
|
||||
return;
|
||||
}
|
||||
List list2 = list;
|
||||
List<IncidenceStation> reversed = CollectionsKt.reversed(CollectionsKt.sortedWith(list2, new Comparator() { // from class: com.adif.elcanomovil.uiAvisa.components.home.AvisaHomeFragment$subscribeToIncidences$lambda$9$lambda$7$$inlined$sortedBy$1
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@Override // java.util.Comparator
|
||||
public final int compare(T t2, T t4) {
|
||||
return ComparisonsKt.compareValues(((IncidenceStation) t2).getIncidence().getCreatedTime(), ((IncidenceStation) t4).getIncidence().getCreatedTime());
|
||||
}
|
||||
}));
|
||||
emptyStatus$default(this$0, false, false, 2, null);
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list2, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator it = list2.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList.add(((IncidenceStation) it.next()).getIncidence());
|
||||
}
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding2 = this$0.binding;
|
||||
if (fragmentAvisaHomeBinding2 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
fragmentAvisaHomeBinding2 = null;
|
||||
}
|
||||
AbstractC0220h0 adapter = fragmentAvisaHomeBinding2.issuesRecyclerview.getAdapter();
|
||||
Intrinsics.checkNotNull(adapter, "null cannot be cast to non-null type com.adif.elcanomovil.uiAvisa.components.home.IssuesAdapter");
|
||||
((IssuesAdapter) adapter).updateIssues(reversed, true);
|
||||
unit = Unit.INSTANCE;
|
||||
}
|
||||
if (unit == null) {
|
||||
emptyStatus$default(this$0, true, false, 2, null);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.uiAvisa.components.home.IssuesAdapter.OnIssueListFragmentInteractionListener
|
||||
public void onIssueInteraction(Incidence issue) {
|
||||
Intrinsics.checkNotNullParameter(issue, "issue");
|
||||
getViewModel().navigateToIncidenceDetails(issue);
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public void onViewCreated(View view, Bundle savedInstanceState) {
|
||||
Intrinsics.checkNotNullParameter(view, "view");
|
||||
super.onViewCreated(view, savedInstanceState);
|
||||
FragmentAvisaHomeBinding bind = FragmentAvisaHomeBinding.bind(view);
|
||||
Intrinsics.checkNotNullExpressionValue(bind, "bind(...)");
|
||||
this.binding = bind;
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding = null;
|
||||
if (bind == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
bind = null;
|
||||
}
|
||||
bind.headerAvisaHome.updateHeaderInfo(new InfoHeaderData(getString(R.string.avisa_home_view_title), Integer.valueOf(R.drawable.ic_arrow_back), null, 4, null));
|
||||
FragmentAvisaHomeBinding fragmentAvisaHomeBinding2 = this.binding;
|
||||
if (fragmentAvisaHomeBinding2 == null) {
|
||||
Intrinsics.throwUninitializedPropertyAccessException("binding");
|
||||
} else {
|
||||
fragmentAvisaHomeBinding = fragmentAvisaHomeBinding2;
|
||||
}
|
||||
fragmentAvisaHomeBinding.headerAvisaHome.setOnBackActionListener(new I1.b(this, 7));
|
||||
bindViewModel();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import o0.F;
|
||||
|
||||
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0005\u0018\u0000 \u00042\u00020\u0001:\u0002\u0004\u0005B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0006"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/home/AvisaHomeFragmentDirections;", "", "<init>", "()V", "Companion", "com/adif/elcanomovil/uiAvisa/components/home/c", "common-nav-graph_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class AvisaHomeFragmentDirections {
|
||||
|
||||
/* renamed from: Companion, reason: from kotlin metadata */
|
||||
public static final Companion INSTANCE = new Companion(null);
|
||||
|
||||
@Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003J\u0015\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\u0004¢\u0006\u0004\b\u0007\u0010\b¨\u0006\t"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/home/AvisaHomeFragmentDirections$Companion;", "", "<init>", "()V", "", "argIdIncidence", "Lo0/F;", "toIssueDetailsFragment", "(I)Lo0/F;", "common-nav-graph_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public static final class Companion {
|
||||
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
public final F toIssueDetailsFragment(int argIdIncidence) {
|
||||
return new c(argIdIncidence);
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
}
|
||||
|
||||
private AvisaHomeFragmentDirections() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
import dagger.hilt.InstallIn;
|
||||
import dagger.hilt.android.components.FragmentComponent;
|
||||
import dagger.hilt.codegen.OriginatingElement;
|
||||
import dagger.hilt.internal.GeneratedEntryPoint;
|
||||
|
||||
@OriginatingElement(topLevelClass = AvisaHomeFragment.class)
|
||||
@GeneratedEntryPoint
|
||||
@InstallIn({FragmentComponent.class})
|
||||
/* loaded from: classes.dex */
|
||||
public interface AvisaHomeFragment_GeneratedInjector {
|
||||
void injectAvisaHomeFragment(AvisaHomeFragment avisaHomeFragment);
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,45 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
import android.content.Context;
|
||||
import com.adif.elcanomovil.domain.usecases.avisa.incidence.GetIncidencesUseCase;
|
||||
import com.adif.elcanomovil.domain.usecases.avisa.station.GetAvisaStationCategoriesUseCase;
|
||||
import com.adif.elcanomovil.domain.usecases.avisa.station.GetAvisaStationsUseCase;
|
||||
import com.adif.elcanomovil.uiAvisa.components.authenticator.AuthenticationProvider;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import javax.inject.Provider;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata({"dagger.hilt.android.qualifiers.ApplicationContext"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class AvisaHomeViewModel_Factory implements Factory<AvisaHomeViewModel> {
|
||||
private final Provider<AuthenticationProvider> authProvider;
|
||||
private final Provider<Context> contextProvider;
|
||||
private final Provider<GetAvisaStationCategoriesUseCase> getAvisaStationCategoriesUseCaseProvider;
|
||||
private final Provider<GetIncidencesUseCase> getIncidencesUseCaseProvider;
|
||||
private final Provider<GetAvisaStationsUseCase> getStationsUseCaseProvider;
|
||||
|
||||
public AvisaHomeViewModel_Factory(Provider<GetIncidencesUseCase> provider, Provider<GetAvisaStationsUseCase> provider2, Provider<GetAvisaStationCategoriesUseCase> provider3, Provider<AuthenticationProvider> provider4, Provider<Context> provider5) {
|
||||
this.getIncidencesUseCaseProvider = provider;
|
||||
this.getStationsUseCaseProvider = provider2;
|
||||
this.getAvisaStationCategoriesUseCaseProvider = provider3;
|
||||
this.authProvider = provider4;
|
||||
this.contextProvider = provider5;
|
||||
}
|
||||
|
||||
public static AvisaHomeViewModel_Factory create(Provider<GetIncidencesUseCase> provider, Provider<GetAvisaStationsUseCase> provider2, Provider<GetAvisaStationCategoriesUseCase> provider3, Provider<AuthenticationProvider> provider4, Provider<Context> provider5) {
|
||||
return new AvisaHomeViewModel_Factory(provider, provider2, provider3, provider4, provider5);
|
||||
}
|
||||
|
||||
public static AvisaHomeViewModel newInstance(GetIncidencesUseCase getIncidencesUseCase, GetAvisaStationsUseCase getAvisaStationsUseCase, GetAvisaStationCategoriesUseCase getAvisaStationCategoriesUseCase, AuthenticationProvider authenticationProvider, Context context) {
|
||||
return new AvisaHomeViewModel(getIncidencesUseCase, getAvisaStationsUseCase, getAvisaStationCategoriesUseCase, authenticationProvider, context);
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public AvisaHomeViewModel get() {
|
||||
return newInstance(this.getIncidencesUseCaseProvider.get(), this.getStationsUseCaseProvider.get(), this.getAvisaStationCategoriesUseCaseProvider.get(), this.authProvider.get(), this.contextProvider.get());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
import androidx.lifecycle.w0;
|
||||
import dagger.Binds;
|
||||
import dagger.Module;
|
||||
import dagger.Provides;
|
||||
import dagger.hilt.InstallIn;
|
||||
import dagger.hilt.android.components.ActivityRetainedComponent;
|
||||
import dagger.hilt.android.components.ViewModelComponent;
|
||||
import dagger.hilt.android.internal.lifecycle.HiltViewModelMap;
|
||||
import dagger.hilt.codegen.OriginatingElement;
|
||||
import dagger.multibindings.IntoMap;
|
||||
import dagger.multibindings.IntoSet;
|
||||
import dagger.multibindings.StringKey;
|
||||
|
||||
@OriginatingElement(topLevelClass = AvisaHomeViewModel.class)
|
||||
/* loaded from: classes.dex */
|
||||
public final class AvisaHomeViewModel_HiltModules {
|
||||
|
||||
@Module
|
||||
@InstallIn({ViewModelComponent.class})
|
||||
/* loaded from: classes.dex */
|
||||
public static abstract class BindsModule {
|
||||
private BindsModule() {
|
||||
}
|
||||
|
||||
@Binds
|
||||
@StringKey("com.adif.elcanomovil.uiAvisa.components.home.AvisaHomeViewModel")
|
||||
@HiltViewModelMap
|
||||
@IntoMap
|
||||
public abstract w0 binds(AvisaHomeViewModel avisaHomeViewModel);
|
||||
}
|
||||
|
||||
@Module
|
||||
@InstallIn({ActivityRetainedComponent.class})
|
||||
/* loaded from: classes.dex */
|
||||
public static final class KeyModule {
|
||||
private KeyModule() {
|
||||
}
|
||||
|
||||
@Provides
|
||||
@HiltViewModelMap.KeySet
|
||||
@IntoSet
|
||||
public static String provide() {
|
||||
return "com.adif.elcanomovil.uiAvisa.components.home.AvisaHomeViewModel";
|
||||
}
|
||||
}
|
||||
|
||||
private AvisaHomeViewModel_HiltModules() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
import com.adif.elcanomovil.uiAvisa.components.home.AvisaHomeViewModel_HiltModules;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.Preconditions;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
|
||||
@ScopeMetadata
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata({"dagger.hilt.android.internal.lifecycle.HiltViewModelMap.KeySet"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class AvisaHomeViewModel_HiltModules_KeyModule_ProvideFactory implements Factory<String> {
|
||||
public static AvisaHomeViewModel_HiltModules_KeyModule_ProvideFactory create() {
|
||||
return n.f4919a;
|
||||
}
|
||||
|
||||
public static String provide() {
|
||||
return (String) Preconditions.checkNotNullFromProvides(AvisaHomeViewModel_HiltModules.KeyModule.provide());
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public String get() {
|
||||
return provide();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
import android.view.animation.AlphaAnimation;
|
||||
import android.view.animation.Animation;
|
||||
import androidx.fragment.app.K;
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0016\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003J)\u0010\n\u001a\u0004\u0018\u00010\t2\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0007\u001a\u00020\u00062\u0006\u0010\b\u001a\u00020\u0004H\u0016¢\u0006\u0004\b\n\u0010\u000bR\"\u0010\f\u001a\u00020\u00068\u0016@\u0016X\u0096\u000e¢\u0006\u0012\n\u0004\b\f\u0010\r\u001a\u0004\b\u000e\u0010\u000f\"\u0004\b\u0010\u0010\u0011R\u0014\u0010\u0013\u001a\u00020\u00128\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0013\u0010\u0014¨\u0006\u0015"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/home/ChildFragment;", "Landroidx/fragment/app/K;", "<init>", "()V", "", "transit", "", "enter", "nextAnim", "Landroid/view/animation/Animation;", "onCreateAnimation", "(IZI)Landroid/view/animation/Animation;", "shouldFadeView", "Z", "getShouldFadeView", "()Z", "setShouldFadeView", "(Z)V", "Landroid/view/animation/AlphaAnimation;", "dummyAnimation", "Landroid/view/animation/AlphaAnimation;", "ui-avisa_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public class ChildFragment extends K {
|
||||
private final AlphaAnimation dummyAnimation;
|
||||
private boolean shouldFadeView;
|
||||
|
||||
public ChildFragment() {
|
||||
AlphaAnimation alphaAnimation = new AlphaAnimation(1.0f, 1.0f);
|
||||
alphaAnimation.setDuration(1000L);
|
||||
this.dummyAnimation = alphaAnimation;
|
||||
}
|
||||
|
||||
public boolean getShouldFadeView() {
|
||||
return this.shouldFadeView;
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public Animation onCreateAnimation(int transit, boolean enter, int nextAnim) {
|
||||
return (!getShouldFadeView() || enter || getParentFragment() == null) ? super.onCreateAnimation(transit, enter, nextAnim) : this.dummyAnimation;
|
||||
}
|
||||
|
||||
public void setShouldFadeView(boolean z3) {
|
||||
this.shouldFadeView = z3;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import android.content.ContextWrapper;
|
||||
import android.os.Bundle;
|
||||
import android.view.LayoutInflater;
|
||||
import androidx.fragment.app.K;
|
||||
import androidx.lifecycle.y0;
|
||||
import dagger.hilt.android.flags.FragmentGetContextFix;
|
||||
import dagger.hilt.android.internal.lifecycle.DefaultViewModelFactories;
|
||||
import dagger.hilt.android.internal.managers.FragmentComponentManager;
|
||||
import dagger.hilt.internal.GeneratedComponentManagerHolder;
|
||||
import dagger.hilt.internal.Preconditions;
|
||||
import dagger.hilt.internal.UnsafeCasts;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public abstract class Hilt_AvisaHomeFragment extends K implements GeneratedComponentManagerHolder {
|
||||
private ContextWrapper componentContext;
|
||||
private volatile FragmentComponentManager componentManager;
|
||||
private final Object componentManagerLock;
|
||||
private boolean disableGetContextFix;
|
||||
private boolean injected;
|
||||
|
||||
public Hilt_AvisaHomeFragment() {
|
||||
this.componentManagerLock = new Object();
|
||||
this.injected = false;
|
||||
}
|
||||
|
||||
private void initializeComponentContext() {
|
||||
if (this.componentContext == null) {
|
||||
this.componentContext = FragmentComponentManager.createContextWrapper(super.getContext(), this);
|
||||
this.disableGetContextFix = FragmentGetContextFix.isFragmentGetContextFixDisabled(super.getContext());
|
||||
}
|
||||
}
|
||||
|
||||
public FragmentComponentManager createComponentManager() {
|
||||
return new FragmentComponentManager(this);
|
||||
}
|
||||
|
||||
@Override // dagger.hilt.internal.GeneratedComponentManager
|
||||
public final Object generatedComponent() {
|
||||
return componentManager().generatedComponent();
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public Context getContext() {
|
||||
if (super.getContext() == null && !this.disableGetContextFix) {
|
||||
return null;
|
||||
}
|
||||
initializeComponentContext();
|
||||
return this.componentContext;
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K, androidx.lifecycle.InterfaceC0200v
|
||||
public y0 getDefaultViewModelProviderFactory() {
|
||||
return DefaultViewModelFactories.getFragmentFactory(this, super.getDefaultViewModelProviderFactory());
|
||||
}
|
||||
|
||||
public void inject() {
|
||||
if (this.injected) {
|
||||
return;
|
||||
}
|
||||
this.injected = true;
|
||||
((AvisaHomeFragment_GeneratedInjector) generatedComponent()).injectAvisaHomeFragment((AvisaHomeFragment) UnsafeCasts.unsafeCast(this));
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public void onAttach(Context context) {
|
||||
super.onAttach(context);
|
||||
initializeComponentContext();
|
||||
inject();
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public LayoutInflater onGetLayoutInflater(Bundle bundle) {
|
||||
LayoutInflater onGetLayoutInflater = super.onGetLayoutInflater(bundle);
|
||||
return onGetLayoutInflater.cloneInContext(FragmentComponentManager.createContextWrapper(onGetLayoutInflater, this));
|
||||
}
|
||||
|
||||
@Override // dagger.hilt.internal.GeneratedComponentManagerHolder
|
||||
public final FragmentComponentManager componentManager() {
|
||||
if (this.componentManager == null) {
|
||||
synchronized (this.componentManagerLock) {
|
||||
try {
|
||||
if (this.componentManager == null) {
|
||||
this.componentManager = createComponentManager();
|
||||
}
|
||||
} finally {
|
||||
}
|
||||
}
|
||||
}
|
||||
return this.componentManager;
|
||||
}
|
||||
|
||||
public Hilt_AvisaHomeFragment(int i) {
|
||||
super(i);
|
||||
this.componentManagerLock = new Object();
|
||||
this.injected = false;
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public void onAttach(Activity activity) {
|
||||
super.onAttach(activity);
|
||||
ContextWrapper contextWrapper = this.componentContext;
|
||||
Preconditions.checkState(contextWrapper == null || FragmentComponentManager.findActivity(contextWrapper) == activity, "onAttach called multiple times with different Context! Hilt Fragments should not be retained.", new Object[0]);
|
||||
initializeComponentContext();
|
||||
inject();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,241 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.TextView;
|
||||
import androidx.recyclerview.widget.AbstractC0220h0;
|
||||
import androidx.recyclerview.widget.I0;
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.Incidence;
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.IncidenceStation;
|
||||
import com.adif.elcanomovil.domain.entities.avisa.incidence.IncidenceStatus;
|
||||
import com.adif.elcanomovil.uiAvisa.R;
|
||||
import com.adif.elcanomovil.uiAvisa.databinding.ItemIssueListBinding;
|
||||
import com.adif.elcanomovil.uiAvisa.utils.adapter.IncidenceHelper;
|
||||
import com.google.android.gms.common.internal.ServiceSpecificExtraArgs;
|
||||
import d1.C0309c;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import kotlin.Lazy;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000H\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0005\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0002\n\u0002\b\b\n\u0002\u0010!\n\u0002\b\u0005\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001:\u0002\"#B\u0017\u0012\u0006\u0010\u0004\u001a\u00020\u0003\u0012\u0006\u0010\u0006\u001a\u00020\u0005¢\u0006\u0004\b\u0007\u0010\bJ\u001f\u0010\r\u001a\u00020\u00022\u0006\u0010\n\u001a\u00020\t2\u0006\u0010\f\u001a\u00020\u000bH\u0016¢\u0006\u0004\b\r\u0010\u000eJ\u000f\u0010\u000f\u001a\u00020\u000bH\u0016¢\u0006\u0004\b\u000f\u0010\u0010J%\u0010\u0017\u001a\u00020\u00162\f\u0010\u0013\u001a\b\u0012\u0004\u0012\u00020\u00120\u00112\b\b\u0002\u0010\u0015\u001a\u00020\u0014¢\u0006\u0004\b\u0017\u0010\u0018J\u001f\u0010\u001b\u001a\u00020\u00162\u0006\u0010\u0019\u001a\u00020\u00022\u0006\u0010\u001a\u001a\u00020\u000bH\u0016¢\u0006\u0004\b\u001b\u0010\u001cR\u0014\u0010\u0004\u001a\u00020\u00038\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0004\u0010\u001dR\u0014\u0010\u0006\u001a\u00020\u00058\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0006\u0010\u001eR\u001a\u0010 \u001a\b\u0012\u0004\u0012\u00020\u00120\u001f8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b \u0010!¨\u0006$"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/home/IssuesAdapter;", "Landroidx/recyclerview/widget/h0;", "Lcom/adif/elcanomovil/uiAvisa/components/home/IssuesAdapter$IssueViewHolder;", "Lcom/adif/elcanomovil/uiAvisa/components/home/IssuesAdapter$OnIssueListFragmentInteractionListener;", ServiceSpecificExtraArgs.CastExtraArgs.LISTENER, "Landroid/app/Activity;", "context", "<init>", "(Lcom/adif/elcanomovil/uiAvisa/components/home/IssuesAdapter$OnIssueListFragmentInteractionListener;Landroid/app/Activity;)V", "Landroid/view/ViewGroup;", "parent", "", "viewType", "onCreateViewHolder", "(Landroid/view/ViewGroup;I)Lcom/adif/elcanomovil/uiAvisa/components/home/IssuesAdapter$IssueViewHolder;", "getItemCount", "()I", "", "Lcom/adif/elcanomovil/domain/entities/avisa/incidence/IncidenceStation;", "issues", "", "replacing", "", "updateIssues", "(Ljava/util/List;Z)V", "holder", "position", "onBindViewHolder", "(Lcom/adif/elcanomovil/uiAvisa/components/home/IssuesAdapter$IssueViewHolder;I)V", "Lcom/adif/elcanomovil/uiAvisa/components/home/IssuesAdapter$OnIssueListFragmentInteractionListener;", "Landroid/app/Activity;", "", "issuesList", "Ljava/util/List;", "IssueViewHolder", "OnIssueListFragmentInteractionListener", "ui-avisa_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class IssuesAdapter extends AbstractC0220h0 {
|
||||
private final Activity context;
|
||||
private final List<IncidenceStation> issuesList;
|
||||
private final OnIssueListFragmentInteractionListener listener;
|
||||
|
||||
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\n\u0018\u00002\u00020\u0001B\u000f\u0012\u0006\u0010\u0003\u001a\u00020\u0002¢\u0006\u0004\b\u0004\u0010\u0005J\u000f\u0010\u0007\u001a\u00020\u0006H\u0002¢\u0006\u0004\b\u0007\u0010\bJ\u001d\u0010\r\u001a\u00020\u00062\u0006\u0010\n\u001a\u00020\t2\u0006\u0010\f\u001a\u00020\u000b¢\u0006\u0004\b\r\u0010\u000eR\u0014\u0010\u0003\u001a\u00020\u00028\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0003\u0010\u000fR\"\u0010\n\u001a\u00020\t8\u0006@\u0006X\u0086.¢\u0006\u0012\n\u0004\b\n\u0010\u0010\u001a\u0004\b\u0011\u0010\u0012\"\u0004\b\u0013\u0010\u0014¨\u0006\u0015"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/home/IssuesAdapter$IssueViewHolder;", "Landroidx/recyclerview/widget/I0;", "Lcom/adif/elcanomovil/uiAvisa/databinding/ItemIssueListBinding;", "binding", "<init>", "(Lcom/adif/elcanomovil/uiAvisa/databinding/ItemIssueListBinding;)V", "", "populateView", "()V", "Lcom/adif/elcanomovil/domain/entities/avisa/incidence/IncidenceStation;", "item", "Lcom/adif/elcanomovil/uiAvisa/components/home/IssuesAdapter$OnIssueListFragmentInteractionListener;", ServiceSpecificExtraArgs.CastExtraArgs.LISTENER, "bind", "(Lcom/adif/elcanomovil/domain/entities/avisa/incidence/IncidenceStation;Lcom/adif/elcanomovil/uiAvisa/components/home/IssuesAdapter$OnIssueListFragmentInteractionListener;)V", "Lcom/adif/elcanomovil/uiAvisa/databinding/ItemIssueListBinding;", "Lcom/adif/elcanomovil/domain/entities/avisa/incidence/IncidenceStation;", "getItem", "()Lcom/adif/elcanomovil/domain/entities/avisa/incidence/IncidenceStation;", "setItem", "(Lcom/adif/elcanomovil/domain/entities/avisa/incidence/IncidenceStation;)V", "ui-avisa_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public static final class IssueViewHolder extends I0 {
|
||||
private final ItemIssueListBinding binding;
|
||||
public IncidenceStation item;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public /* synthetic */ class WhenMappings {
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
||||
|
||||
static {
|
||||
int[] iArr = new int[IncidenceStatus.values().length];
|
||||
try {
|
||||
iArr[IncidenceStatus.STATUS_TYPE_IN_PROGRESS.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused) {
|
||||
}
|
||||
try {
|
||||
iArr[IncidenceStatus.STATUS_TYPE_SOLVED.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused2) {
|
||||
}
|
||||
$EnumSwitchMapping$0 = iArr;
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public IssueViewHolder(ItemIssueListBinding binding) {
|
||||
super(binding.getRoot());
|
||||
Intrinsics.checkNotNullParameter(binding, "binding");
|
||||
this.binding = binding;
|
||||
}
|
||||
|
||||
public static final void bind$lambda$0(OnIssueListFragmentInteractionListener listener, IncidenceStation item, View view) {
|
||||
Intrinsics.checkNotNullParameter(listener, "$listener");
|
||||
Intrinsics.checkNotNullParameter(item, "$item");
|
||||
listener.onIssueInteraction(item.getIncidence());
|
||||
}
|
||||
|
||||
private final void populateView() {
|
||||
Unit unit;
|
||||
String str;
|
||||
this.binding.itemId.setText(getItem().getIncidence().getIncidenceCode());
|
||||
this.binding.itemStation.setText(getItem().getAvisaStation().getName());
|
||||
TextView textView = this.binding.itemDescriptionDate;
|
||||
StringBuilder sb = new StringBuilder();
|
||||
Lazy lazy = C0309c.f6168a;
|
||||
sb.append(m3.d.o().format(getItem().getIncidence().getCreatedTime()));
|
||||
sb.append('.');
|
||||
textView.setText(sb.toString());
|
||||
this.binding.itemDescription.setText(getItem().getIncidence().getDescription());
|
||||
IncidenceStatus invoke = IncidenceStatus.INSTANCE.invoke(getItem().getIncidence().getStatusTypeId());
|
||||
int i = invoke == null ? -1 : WhenMappings.$EnumSwitchMapping$0[invoke.ordinal()];
|
||||
Unit unit2 = null;
|
||||
String str2 = null;
|
||||
Unit unit3 = null;
|
||||
if (i == 1) {
|
||||
Date estimatedDateTo = getItem().getIncidence().getEstimatedDateTo();
|
||||
if (estimatedDateTo != null) {
|
||||
this.binding.itemFixingTitle.setText(this.itemView.getContext().getString(R.string.avisa_issue_estimated_date) + ' ' + m3.d.o().format(estimatedDateTo));
|
||||
unit2 = Unit.INSTANCE;
|
||||
}
|
||||
if (unit2 == null) {
|
||||
this.binding.itemFixingTitle.setText(this.itemView.getContext().getString(R.string.avisa_issue_estimated_date));
|
||||
}
|
||||
TextView textView2 = this.binding.itemStatus;
|
||||
IncidenceHelper.Companion companion = IncidenceHelper.INSTANCE;
|
||||
Context context = this.itemView.getContext();
|
||||
Intrinsics.checkNotNullExpressionValue(context, "getContext(...)");
|
||||
textView2.setText(companion.getStringResource(context, invoke));
|
||||
this.binding.itemFixingTitle.setVisibility(0);
|
||||
this.binding.itemStatus.setBackgroundColor(D.h.getColor(this.itemView.getContext(), R.color.colour_issue_ongoing));
|
||||
this.binding.itemStatus.setTextColor(D.h.getColor(this.itemView.getContext(), R.color.white));
|
||||
return;
|
||||
}
|
||||
if (i == 2) {
|
||||
this.binding.itemFixingTitle.setVisibility(4);
|
||||
this.binding.itemStatus.setBackgroundColor(D.h.getColor(this.itemView.getContext(), R.color.colour_issue_solved));
|
||||
this.binding.itemStatus.setTextColor(D.h.getColor(this.itemView.getContext(), R.color.white));
|
||||
Date solvedDate = getItem().getIncidence().getSolvedDate();
|
||||
if (solvedDate != null) {
|
||||
StringBuilder sb2 = new StringBuilder();
|
||||
IncidenceHelper.Companion companion2 = IncidenceHelper.INSTANCE;
|
||||
Context context2 = this.itemView.getContext();
|
||||
Intrinsics.checkNotNullExpressionValue(context2, "getContext(...)");
|
||||
sb2.append(companion2.getStringResource(context2, invoke));
|
||||
sb2.append('\n');
|
||||
sb2.append(m3.d.o().format(solvedDate));
|
||||
this.binding.itemStatus.setText(sb2.toString());
|
||||
unit3 = Unit.INSTANCE;
|
||||
}
|
||||
if (unit3 == null) {
|
||||
TextView textView3 = this.binding.itemStatus;
|
||||
IncidenceHelper.Companion companion3 = IncidenceHelper.INSTANCE;
|
||||
Context context3 = this.itemView.getContext();
|
||||
Intrinsics.checkNotNullExpressionValue(context3, "getContext(...)");
|
||||
textView3.setText(companion3.getStringResource(context3, invoke));
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
this.binding.itemFixingTitle.setVisibility(4);
|
||||
this.binding.itemStatus.setBackgroundColor(D.h.getColor(this.itemView.getContext(), R.color.colour_issue_canceled));
|
||||
this.binding.itemStatus.setTextColor(D.h.getColor(this.itemView.getContext(), R.color.white));
|
||||
Date solvedDate2 = getItem().getIncidence().getSolvedDate();
|
||||
if (solvedDate2 != null) {
|
||||
StringBuilder sb3 = new StringBuilder();
|
||||
if (invoke != null) {
|
||||
IncidenceHelper.Companion companion4 = IncidenceHelper.INSTANCE;
|
||||
Context context4 = this.itemView.getContext();
|
||||
Intrinsics.checkNotNullExpressionValue(context4, "getContext(...)");
|
||||
str = companion4.getStringResource(context4, invoke);
|
||||
} else {
|
||||
str = null;
|
||||
}
|
||||
sb3.append(str);
|
||||
sb3.append('\n');
|
||||
sb3.append(m3.d.o().format(solvedDate2));
|
||||
this.binding.itemStatus.setText(sb3.toString());
|
||||
unit = Unit.INSTANCE;
|
||||
} else {
|
||||
unit = null;
|
||||
}
|
||||
if (unit == null) {
|
||||
TextView textView4 = this.binding.itemStatus;
|
||||
if (invoke != null) {
|
||||
IncidenceHelper.Companion companion5 = IncidenceHelper.INSTANCE;
|
||||
Context context5 = this.itemView.getContext();
|
||||
Intrinsics.checkNotNullExpressionValue(context5, "getContext(...)");
|
||||
str2 = companion5.getStringResource(context5, invoke);
|
||||
}
|
||||
textView4.setText(str2);
|
||||
}
|
||||
}
|
||||
|
||||
public final void bind(IncidenceStation item, OnIssueListFragmentInteractionListener r4) {
|
||||
Intrinsics.checkNotNullParameter(item, "item");
|
||||
Intrinsics.checkNotNullParameter(r4, "listener");
|
||||
setItem(item);
|
||||
populateView();
|
||||
this.itemView.setOnClickListener(new G2.l(4, r4, item));
|
||||
}
|
||||
|
||||
public final IncidenceStation getItem() {
|
||||
IncidenceStation incidenceStation = this.item;
|
||||
if (incidenceStation != null) {
|
||||
return incidenceStation;
|
||||
}
|
||||
Intrinsics.throwUninitializedPropertyAccessException("item");
|
||||
return null;
|
||||
}
|
||||
|
||||
public final void setItem(IncidenceStation incidenceStation) {
|
||||
Intrinsics.checkNotNullParameter(incidenceStation, "<set-?>");
|
||||
this.item = incidenceStation;
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\bf\u0018\u00002\u00020\u0001J\u0010\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u0005H&¨\u0006\u0006"}, d2 = {"Lcom/adif/elcanomovil/uiAvisa/components/home/IssuesAdapter$OnIssueListFragmentInteractionListener;", "", "onIssueInteraction", "", "issue", "Lcom/adif/elcanomovil/domain/entities/avisa/incidence/Incidence;", "ui-avisa_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public interface OnIssueListFragmentInteractionListener {
|
||||
void onIssueInteraction(Incidence issue);
|
||||
}
|
||||
|
||||
public IssuesAdapter(OnIssueListFragmentInteractionListener listener, Activity context) {
|
||||
Intrinsics.checkNotNullParameter(listener, "listener");
|
||||
Intrinsics.checkNotNullParameter(context, "context");
|
||||
this.listener = listener;
|
||||
this.context = context;
|
||||
this.issuesList = new ArrayList();
|
||||
}
|
||||
|
||||
public static /* synthetic */ void updateIssues$default(IssuesAdapter issuesAdapter, List list, boolean z3, int i, Object obj) {
|
||||
if ((i & 2) != 0) {
|
||||
z3 = false;
|
||||
}
|
||||
issuesAdapter.updateIssues(list, z3);
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0220h0
|
||||
public int getItemCount() {
|
||||
return this.issuesList.size();
|
||||
}
|
||||
|
||||
public final void updateIssues(List<IncidenceStation> issues, boolean replacing) {
|
||||
Intrinsics.checkNotNullParameter(issues, "issues");
|
||||
if (replacing) {
|
||||
this.issuesList.clear();
|
||||
this.issuesList.addAll(issues);
|
||||
} else {
|
||||
this.issuesList.addAll(issues);
|
||||
}
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0220h0
|
||||
public void onBindViewHolder(IssueViewHolder holder, int position) {
|
||||
Intrinsics.checkNotNullParameter(holder, "holder");
|
||||
holder.bind(this.issuesList.get(position), this.listener);
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0220h0
|
||||
public IssueViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
|
||||
Intrinsics.checkNotNullParameter(parent, "parent");
|
||||
ItemIssueListBinding inflate = ItemIssueListBinding.inflate(LayoutInflater.from(this.context), parent, false);
|
||||
Intrinsics.checkNotNullExpressionValue(inflate, "inflate(...)");
|
||||
return new IssueViewHolder(inflate);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
import androidx.lifecycle.Y;
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import java.util.List;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final /* synthetic */ class a implements Y {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ int f4896a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ AvisaHomeFragment f4897b;
|
||||
|
||||
public /* synthetic */ a(AvisaHomeFragment avisaHomeFragment, int i) {
|
||||
this.f4896a = i;
|
||||
this.f4897b = avisaHomeFragment;
|
||||
}
|
||||
|
||||
@Override // androidx.lifecycle.Y
|
||||
public final void onChanged(Object obj) {
|
||||
int i = this.f4896a;
|
||||
AvisaHomeFragment avisaHomeFragment = this.f4897b;
|
||||
switch (i) {
|
||||
case 0:
|
||||
AvisaHomeFragment.g(avisaHomeFragment, (AsyncResult) obj);
|
||||
return;
|
||||
case 1:
|
||||
AvisaHomeFragment.j(avisaHomeFragment, (List) obj);
|
||||
return;
|
||||
default:
|
||||
AvisaHomeFragment.h(avisaHomeFragment, (Boolean) obj);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
import C.w;
|
||||
import android.os.Bundle;
|
||||
import com.adif.elcanomovil.commonNavGraph.R;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.NavArguments;
|
||||
import o0.F;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class c implements F {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final int f4900a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final int f4901b = R.id.to_issueDetailsFragment;
|
||||
|
||||
public c(int i) {
|
||||
this.f4900a = i;
|
||||
}
|
||||
|
||||
public final boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
return (obj instanceof c) && this.f4900a == ((c) obj).f4900a;
|
||||
}
|
||||
|
||||
@Override // o0.F
|
||||
public final int getActionId() {
|
||||
return this.f4901b;
|
||||
}
|
||||
|
||||
@Override // o0.F
|
||||
public final Bundle getArguments() {
|
||||
Bundle bundle = new Bundle();
|
||||
bundle.putInt(NavArguments.ARG_AVISA_INCIDENCE_ID, this.f4900a);
|
||||
return bundle;
|
||||
}
|
||||
|
||||
public final int hashCode() {
|
||||
return Integer.hashCode(this.f4900a);
|
||||
}
|
||||
|
||||
public final String toString() {
|
||||
return w.p(new StringBuilder("ToIssueDetailsFragment(argIdIncidence="), this.f4900a, ')');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import com.adif.elcanomovil.domain.entities.utils.Status;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class d implements FlowCollector {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public static final d f4902a = new Object();
|
||||
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
public final Object emit(Object obj, Continuation continuation) {
|
||||
AsyncResult asyncResult = (AsyncResult) obj;
|
||||
if (asyncResult.getStatus() != Status.SUCCESS && asyncResult.getStatus() == Status.ERROR) {
|
||||
Intrinsics.checkNotNullParameter("FAIL Load Categoories", "message");
|
||||
t3.c.f8551a.e("FAIL Load Categoories", new Object[0]);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class e extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4903a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ AvisaHomeViewModel f4904b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public e(AvisaHomeViewModel avisaHomeViewModel, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4904b = avisaHomeViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new e(this.f4904b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((e) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:13:0x003a, code lost:
|
||||
|
||||
if (((kotlinx.coroutines.flow.Flow) r5).collect(r1, r4) == r0) goto L15;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:14:0x003c, code lost:
|
||||
|
||||
return r0;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:16:0x002d, code lost:
|
||||
|
||||
if (r5 == r0) goto L15;
|
||||
*/
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object invokeSuspend(java.lang.Object r5) {
|
||||
/*
|
||||
r4 = this;
|
||||
java.lang.Object r0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r1 = r4.f4903a
|
||||
r2 = 2
|
||||
r3 = 1
|
||||
if (r1 == 0) goto L1e
|
||||
if (r1 == r3) goto L1a
|
||||
if (r1 != r2) goto L12
|
||||
kotlin.ResultKt.throwOnFailure(r5)
|
||||
goto L3d
|
||||
L12:
|
||||
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
|
||||
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r4.<init>(r5)
|
||||
throw r4
|
||||
L1a:
|
||||
kotlin.ResultKt.throwOnFailure(r5)
|
||||
goto L30
|
||||
L1e:
|
||||
kotlin.ResultKt.throwOnFailure(r5)
|
||||
com.adif.elcanomovil.uiAvisa.components.home.AvisaHomeViewModel r5 = r4.f4904b
|
||||
com.adif.elcanomovil.domain.usecases.avisa.station.GetAvisaStationCategoriesUseCase r5 = com.adif.elcanomovil.uiAvisa.components.home.AvisaHomeViewModel.access$getGetAvisaStationCategoriesUseCase$p(r5)
|
||||
r4.f4903a = r3
|
||||
java.lang.Object r5 = r5.invoke(r4)
|
||||
if (r5 != r0) goto L30
|
||||
goto L3c
|
||||
L30:
|
||||
kotlinx.coroutines.flow.Flow r5 = (kotlinx.coroutines.flow.Flow) r5
|
||||
com.adif.elcanomovil.uiAvisa.components.home.d r1 = com.adif.elcanomovil.uiAvisa.components.home.d.f4902a
|
||||
r4.f4903a = r2
|
||||
java.lang.Object r4 = r5.collect(r1, r4)
|
||||
if (r4 != r0) goto L3d
|
||||
L3c:
|
||||
return r0
|
||||
L3d:
|
||||
kotlin.Unit r4 = kotlin.Unit.INSTANCE
|
||||
return r4
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.uiAvisa.components.home.e.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.BuildersKt;
|
||||
import kotlinx.coroutines.CoroutineDispatcher;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.Dispatchers;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class f extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4905a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ AvisaHomeViewModel f4906b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public f(AvisaHomeViewModel avisaHomeViewModel, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4906b = avisaHomeViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new f(this.f4906b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((f) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f4905a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
CoroutineDispatcher io = Dispatchers.getIO();
|
||||
e eVar = new e(this.f4906b, null);
|
||||
this.f4905a = 1;
|
||||
if (BuildersKt.withContext(io, eVar, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
import androidx.lifecycle.W;
|
||||
import androidx.lifecycle.X;
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import com.adif.elcanomovil.domain.entities.utils.Status;
|
||||
import java.util.List;
|
||||
import kotlin.Unit;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.Boxing;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class g implements FlowCollector {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ int f4907a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ AvisaHomeViewModel f4908b;
|
||||
|
||||
public /* synthetic */ g(AvisaHomeViewModel avisaHomeViewModel, int i) {
|
||||
this.f4907a = i;
|
||||
this.f4908b = avisaHomeViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
public final Object emit(Object obj, Continuation continuation) {
|
||||
W w3;
|
||||
W w4;
|
||||
X x3;
|
||||
W w5;
|
||||
X x4;
|
||||
switch (this.f4907a) {
|
||||
case 0:
|
||||
w3 = this.f4908b._userListIncidences;
|
||||
w3.k((AsyncResult) obj);
|
||||
return Unit.INSTANCE;
|
||||
default:
|
||||
AsyncResult asyncResult = (AsyncResult) obj;
|
||||
Status status = asyncResult.getStatus();
|
||||
Status status2 = Status.SUCCESS;
|
||||
AvisaHomeViewModel avisaHomeViewModel = this.f4908b;
|
||||
if (status == status2) {
|
||||
w5 = avisaHomeViewModel._stationsList;
|
||||
List list = (List) asyncResult.getData();
|
||||
if (list == null) {
|
||||
list = CollectionsKt.emptyList();
|
||||
}
|
||||
w5.k(list);
|
||||
x4 = avisaHomeViewModel.canContinue;
|
||||
x4.k(Boxing.boxBoolean(true));
|
||||
} else if (asyncResult.getStatus() == Status.ERROR) {
|
||||
w4 = avisaHomeViewModel._stationsList;
|
||||
w4.k(CollectionsKt.emptyList());
|
||||
x3 = avisaHomeViewModel.canContinue;
|
||||
x3.k(Boxing.boxBoolean(false));
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class h extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4909a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ AvisaHomeViewModel f4910b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public h(AvisaHomeViewModel avisaHomeViewModel, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4910b = avisaHomeViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new h(this.f4910b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((h) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:13:0x003e, code lost:
|
||||
|
||||
if (((kotlinx.coroutines.flow.Flow) r6).collect(r1, r5) == r0) goto L15;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:14:0x0040, code lost:
|
||||
|
||||
return r0;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:16:0x002d, code lost:
|
||||
|
||||
if (r6 == r0) goto L15;
|
||||
*/
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object invokeSuspend(java.lang.Object r6) {
|
||||
/*
|
||||
r5 = this;
|
||||
java.lang.Object r0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r1 = r5.f4909a
|
||||
com.adif.elcanomovil.uiAvisa.components.home.AvisaHomeViewModel r2 = r5.f4910b
|
||||
r3 = 2
|
||||
r4 = 1
|
||||
if (r1 == 0) goto L20
|
||||
if (r1 == r4) goto L1c
|
||||
if (r1 != r3) goto L14
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L41
|
||||
L14:
|
||||
java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
|
||||
java.lang.String r6 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r5.<init>(r6)
|
||||
throw r5
|
||||
L1c:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L30
|
||||
L20:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
com.adif.elcanomovil.domain.usecases.avisa.incidence.GetIncidencesUseCase r6 = com.adif.elcanomovil.uiAvisa.components.home.AvisaHomeViewModel.access$getGetIncidencesUseCase$p(r2)
|
||||
r5.f4909a = r4
|
||||
java.lang.Object r6 = r6.invoke(r5)
|
||||
if (r6 != r0) goto L30
|
||||
goto L40
|
||||
L30:
|
||||
kotlinx.coroutines.flow.Flow r6 = (kotlinx.coroutines.flow.Flow) r6
|
||||
com.adif.elcanomovil.uiAvisa.components.home.g r1 = new com.adif.elcanomovil.uiAvisa.components.home.g
|
||||
r4 = 0
|
||||
r1.<init>(r2, r4)
|
||||
r5.f4909a = r3
|
||||
java.lang.Object r5 = r6.collect(r1, r5)
|
||||
if (r5 != r0) goto L41
|
||||
L40:
|
||||
return r0
|
||||
L41:
|
||||
kotlin.Unit r5 = kotlin.Unit.INSTANCE
|
||||
return r5
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.uiAvisa.components.home.h.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.BuildersKt;
|
||||
import kotlinx.coroutines.CoroutineDispatcher;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.Dispatchers;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class i extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4911a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ AvisaHomeViewModel f4912b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public i(AvisaHomeViewModel avisaHomeViewModel, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4912b = avisaHomeViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new i(this.f4912b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((i) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f4911a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
CoroutineDispatcher io = Dispatchers.getIO();
|
||||
h hVar = new h(this.f4912b, null);
|
||||
this.f4911a = 1;
|
||||
if (BuildersKt.withContext(io, hVar, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class j extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4913a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ AvisaHomeViewModel f4914b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public j(AvisaHomeViewModel avisaHomeViewModel, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4914b = avisaHomeViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new j(this.f4914b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((j) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:13:0x003e, code lost:
|
||||
|
||||
if (((kotlinx.coroutines.flow.Flow) r6).collect(r1, r5) == r0) goto L15;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:14:0x0040, code lost:
|
||||
|
||||
return r0;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:16:0x002d, code lost:
|
||||
|
||||
if (r6 == r0) goto L15;
|
||||
*/
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object invokeSuspend(java.lang.Object r6) {
|
||||
/*
|
||||
r5 = this;
|
||||
java.lang.Object r0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r1 = r5.f4913a
|
||||
com.adif.elcanomovil.uiAvisa.components.home.AvisaHomeViewModel r2 = r5.f4914b
|
||||
r3 = 2
|
||||
r4 = 1
|
||||
if (r1 == 0) goto L20
|
||||
if (r1 == r4) goto L1c
|
||||
if (r1 != r3) goto L14
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L41
|
||||
L14:
|
||||
java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
|
||||
java.lang.String r6 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r5.<init>(r6)
|
||||
throw r5
|
||||
L1c:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L30
|
||||
L20:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
com.adif.elcanomovil.domain.usecases.avisa.station.GetAvisaStationsUseCase r6 = com.adif.elcanomovil.uiAvisa.components.home.AvisaHomeViewModel.access$getGetStationsUseCase$p(r2)
|
||||
r5.f4913a = r4
|
||||
java.lang.Object r6 = r6.invoke(r5)
|
||||
if (r6 != r0) goto L30
|
||||
goto L40
|
||||
L30:
|
||||
kotlinx.coroutines.flow.Flow r6 = (kotlinx.coroutines.flow.Flow) r6
|
||||
com.adif.elcanomovil.uiAvisa.components.home.g r1 = new com.adif.elcanomovil.uiAvisa.components.home.g
|
||||
r4 = 1
|
||||
r1.<init>(r2, r4)
|
||||
r5.f4913a = r3
|
||||
java.lang.Object r5 = r6.collect(r1, r5)
|
||||
if (r5 != r0) goto L41
|
||||
L40:
|
||||
return r0
|
||||
L41:
|
||||
kotlin.Unit r5 = kotlin.Unit.INSTANCE
|
||||
return r5
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.uiAvisa.components.home.j.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.BuildersKt;
|
||||
import kotlinx.coroutines.CoroutineDispatcher;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.Dispatchers;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class k extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4915a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ AvisaHomeViewModel f4916b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public k(AvisaHomeViewModel avisaHomeViewModel, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4916b = avisaHomeViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new k(this.f4916b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((k) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f4915a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
CoroutineDispatcher io = Dispatchers.getIO();
|
||||
j jVar = new j(this.f4916b, null);
|
||||
this.f4915a = 1;
|
||||
if (BuildersKt.withContext(io, jVar, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
import android.content.Context;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.AlertAction;
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.AlertActions;
|
||||
import com.adif.elcanomovil.uiAvisa.R;
|
||||
import com.adif.elcanomovil.uiAvisa.components.details.IssueDetailsViewModelKt;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Lambda;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class l extends Lambda implements Function0 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ AvisaHomeViewModel f4917a;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public l(AvisaHomeViewModel avisaHomeViewModel) {
|
||||
super(0);
|
||||
this.f4917a = avisaHomeViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final Object invoke() {
|
||||
Context context;
|
||||
context = this.f4917a.context;
|
||||
String string = context.getString(R.string.stations_avisa_dialog_positive);
|
||||
Intrinsics.checkNotNullExpressionValue(string, "getString(...)");
|
||||
return new AlertActions(IssueDetailsViewModelKt.AVISA_GENERIC_ERROR, new AlertAction(string, AlertAction.Style.POSITIVE));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
import com.adif.elcanomovil.uiAvisa.components.authenticator.AuthenticationProvider;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class m extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ AvisaHomeViewModel f4918a;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public m(AvisaHomeViewModel avisaHomeViewModel, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4918a = avisaHomeViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new m(this.f4918a, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((m) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
AuthenticationProvider authenticationProvider;
|
||||
IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
ResultKt.throwOnFailure(obj);
|
||||
AvisaHomeViewModel avisaHomeViewModel = this.f4918a;
|
||||
authenticationProvider = avisaHomeViewModel.authProvider;
|
||||
authenticationProvider.handleAuthentication(new J0.e(avisaHomeViewModel, 7));
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.adif.elcanomovil.uiAvisa.components.home;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public abstract class n {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public static final AvisaHomeViewModel_HiltModules_KeyModule_ProvideFactory f4919a = new AvisaHomeViewModel_HiltModules_KeyModule_ProvideFactory();
|
||||
}
|
||||
Reference in New Issue
Block a user