Initial version -- added millennium read funcionality
This commit is contained in:
+142
@@ -0,0 +1,142 @@
|
||||
package com.sistemasolton.itranvias.home.presentation.stopdetail;
|
||||
|
||||
import androidx.compose.foundation.layout.Arrangement;
|
||||
import androidx.compose.foundation.layout.ColumnKt;
|
||||
import androidx.compose.foundation.layout.ColumnScopeInstance;
|
||||
import androidx.compose.foundation.layout.PaddingKt;
|
||||
import androidx.compose.foundation.layout.SizeKt;
|
||||
import androidx.compose.foundation.layout.SpacerKt;
|
||||
import androidx.compose.foundation.lazy.LazyItemScope;
|
||||
import androidx.compose.material.icons.Icons;
|
||||
import androidx.compose.material.icons.outlined.DirectionsBusKt;
|
||||
import androidx.compose.material3.IconKt;
|
||||
import androidx.compose.material3.TextKt;
|
||||
import androidx.compose.runtime.Applier;
|
||||
import androidx.compose.runtime.ComposablesKt;
|
||||
import androidx.compose.runtime.Composer;
|
||||
import androidx.compose.runtime.ComposerKt;
|
||||
import androidx.compose.runtime.CompositionLocalMap;
|
||||
import androidx.compose.runtime.Updater;
|
||||
import androidx.compose.ui.Alignment;
|
||||
import androidx.compose.ui.ComposedModifierKt;
|
||||
import androidx.compose.ui.Modifier;
|
||||
import androidx.compose.ui.graphics.Color;
|
||||
import androidx.compose.ui.layout.MeasurePolicy;
|
||||
import androidx.compose.ui.node.ComposeUiNode;
|
||||
import androidx.compose.ui.semantics.SemanticsModifierKt;
|
||||
import androidx.compose.ui.semantics.SemanticsPropertiesKt;
|
||||
import androidx.compose.ui.semantics.SemanticsPropertyReceiver;
|
||||
import androidx.compose.ui.text.TextLayoutResult;
|
||||
import androidx.compose.ui.text.TextStyle;
|
||||
import androidx.compose.ui.text.font.FontFamily;
|
||||
import androidx.compose.ui.text.font.FontStyle;
|
||||
import androidx.compose.ui.text.font.FontWeight;
|
||||
import androidx.compose.ui.text.style.TextAlign;
|
||||
import androidx.compose.ui.text.style.TextDecoration;
|
||||
import androidx.compose.ui.unit.Dp;
|
||||
import itranvias.composeapp.generated.resources.Res;
|
||||
import itranvias.composeapp.generated.resources.String0_commonMainKt;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.functions.Function3;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import org.jetbrains.compose.resources.StringResourcesKt;
|
||||
|
||||
/* JADX INFO: renamed from: com.sistemasolton.itranvias.home.presentation.stopdetail.ComposableSingletons$StopDetailScreenKt$lambda$-767982247$1, reason: invalid class name */
|
||||
/* JADX INFO: compiled from: StopDetailScreen.kt */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
@Metadata(k = 3, mv = {2, 1, 0}, xi = 48)
|
||||
final class ComposableSingletons$StopDetailScreenKt$lambda$767982247$1 implements Function3<LazyItemScope, Composer, Integer, Unit> {
|
||||
public static final ComposableSingletons$StopDetailScreenKt$lambda$767982247$1 INSTANCE = new ComposableSingletons$StopDetailScreenKt$lambda$767982247$1();
|
||||
|
||||
ComposableSingletons$StopDetailScreenKt$lambda$767982247$1() {
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function3
|
||||
public /* bridge */ /* synthetic */ Unit invoke(LazyItemScope lazyItemScope, Composer composer, Integer num) {
|
||||
invoke(lazyItemScope, composer, num.intValue());
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final Unit invoke$lambda$1$lambda$0(SemanticsPropertyReceiver semantics) {
|
||||
Intrinsics.checkNotNullParameter(semantics, "$this$semantics");
|
||||
SemanticsPropertiesKt.setContentDescription(semantics, "No hay servicios disponibles en esta parada actualmente");
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
|
||||
public final void invoke(LazyItemScope item, Composer composer, int i) {
|
||||
int i2;
|
||||
Intrinsics.checkNotNullParameter(item, "$this$item");
|
||||
if ((i & 6) == 0) {
|
||||
i2 = i | (composer.changed(item) ? 4 : 2);
|
||||
} else {
|
||||
i2 = i;
|
||||
}
|
||||
if ((i2 & 19) == 18 && composer.getSkipping()) {
|
||||
composer.skipToGroupEnd();
|
||||
return;
|
||||
}
|
||||
if (ComposerKt.isTraceInProgress()) {
|
||||
ComposerKt.traceEventStart(-767982247, i2, -1, "com.sistemasolton.itranvias.home.presentation.stopdetail.ComposableSingletons$StopDetailScreenKt.lambda$-767982247.<anonymous> (StopDetailScreen.kt:320)");
|
||||
}
|
||||
Modifier modifierM832padding3ABfNKs = PaddingKt.m832padding3ABfNKs(LazyItemScope.fillParentMaxSize$default(item, Modifier.INSTANCE, 0.0f, 1, null), Dp.m7215constructorimpl(24));
|
||||
composer.startReplaceGroup(1849434622);
|
||||
Object objRememberedValue = composer.rememberedValue();
|
||||
if (objRememberedValue == Composer.INSTANCE.getEmpty()) {
|
||||
objRememberedValue = new Function1() { // from class: com.sistemasolton.itranvias.home.presentation.stopdetail.ComposableSingletons$StopDetailScreenKt$lambda$-767982247$1$$ExternalSyntheticLambda0
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final Object invoke(Object obj) {
|
||||
return ComposableSingletons$StopDetailScreenKt$lambda$767982247$1.invoke$lambda$1$lambda$0((SemanticsPropertyReceiver) obj);
|
||||
}
|
||||
};
|
||||
composer.updateRememberedValue(objRememberedValue);
|
||||
}
|
||||
composer.endReplaceGroup();
|
||||
Modifier modifierSemantics = SemanticsModifierKt.semantics(modifierM832padding3ABfNKs, true, (Function1) objRememberedValue);
|
||||
Arrangement.HorizontalOrVertical center = Arrangement.INSTANCE.getCenter();
|
||||
Alignment.Horizontal centerHorizontally = Alignment.INSTANCE.getCenterHorizontally();
|
||||
ComposerKt.sourceInformationMarkerStart(composer, 1341605231, "CC(Column)N(modifier,verticalArrangement,horizontalAlignment,content)87@4443L61,88@4509L134:Column.kt#2w3rfo");
|
||||
MeasurePolicy measurePolicyColumnMeasurePolicy = ColumnKt.columnMeasurePolicy(center, centerHorizontally, composer, 54);
|
||||
ComposerKt.sourceInformationMarkerStart(composer, -1159599143, "CC(Layout)P(!1,2)80@3267L27,83@3433L360:Layout.kt#80mrfh");
|
||||
int iHashCode = Long.hashCode(ComposablesKt.getCurrentCompositeKeyHashCode(composer, 0));
|
||||
CompositionLocalMap currentCompositionLocalMap = composer.getCurrentCompositionLocalMap();
|
||||
Modifier modifierMaterializeModifier = ComposedModifierKt.materializeModifier(composer, modifierSemantics);
|
||||
Function0<ComposeUiNode> constructor = ComposeUiNode.INSTANCE.getConstructor();
|
||||
ComposerKt.sourceInformationMarkerStart(composer, -553112988, "CC(ReusableComposeNode)N(factory,update,content)399@15590L9:Composables.kt#9igjgp");
|
||||
if (!(composer.getApplier() instanceof Applier)) {
|
||||
ComposablesKt.invalidApplier();
|
||||
}
|
||||
composer.startReusableNode();
|
||||
if (composer.getInserting()) {
|
||||
composer.createNode(constructor);
|
||||
} else {
|
||||
composer.useNode();
|
||||
}
|
||||
Composer composerM3820constructorimpl = Updater.m3820constructorimpl(composer);
|
||||
Updater.m3827setimpl(composerM3820constructorimpl, measurePolicyColumnMeasurePolicy, ComposeUiNode.INSTANCE.getSetMeasurePolicy());
|
||||
Updater.m3827setimpl(composerM3820constructorimpl, currentCompositionLocalMap, ComposeUiNode.INSTANCE.getSetResolvedCompositionLocals());
|
||||
Function2<ComposeUiNode, Integer, Unit> setCompositeKeyHash = ComposeUiNode.INSTANCE.getSetCompositeKeyHash();
|
||||
if (composerM3820constructorimpl.getInserting() || !Intrinsics.areEqual(composerM3820constructorimpl.rememberedValue(), Integer.valueOf(iHashCode))) {
|
||||
composerM3820constructorimpl.updateRememberedValue(Integer.valueOf(iHashCode));
|
||||
composerM3820constructorimpl.apply(Integer.valueOf(iHashCode), setCompositeKeyHash);
|
||||
}
|
||||
Updater.m3827setimpl(composerM3820constructorimpl, modifierMaterializeModifier, ComposeUiNode.INSTANCE.getSetModifier());
|
||||
ComposerKt.sourceInformationMarkerStart(composer, 2093002350, "C89@4557L9:Column.kt#2w3rfo");
|
||||
ColumnScopeInstance columnScopeInstance = ColumnScopeInstance.INSTANCE;
|
||||
IconKt.m2260Iconww6aTOc(DirectionsBusKt.getDirectionsBus(Icons.Outlined.INSTANCE), (String) null, SizeKt.m884size3ABfNKs(Modifier.INSTANCE, Dp.m7215constructorimpl(64)), Color.INSTANCE.m4531getGray0d7_KjU(), composer, 3504, 0);
|
||||
SpacerKt.Spacer(SizeKt.m870height3ABfNKs(Modifier.INSTANCE, Dp.m7215constructorimpl(12)), composer, 6);
|
||||
TextKt.m2803Text4IGK_g(StringResourcesKt.stringResource(String0_commonMainKt.getNo_services_available(Res.string.INSTANCE), composer, 0), (Modifier) null, Color.INSTANCE.m4531getGray0d7_KjU(), 0L, (FontStyle) null, FontWeight.INSTANCE.getMedium(), (FontFamily) null, 0L, (TextDecoration) null, TextAlign.m7092boximpl(TextAlign.INSTANCE.m7099getCentere0LSkKk()), 0L, 0, false, 0, 0, (Function1<? super TextLayoutResult, Unit>) null, (TextStyle) null, composer, 196992, 0, 130522);
|
||||
ComposerKt.sourceInformationMarkerEnd(composer);
|
||||
composer.endNode();
|
||||
ComposerKt.sourceInformationMarkerEnd(composer);
|
||||
ComposerKt.sourceInformationMarkerEnd(composer);
|
||||
ComposerKt.sourceInformationMarkerEnd(composer);
|
||||
if (ComposerKt.isTraceInProgress()) {
|
||||
ComposerKt.traceEventEnd();
|
||||
}
|
||||
}
|
||||
}
|
||||
+152
@@ -0,0 +1,152 @@
|
||||
package com.sistemasolton.itranvias.home.presentation.stopdetail;
|
||||
|
||||
import androidx.compose.foundation.layout.RowScope;
|
||||
import androidx.compose.foundation.lazy.LazyItemScope;
|
||||
import androidx.compose.material.icons.Icons;
|
||||
import androidx.compose.material.icons.filled.ArrowBackKt;
|
||||
import androidx.compose.material3.IconKt;
|
||||
import androidx.compose.material3.TextKt;
|
||||
import androidx.compose.runtime.Composer;
|
||||
import androidx.compose.runtime.ComposerKt;
|
||||
import androidx.compose.runtime.internal.ComposableLambdaKt;
|
||||
import androidx.compose.ui.Modifier;
|
||||
import androidx.compose.ui.text.TextLayoutResult;
|
||||
import androidx.compose.ui.text.TextStyle;
|
||||
import androidx.compose.ui.text.font.FontFamily;
|
||||
import androidx.compose.ui.text.font.FontStyle;
|
||||
import androidx.compose.ui.text.font.FontWeight;
|
||||
import androidx.compose.ui.text.style.TextAlign;
|
||||
import androidx.compose.ui.text.style.TextDecoration;
|
||||
import com.sistemasolton.itranvias.ui.theme.ColorKt;
|
||||
import itranvias.composeapp.generated.resources.Res;
|
||||
import itranvias.composeapp.generated.resources.String0_commonMainKt;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.functions.Function3;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import org.jetbrains.compose.resources.StringResourcesKt;
|
||||
|
||||
/* JADX INFO: compiled from: StopDetailScreen.kt */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
@Metadata(k = 3, mv = {2, 1, 0}, xi = 48)
|
||||
public final class ComposableSingletons$StopDetailScreenKt {
|
||||
public static final ComposableSingletons$StopDetailScreenKt INSTANCE = new ComposableSingletons$StopDetailScreenKt();
|
||||
|
||||
/* JADX INFO: renamed from: lambda$-1954105279, reason: not valid java name */
|
||||
private static Function2<Composer, Integer, Unit> f84lambda$1954105279 = ComposableLambdaKt.composableLambdaInstance(-1954105279, false, new Function2<Composer, Integer, Unit>() { // from class: com.sistemasolton.itranvias.home.presentation.stopdetail.ComposableSingletons$StopDetailScreenKt$lambda$-1954105279$1
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public /* bridge */ /* synthetic */ Unit invoke(Composer composer, Integer num) {
|
||||
invoke(composer, num.intValue());
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
|
||||
public final void invoke(Composer composer, int i) {
|
||||
if ((i & 3) == 2 && composer.getSkipping()) {
|
||||
composer.skipToGroupEnd();
|
||||
return;
|
||||
}
|
||||
if (ComposerKt.isTraceInProgress()) {
|
||||
ComposerKt.traceEventStart(-1954105279, i, -1, "com.sistemasolton.itranvias.home.presentation.stopdetail.ComposableSingletons$StopDetailScreenKt.lambda$-1954105279.<anonymous> (StopDetailScreen.kt:146)");
|
||||
}
|
||||
IconKt.m2260Iconww6aTOc(ArrowBackKt.getArrowBack(Icons.INSTANCE.getDefault()), (String) null, (Modifier) null, ColorKt.getWhiteTranvias(), composer, 3120, 4);
|
||||
if (ComposerKt.isTraceInProgress()) {
|
||||
ComposerKt.traceEventEnd();
|
||||
}
|
||||
}
|
||||
});
|
||||
private static Function2<Composer, Integer, Unit> lambda$108266007 = ComposableLambdaKt.composableLambdaInstance(108266007, false, new Function2<Composer, Integer, Unit>() { // from class: com.sistemasolton.itranvias.home.presentation.stopdetail.ComposableSingletons$StopDetailScreenKt$lambda$108266007$1
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public /* bridge */ /* synthetic */ Unit invoke(Composer composer, Integer num) {
|
||||
invoke(composer, num.intValue());
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
|
||||
public final void invoke(Composer composer, int i) {
|
||||
if ((i & 3) == 2 && composer.getSkipping()) {
|
||||
composer.skipToGroupEnd();
|
||||
return;
|
||||
}
|
||||
if (ComposerKt.isTraceInProgress()) {
|
||||
ComposerKt.traceEventStart(108266007, i, -1, "com.sistemasolton.itranvias.home.presentation.stopdetail.ComposableSingletons$StopDetailScreenKt.lambda$108266007.<anonymous> (StopDetailScreen.kt:236)");
|
||||
}
|
||||
TextKt.m2803Text4IGK_g(StringResourcesKt.stringResource(String0_commonMainKt.getFavorite_custom_name_placeholder(Res.string.INSTANCE), composer, 0), (Modifier) null, 0L, 0L, (FontStyle) null, (FontWeight) null, (FontFamily) null, 0L, (TextDecoration) null, (TextAlign) null, 0L, 0, false, 0, 0, (Function1<? super TextLayoutResult, Unit>) null, (TextStyle) null, composer, 0, 0, 131070);
|
||||
if (ComposerKt.isTraceInProgress()) {
|
||||
ComposerKt.traceEventEnd();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
/* JADX INFO: renamed from: lambda$-1691998884, reason: not valid java name */
|
||||
private static Function3<RowScope, Composer, Integer, Unit> f83lambda$1691998884 = ComposableLambdaKt.composableLambdaInstance(-1691998884, false, new Function3<RowScope, Composer, Integer, Unit>() { // from class: com.sistemasolton.itranvias.home.presentation.stopdetail.ComposableSingletons$StopDetailScreenKt$lambda$-1691998884$1
|
||||
@Override // kotlin.jvm.functions.Function3
|
||||
public /* bridge */ /* synthetic */ Unit invoke(RowScope rowScope, Composer composer, Integer num) {
|
||||
invoke(rowScope, composer, num.intValue());
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
|
||||
public final void invoke(RowScope Button, Composer composer, int i) {
|
||||
Intrinsics.checkNotNullParameter(Button, "$this$Button");
|
||||
if ((i & 17) == 16 && composer.getSkipping()) {
|
||||
composer.skipToGroupEnd();
|
||||
return;
|
||||
}
|
||||
if (ComposerKt.isTraceInProgress()) {
|
||||
ComposerKt.traceEventStart(-1691998884, i, -1, "com.sistemasolton.itranvias.home.presentation.stopdetail.ComposableSingletons$StopDetailScreenKt.lambda$-1691998884.<anonymous> (StopDetailScreen.kt:262)");
|
||||
}
|
||||
TextKt.m2803Text4IGK_g(StringResourcesKt.stringResource(String0_commonMainKt.getSave(Res.string.INSTANCE), composer, 0), (Modifier) null, 0L, 0L, (FontStyle) null, (FontWeight) null, (FontFamily) null, 0L, (TextDecoration) null, (TextAlign) null, 0L, 0, false, 0, 0, (Function1<? super TextLayoutResult, Unit>) null, (TextStyle) null, composer, 0, 0, 131070);
|
||||
if (ComposerKt.isTraceInProgress()) {
|
||||
ComposerKt.traceEventEnd();
|
||||
}
|
||||
}
|
||||
});
|
||||
private static Function3<RowScope, Composer, Integer, Unit> lambda$700988357 = ComposableLambdaKt.composableLambdaInstance(700988357, false, new Function3<RowScope, Composer, Integer, Unit>() { // from class: com.sistemasolton.itranvias.home.presentation.stopdetail.ComposableSingletons$StopDetailScreenKt$lambda$700988357$1
|
||||
@Override // kotlin.jvm.functions.Function3
|
||||
public /* bridge */ /* synthetic */ Unit invoke(RowScope rowScope, Composer composer, Integer num) {
|
||||
invoke(rowScope, composer, num.intValue());
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
|
||||
public final void invoke(RowScope Button, Composer composer, int i) {
|
||||
Intrinsics.checkNotNullParameter(Button, "$this$Button");
|
||||
if ((i & 17) == 16 && composer.getSkipping()) {
|
||||
composer.skipToGroupEnd();
|
||||
return;
|
||||
}
|
||||
if (ComposerKt.isTraceInProgress()) {
|
||||
ComposerKt.traceEventStart(700988357, i, -1, "com.sistemasolton.itranvias.home.presentation.stopdetail.ComposableSingletons$StopDetailScreenKt.lambda$700988357.<anonymous> (StopDetailScreen.kt:275)");
|
||||
}
|
||||
TextKt.m2803Text4IGK_g(StringResourcesKt.stringResource(String0_commonMainKt.getCancel(Res.string.INSTANCE), composer, 0), (Modifier) null, 0L, 0L, (FontStyle) null, (FontWeight) null, (FontFamily) null, 0L, (TextDecoration) null, (TextAlign) null, 0L, 0, false, 0, 0, (Function1<? super TextLayoutResult, Unit>) null, (TextStyle) null, composer, 0, 0, 131070);
|
||||
if (ComposerKt.isTraceInProgress()) {
|
||||
ComposerKt.traceEventEnd();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
/* JADX INFO: renamed from: lambda$-767982247, reason: not valid java name */
|
||||
private static Function3<LazyItemScope, Composer, Integer, Unit> f85lambda$767982247 = ComposableLambdaKt.composableLambdaInstance(-767982247, false, ComposableSingletons$StopDetailScreenKt$lambda$767982247$1.INSTANCE);
|
||||
|
||||
/* JADX INFO: renamed from: getLambda$-1691998884$composeApp_release, reason: not valid java name */
|
||||
public final Function3<RowScope, Composer, Integer, Unit> m7998getLambda$1691998884$composeApp_release() {
|
||||
return f83lambda$1691998884;
|
||||
}
|
||||
|
||||
/* JADX INFO: renamed from: getLambda$-1954105279$composeApp_release, reason: not valid java name */
|
||||
public final Function2<Composer, Integer, Unit> m7999getLambda$1954105279$composeApp_release() {
|
||||
return f84lambda$1954105279;
|
||||
}
|
||||
|
||||
/* JADX INFO: renamed from: getLambda$-767982247$composeApp_release, reason: not valid java name */
|
||||
public final Function3<LazyItemScope, Composer, Integer, Unit> m8000getLambda$767982247$composeApp_release() {
|
||||
return f85lambda$767982247;
|
||||
}
|
||||
|
||||
public final Function2<Composer, Integer, Unit> getLambda$108266007$composeApp_release() {
|
||||
return lambda$108266007;
|
||||
}
|
||||
|
||||
public final Function3<RowScope, Composer, Integer, Unit> getLambda$700988357$composeApp_release() {
|
||||
return lambda$700988357;
|
||||
}
|
||||
}
|
||||
+89
@@ -0,0 +1,89 @@
|
||||
package com.sistemasolton.itranvias.home.presentation.stopdetail;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* JADX INFO: compiled from: StopDetailScreen.kt */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\u0018\u0002\u0010\u0000\u001a\u00020\u0001*\u00020\u0002H\n"}, d2 = {"<anonymous>", "", "Lkotlinx/coroutines/CoroutineScope;"}, k = 3, mv = {2, 1, 0}, xi = 48)
|
||||
@DebugMetadata(c = "com.sistemasolton.itranvias.home.presentation.stopdetail.StopDetailScreenKt$StopDetailScreen$1$1", f = "StopDetailScreen.kt", i = {}, l = {110}, m = "invokeSuspend", n = {}, s = {})
|
||||
final class StopDetailScreenKt$StopDetailScreen$1$1 extends SuspendLambda implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ String $stopId;
|
||||
final /* synthetic */ StopDetailViewModel $viewModel;
|
||||
int label;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
StopDetailScreenKt$StopDetailScreen$1$1(StopDetailViewModel stopDetailViewModel, String str, Continuation<? super StopDetailScreenKt$StopDetailScreen$1$1> continuation) {
|
||||
super(2, continuation);
|
||||
this.$viewModel = stopDetailViewModel;
|
||||
this.$stopId = str;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
return new StopDetailScreenKt$StopDetailScreen$1$1(this.$viewModel, this.$stopId, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(CoroutineScope coroutineScope, Continuation<? super Unit> continuation) {
|
||||
return ((StopDetailScreenKt$StopDetailScreen$1$1) create(coroutineScope, continuation)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:11:0x0031 A[RETURN] */
|
||||
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x002f -> B:12:0x0032). Please report as a decompilation issue!!! */
|
||||
/* JADX ERROR: JadxOverflowException in pass: RegionMakerVisitor
|
||||
jadx.core.utils.exceptions.JadxOverflowException: Regions count limit reached
|
||||
at jadx.core.utils.ErrorsCounter.addError(ErrorsCounter.java:59)
|
||||
at jadx.core.utils.ErrorsCounter.error(ErrorsCounter.java:31)
|
||||
at jadx.core.dex.attributes.nodes.NotificationAttrNode.addError(NotificationAttrNode.java:19)
|
||||
*/
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct code enable 'Show inconsistent code' option in preferences
|
||||
*/
|
||||
public final java.lang.Object invokeSuspend(java.lang.Object r7) {
|
||||
/*
|
||||
r6 = this;
|
||||
java.lang.Object r0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r1 = r6.label
|
||||
r2 = 0
|
||||
r3 = 1
|
||||
if (r1 == 0) goto L18
|
||||
if (r1 != r3) goto L10
|
||||
kotlin.ResultKt.throwOnFailure(r7)
|
||||
goto L32
|
||||
L10:
|
||||
java.lang.IllegalStateException r7 = new java.lang.IllegalStateException
|
||||
java.lang.String r0 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r7.<init>(r0)
|
||||
throw r7
|
||||
L18:
|
||||
kotlin.ResultKt.throwOnFailure(r7)
|
||||
com.sistemasolton.itranvias.home.presentation.stopdetail.StopDetailViewModel r7 = r6.$viewModel
|
||||
java.lang.String r1 = r6.$stopId
|
||||
r4 = 2
|
||||
r5 = 0
|
||||
com.sistemasolton.itranvias.home.presentation.stopdetail.StopDetailViewModel.loadInfo$default(r7, r1, r2, r4, r5)
|
||||
L24:
|
||||
r7 = r6
|
||||
kotlin.coroutines.Continuation r7 = (kotlin.coroutines.Continuation) r7
|
||||
r6.label = r3
|
||||
r4 = 15000(0x3a98, double:7.411E-320)
|
||||
java.lang.Object r7 = kotlinx.coroutines.DelayKt.delay(r4, r7)
|
||||
if (r7 != r0) goto L32
|
||||
return r0
|
||||
L32:
|
||||
com.sistemasolton.itranvias.home.presentation.stopdetail.StopDetailViewModel r7 = r6.$viewModel
|
||||
java.lang.String r1 = r6.$stopId
|
||||
r7.loadInfo(r1, r2)
|
||||
goto L24
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.sistemasolton.itranvias.home.presentation.stopdetail.StopDetailScreenKt$StopDetailScreen$1$1.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
+108
@@ -0,0 +1,108 @@
|
||||
package com.sistemasolton.itranvias.home.presentation.stopdetail;
|
||||
|
||||
import androidx.compose.material3.TextKt;
|
||||
import androidx.compose.runtime.Composer;
|
||||
import androidx.compose.runtime.ComposerKt;
|
||||
import androidx.compose.ui.Modifier;
|
||||
import androidx.compose.ui.semantics.SemanticsModifierKt;
|
||||
import androidx.compose.ui.semantics.SemanticsPropertiesKt;
|
||||
import androidx.compose.ui.semantics.SemanticsPropertyReceiver;
|
||||
import androidx.compose.ui.text.TextLayoutResult;
|
||||
import androidx.compose.ui.text.TextStyle;
|
||||
import androidx.compose.ui.text.font.FontFamily;
|
||||
import androidx.compose.ui.text.font.FontStyle;
|
||||
import androidx.compose.ui.text.font.FontWeight;
|
||||
import androidx.compose.ui.text.style.TextAlign;
|
||||
import androidx.compose.ui.text.style.TextDecoration;
|
||||
import com.sistemasolton.itranvias.home.data.remote.dto.detalleparadadto.DetalleParadaDto;
|
||||
import com.sistemasolton.itranvias.home.data.remote.dto.infodto.InfoDto;
|
||||
import com.sistemasolton.itranvias.home.data.remote.dto.infodto.ParadaDto;
|
||||
import com.sistemasolton.itranvias.ui.theme.ColorKt;
|
||||
import itranvias.composeapp.generated.resources.Res;
|
||||
import itranvias.composeapp.generated.resources.String0_commonMainKt;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import org.jetbrains.compose.resources.StringResourcesKt;
|
||||
|
||||
/* JADX INFO: compiled from: StopDetailScreen.kt */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
@Metadata(k = 3, mv = {2, 1, 0}, xi = 48)
|
||||
final class StopDetailScreenKt$StopDetailScreen$3$1$1 implements Function2<Composer, Integer, Unit> {
|
||||
final /* synthetic */ DetalleParadaDto $detalle;
|
||||
final /* synthetic */ InfoDto $infoDto;
|
||||
|
||||
StopDetailScreenKt$StopDetailScreen$3$1$1(InfoDto infoDto, DetalleParadaDto detalleParadaDto) {
|
||||
this.$infoDto = infoDto;
|
||||
this.$detalle = detalleParadaDto;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public /* bridge */ /* synthetic */ Unit invoke(Composer composer, Integer num) {
|
||||
invoke(composer, num.intValue());
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
|
||||
public final void invoke(Composer composer, int i) {
|
||||
Object next;
|
||||
if ((i & 3) == 2 && composer.getSkipping()) {
|
||||
composer.skipToGroupEnd();
|
||||
return;
|
||||
}
|
||||
if (ComposerKt.isTraceInProgress()) {
|
||||
ComposerKt.traceEventStart(-1810996574, i, -1, "com.sistemasolton.itranvias.home.presentation.stopdetail.StopDetailScreen.<anonymous>.<anonymous>.<anonymous> (StopDetailScreen.kt:127)");
|
||||
}
|
||||
List<ParadaDto> paradas = this.$infoDto.getITranvias().getActualizacion().getParadas();
|
||||
DetalleParadaDto detalleParadaDto = this.$detalle;
|
||||
Iterator<T> it = paradas.iterator();
|
||||
while (true) {
|
||||
if (!it.hasNext()) {
|
||||
next = null;
|
||||
break;
|
||||
} else {
|
||||
next = it.next();
|
||||
if (((ParadaDto) next).getId() == detalleParadaDto.getBuses().getParada()) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
ParadaDto paradaDto = (ParadaDto) next;
|
||||
final String nombre = paradaDto != null ? paradaDto.getNombre() : null;
|
||||
composer.startReplaceGroup(-905950831);
|
||||
if (nombre == null) {
|
||||
nombre = StringResourcesKt.stringResource(String0_commonMainKt.getStop_detail_title(Res.string.INSTANCE), composer, 0);
|
||||
}
|
||||
composer.endReplaceGroup();
|
||||
long whiteTranvias = ColorKt.getWhiteTranvias();
|
||||
Modifier.Companion companion = Modifier.INSTANCE;
|
||||
composer.startReplaceGroup(5004770);
|
||||
boolean zChanged = composer.changed(nombre);
|
||||
Object objRememberedValue = composer.rememberedValue();
|
||||
if (zChanged || objRememberedValue == Composer.INSTANCE.getEmpty()) {
|
||||
objRememberedValue = new Function1() { // from class: com.sistemasolton.itranvias.home.presentation.stopdetail.StopDetailScreenKt$StopDetailScreen$3$1$1$$ExternalSyntheticLambda0
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final Object invoke(Object obj) {
|
||||
return StopDetailScreenKt$StopDetailScreen$3$1$1.invoke$lambda$2$lambda$1(nombre, (SemanticsPropertyReceiver) obj);
|
||||
}
|
||||
};
|
||||
composer.updateRememberedValue(objRememberedValue);
|
||||
}
|
||||
composer.endReplaceGroup();
|
||||
TextKt.m2803Text4IGK_g(nombre, SemanticsModifierKt.semantics$default(companion, false, (Function1) objRememberedValue, 1, null), whiteTranvias, 0L, (FontStyle) null, (FontWeight) null, (FontFamily) null, 0L, (TextDecoration) null, (TextAlign) null, 0L, 0, false, 0, 0, (Function1<? super TextLayoutResult, Unit>) null, (TextStyle) null, composer, 384, 0, 131064);
|
||||
if (ComposerKt.isTraceInProgress()) {
|
||||
ComposerKt.traceEventEnd();
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final Unit invoke$lambda$2$lambda$1(String str, SemanticsPropertyReceiver semantics) {
|
||||
Intrinsics.checkNotNullParameter(semantics, "$this$semantics");
|
||||
SemanticsPropertiesKt.heading(semantics);
|
||||
SemanticsPropertiesKt.setContentDescription(semantics, "Parada: " + str);
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
+68
@@ -0,0 +1,68 @@
|
||||
package com.sistemasolton.itranvias.home.presentation.stopdetail;
|
||||
|
||||
import androidx.compose.material3.IconButtonKt;
|
||||
import androidx.compose.runtime.Composer;
|
||||
import androidx.compose.runtime.ComposerKt;
|
||||
import androidx.compose.ui.Modifier;
|
||||
import androidx.compose.ui.semantics.SemanticsModifierKt;
|
||||
import androidx.compose.ui.semantics.SemanticsPropertiesKt;
|
||||
import androidx.compose.ui.semantics.SemanticsPropertyReceiver;
|
||||
import androidx.profileinstaller.ProfileVerifier;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* JADX INFO: compiled from: StopDetailScreen.kt */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
@Metadata(k = 3, mv = {2, 1, 0}, xi = 48)
|
||||
final class StopDetailScreenKt$StopDetailScreen$3$1$2 implements Function2<Composer, Integer, Unit> {
|
||||
final /* synthetic */ Function0<Unit> $onBackPressed;
|
||||
|
||||
StopDetailScreenKt$StopDetailScreen$3$1$2(Function0<Unit> function0) {
|
||||
this.$onBackPressed = function0;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public /* bridge */ /* synthetic */ Unit invoke(Composer composer, Integer num) {
|
||||
invoke(composer, num.intValue());
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
|
||||
public final void invoke(Composer composer, int i) {
|
||||
if ((i & 3) == 2 && composer.getSkipping()) {
|
||||
composer.skipToGroupEnd();
|
||||
return;
|
||||
}
|
||||
if (ComposerKt.isTraceInProgress()) {
|
||||
ComposerKt.traceEventStart(-1654754396, i, -1, "com.sistemasolton.itranvias.home.presentation.stopdetail.StopDetailScreen.<anonymous>.<anonymous>.<anonymous> (StopDetailScreen.kt:140)");
|
||||
}
|
||||
Function0<Unit> function0 = this.$onBackPressed;
|
||||
Modifier.Companion companion = Modifier.INSTANCE;
|
||||
composer.startReplaceGroup(1849434622);
|
||||
Object objRememberedValue = composer.rememberedValue();
|
||||
if (objRememberedValue == Composer.INSTANCE.getEmpty()) {
|
||||
objRememberedValue = new Function1() { // from class: com.sistemasolton.itranvias.home.presentation.stopdetail.StopDetailScreenKt$StopDetailScreen$3$1$2$$ExternalSyntheticLambda0
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final Object invoke(Object obj) {
|
||||
return StopDetailScreenKt$StopDetailScreen$3$1$2.invoke$lambda$1$lambda$0((SemanticsPropertyReceiver) obj);
|
||||
}
|
||||
};
|
||||
composer.updateRememberedValue(objRememberedValue);
|
||||
}
|
||||
composer.endReplaceGroup();
|
||||
IconButtonKt.IconButton(function0, SemanticsModifierKt.semantics$default(companion, false, (Function1) objRememberedValue, 1, null), false, null, null, ComposableSingletons$StopDetailScreenKt.INSTANCE.m7999getLambda$1954105279$composeApp_release(), composer, ProfileVerifier.CompilationStatus.RESULT_CODE_ERROR_CANT_WRITE_PROFILE_VERIFICATION_RESULT_CACHE_FILE, 28);
|
||||
if (ComposerKt.isTraceInProgress()) {
|
||||
ComposerKt.traceEventEnd();
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final Unit invoke$lambda$1$lambda$0(SemanticsPropertyReceiver semantics) {
|
||||
Intrinsics.checkNotNullParameter(semantics, "$this$semantics");
|
||||
SemanticsPropertiesKt.setContentDescription(semantics, "Volver atrás");
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
+173
@@ -0,0 +1,173 @@
|
||||
package com.sistemasolton.itranvias.home.presentation.stopdetail;
|
||||
|
||||
import androidx.compose.foundation.layout.RowScope;
|
||||
import androidx.compose.material.icons.Icons;
|
||||
import androidx.compose.material.icons.filled.StarKt;
|
||||
import androidx.compose.material.icons.outlined.StarBorderKt;
|
||||
import androidx.compose.material3.IconButtonKt;
|
||||
import androidx.compose.material3.IconKt;
|
||||
import androidx.compose.runtime.Composer;
|
||||
import androidx.compose.runtime.ComposerKt;
|
||||
import androidx.compose.runtime.MutableState;
|
||||
import androidx.compose.runtime.internal.ComposableLambdaKt;
|
||||
import androidx.compose.ui.Modifier;
|
||||
import androidx.compose.ui.semantics.SemanticsModifierKt;
|
||||
import androidx.compose.ui.semantics.SemanticsPropertiesKt;
|
||||
import androidx.compose.ui.semantics.SemanticsPropertyReceiver;
|
||||
import androidx.profileinstaller.ProfileVerifier;
|
||||
import com.sistemasolton.itranvias.home.data.remote.dto.detalleparadadto.DetalleParadaDto;
|
||||
import com.sistemasolton.itranvias.home.data.remote.dto.infodto.InfoDto;
|
||||
import com.sistemasolton.itranvias.home.data.remote.dto.infodto.ParadaDto;
|
||||
import com.sistemasolton.itranvias.ui.theme.ColorKt;
|
||||
import itranvias.composeapp.generated.resources.Res;
|
||||
import itranvias.composeapp.generated.resources.String0_commonMainKt;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.functions.Function3;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import org.jetbrains.compose.resources.StringResourcesKt;
|
||||
|
||||
/* JADX INFO: compiled from: StopDetailScreen.kt */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
@Metadata(k = 3, mv = {2, 1, 0}, xi = 48)
|
||||
final class StopDetailScreenKt$StopDetailScreen$3$1$3 implements Function3<RowScope, Composer, Integer, Unit> {
|
||||
final /* synthetic */ DetalleParadaDto $detalle;
|
||||
final /* synthetic */ InfoDto $infoDto;
|
||||
final /* synthetic */ MutableState<Boolean> $showAliasDialog$delegate;
|
||||
final /* synthetic */ StopDetailState $state;
|
||||
final /* synthetic */ StopDetailViewModel $viewModel;
|
||||
|
||||
StopDetailScreenKt$StopDetailScreen$3$1$3(InfoDto infoDto, StopDetailState stopDetailState, StopDetailViewModel stopDetailViewModel, DetalleParadaDto detalleParadaDto, MutableState<Boolean> mutableState) {
|
||||
this.$infoDto = infoDto;
|
||||
this.$state = stopDetailState;
|
||||
this.$viewModel = stopDetailViewModel;
|
||||
this.$detalle = detalleParadaDto;
|
||||
this.$showAliasDialog$delegate = mutableState;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function3
|
||||
public /* bridge */ /* synthetic */ Unit invoke(RowScope rowScope, Composer composer, Integer num) {
|
||||
invoke(rowScope, composer, num.intValue());
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
|
||||
public final void invoke(RowScope TopAppBar, Composer composer, int i) {
|
||||
Object next;
|
||||
Intrinsics.checkNotNullParameter(TopAppBar, "$this$TopAppBar");
|
||||
if ((i & 17) == 16 && composer.getSkipping()) {
|
||||
composer.skipToGroupEnd();
|
||||
return;
|
||||
}
|
||||
if (ComposerKt.isTraceInProgress()) {
|
||||
ComposerKt.traceEventStart(107072461, i, -1, "com.sistemasolton.itranvias.home.presentation.stopdetail.StopDetailScreen.<anonymous>.<anonymous>.<anonymous> (StopDetailScreen.kt:154)");
|
||||
}
|
||||
List<ParadaDto> paradas = this.$infoDto.getITranvias().getActualizacion().getParadas();
|
||||
DetalleParadaDto detalleParadaDto = this.$detalle;
|
||||
Iterator<T> it = paradas.iterator();
|
||||
while (true) {
|
||||
if (!it.hasNext()) {
|
||||
next = null;
|
||||
break;
|
||||
} else {
|
||||
next = it.next();
|
||||
if (((ParadaDto) next).getId() == detalleParadaDto.getBuses().getParada()) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
ParadaDto paradaDto = (ParadaDto) next;
|
||||
final String nombre = paradaDto != null ? paradaDto.getNombre() : null;
|
||||
composer.startReplaceGroup(-182578180);
|
||||
if (nombre == null) {
|
||||
nombre = StringResourcesKt.stringResource(String0_commonMainKt.getStop_detail_title(Res.string.INSTANCE), composer, 0);
|
||||
}
|
||||
composer.endReplaceGroup();
|
||||
composer.startReplaceGroup(-1746271574);
|
||||
boolean zChangedInstance = composer.changedInstance(this.$state) | composer.changedInstance(this.$viewModel);
|
||||
final StopDetailState stopDetailState = this.$state;
|
||||
final StopDetailViewModel stopDetailViewModel = this.$viewModel;
|
||||
final MutableState<Boolean> mutableState = this.$showAliasDialog$delegate;
|
||||
Object objRememberedValue = composer.rememberedValue();
|
||||
if (zChangedInstance || objRememberedValue == Composer.INSTANCE.getEmpty()) {
|
||||
objRememberedValue = new Function0() { // from class: com.sistemasolton.itranvias.home.presentation.stopdetail.StopDetailScreenKt$StopDetailScreen$3$1$3$$ExternalSyntheticLambda0
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final Object invoke() {
|
||||
return StopDetailScreenKt$StopDetailScreen$3$1$3.invoke$lambda$2$lambda$1(stopDetailState, stopDetailViewModel, mutableState);
|
||||
}
|
||||
};
|
||||
composer.updateRememberedValue(objRememberedValue);
|
||||
}
|
||||
Function0 function0 = (Function0) objRememberedValue;
|
||||
composer.endReplaceGroup();
|
||||
Modifier.Companion companion = Modifier.INSTANCE;
|
||||
composer.startReplaceGroup(-1633490746);
|
||||
boolean zChangedInstance2 = composer.changedInstance(this.$state) | composer.changed(nombre);
|
||||
final StopDetailState stopDetailState2 = this.$state;
|
||||
Object objRememberedValue2 = composer.rememberedValue();
|
||||
if (zChangedInstance2 || objRememberedValue2 == Composer.INSTANCE.getEmpty()) {
|
||||
objRememberedValue2 = new Function1() { // from class: com.sistemasolton.itranvias.home.presentation.stopdetail.StopDetailScreenKt$StopDetailScreen$3$1$3$$ExternalSyntheticLambda1
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final Object invoke(Object obj) {
|
||||
return StopDetailScreenKt$StopDetailScreen$3$1$3.invoke$lambda$4$lambda$3(stopDetailState2, nombre, (SemanticsPropertyReceiver) obj);
|
||||
}
|
||||
};
|
||||
composer.updateRememberedValue(objRememberedValue2);
|
||||
}
|
||||
composer.endReplaceGroup();
|
||||
Modifier modifierSemantics$default = SemanticsModifierKt.semantics$default(companion, false, (Function1) objRememberedValue2, 1, null);
|
||||
final StopDetailState stopDetailState3 = this.$state;
|
||||
IconButtonKt.IconButton(function0, modifierSemantics$default, false, null, null, ComposableLambdaKt.rememberComposableLambda(-665819184, true, new Function2<Composer, Integer, Unit>() { // from class: com.sistemasolton.itranvias.home.presentation.stopdetail.StopDetailScreenKt$StopDetailScreen$3$1$3.3
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public /* bridge */ /* synthetic */ Unit invoke(Composer composer2, Integer num) {
|
||||
invoke(composer2, num.intValue());
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
|
||||
public final void invoke(Composer composer2, int i2) {
|
||||
if ((i2 & 3) == 2 && composer2.getSkipping()) {
|
||||
composer2.skipToGroupEnd();
|
||||
return;
|
||||
}
|
||||
if (ComposerKt.isTraceInProgress()) {
|
||||
ComposerKt.traceEventStart(-665819184, i2, -1, "com.sistemasolton.itranvias.home.presentation.stopdetail.StopDetailScreen.<anonymous>.<anonymous>.<anonymous>.<anonymous> (StopDetailScreen.kt:178)");
|
||||
}
|
||||
IconKt.m2260Iconww6aTOc(stopDetailState3.isFavorite() ? StarKt.getStar(Icons.Filled.INSTANCE) : StarBorderKt.getStarBorder(Icons.Outlined.INSTANCE), (String) null, (Modifier) null, ColorKt.getWhiteTranvias(), composer2, 3120, 4);
|
||||
if (ComposerKt.isTraceInProgress()) {
|
||||
ComposerKt.traceEventEnd();
|
||||
}
|
||||
}
|
||||
}, composer, 54), composer, ProfileVerifier.CompilationStatus.RESULT_CODE_ERROR_CANT_WRITE_PROFILE_VERIFICATION_RESULT_CACHE_FILE, 28);
|
||||
if (ComposerKt.isTraceInProgress()) {
|
||||
ComposerKt.traceEventEnd();
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final Unit invoke$lambda$2$lambda$1(StopDetailState stopDetailState, StopDetailViewModel stopDetailViewModel, MutableState mutableState) {
|
||||
if (!stopDetailState.isFavorite()) {
|
||||
StopDetailScreenKt.StopDetailScreen$lambda$5(mutableState, true);
|
||||
} else {
|
||||
StopDetailViewModel.toggleFavorite$default(stopDetailViewModel, null, 1, null);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final Unit invoke$lambda$4$lambda$3(StopDetailState stopDetailState, String str, SemanticsPropertyReceiver semantics) {
|
||||
String str2;
|
||||
Intrinsics.checkNotNullParameter(semantics, "$this$semantics");
|
||||
if (stopDetailState.isFavorite()) {
|
||||
str2 = "Eliminar parada " + str + " de favoritos";
|
||||
} else {
|
||||
str2 = "Agregar parada " + str + " a favoritos";
|
||||
}
|
||||
SemanticsPropertiesKt.setContentDescription(semantics, str2);
|
||||
SemanticsPropertiesKt.setStateDescription(semantics, stopDetailState.isFavorite() ? "Marcado como favorito" : "No marcado como favorito");
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
+50
@@ -0,0 +1,50 @@
|
||||
package com.sistemasolton.itranvias.home.presentation.stopdetail;
|
||||
|
||||
import androidx.compose.runtime.MutableState;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* JADX INFO: compiled from: StopDetailScreen.kt */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\u0018\u0002\u0010\u0000\u001a\u00020\u0001*\u00020\u0002H\n"}, d2 = {"<anonymous>", "", "Lkotlinx/coroutines/CoroutineScope;"}, k = 3, mv = {2, 1, 0}, xi = 48)
|
||||
@DebugMetadata(c = "com.sistemasolton.itranvias.home.presentation.stopdetail.StopDetailScreenKt$StopDetailScreen$3$1$4$1", f = "StopDetailScreen.kt", i = {}, l = {}, m = "invokeSuspend", n = {}, s = {})
|
||||
final class StopDetailScreenKt$StopDetailScreen$3$1$4$1 extends SuspendLambda implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ MutableState<String> $aliasInput$delegate;
|
||||
final /* synthetic */ String $paradaNombre;
|
||||
int label;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
StopDetailScreenKt$StopDetailScreen$3$1$4$1(String str, MutableState<String> mutableState, Continuation<? super StopDetailScreenKt$StopDetailScreen$3$1$4$1> continuation) {
|
||||
super(2, continuation);
|
||||
this.$paradaNombre = str;
|
||||
this.$aliasInput$delegate = mutableState;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
return new StopDetailScreenKt$StopDetailScreen$3$1$4$1(this.$paradaNombre, this.$aliasInput$delegate, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(CoroutineScope coroutineScope, Continuation<? super Unit> continuation) {
|
||||
return ((StopDetailScreenKt$StopDetailScreen$3$1$4$1) create(coroutineScope, continuation)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) throws Throwable {
|
||||
IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
if (this.label != 0) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
this.$aliasInput$delegate.setValue(this.$paradaNombre);
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
package com.sistemasolton.itranvias.home.presentation.stopdetail;
|
||||
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
|
||||
/* JADX INFO: compiled from: LazyDsl.kt */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
@Metadata(k = 3, mv = {2, 1, 0}, xi = 48)
|
||||
public final class StopDetailScreenKt$StopDetailScreen$4$invoke$lambda$14$lambda$13$$inlined$items$default$2 implements Function1<Integer, Object> {
|
||||
final /* synthetic */ List $items;
|
||||
final /* synthetic */ Function1 $key;
|
||||
|
||||
public StopDetailScreenKt$StopDetailScreen$4$invoke$lambda$14$lambda$13$$inlined$items$default$2(Function1 function1, List list) {
|
||||
this.$key = function1;
|
||||
this.$items = list;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public /* bridge */ /* synthetic */ Object invoke(Integer num) {
|
||||
return invoke(num.intValue());
|
||||
}
|
||||
|
||||
public final Object invoke(int i) {
|
||||
return this.$key.invoke(this.$items.get(i));
|
||||
}
|
||||
}
|
||||
+1209
File diff suppressed because it is too large
Load Diff
+163
@@ -0,0 +1,163 @@
|
||||
package com.sistemasolton.itranvias.home.presentation.stopdetail;
|
||||
|
||||
import com.sistemasolton.itranvias.home.data.remote.dto.detalleparadadto.DetalleParadaDto;
|
||||
import com.sistemasolton.itranvias.home.data.remote.dto.infodto.InfoDto;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* JADX INFO: compiled from: StopDetailState.kt */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
@Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0017\n\u0002\u0010\b\n\u0002\b\u0002\b\u0087\b\u0018\u00002\u00020\u0001BU\u0012\b\b\u0002\u0010\u0002\u001a\u00020\u0003\u0012\b\b\u0002\u0010\u0004\u001a\u00020\u0003\u0012\n\b\u0002\u0010\u0005\u001a\u0004\u0018\u00010\u0006\u0012\n\b\u0002\u0010\u0007\u001a\u0004\u0018\u00010\b\u0012\n\b\u0002\u0010\t\u001a\u0004\u0018\u00010\n\u0012\b\b\u0002\u0010\u000b\u001a\u00020\u0003\u0012\n\b\u0002\u0010\f\u001a\u0004\u0018\u00010\b¢\u0006\u0004\b\r\u0010\u000eJ\t\u0010\u0017\u001a\u00020\u0003HÆ\u0003J\t\u0010\u0018\u001a\u00020\u0003HÆ\u0003J\u000b\u0010\u0019\u001a\u0004\u0018\u00010\u0006HÆ\u0003J\u000b\u0010\u001a\u001a\u0004\u0018\u00010\bHÆ\u0003J\u000b\u0010\u001b\u001a\u0004\u0018\u00010\nHÆ\u0003J\t\u0010\u001c\u001a\u00020\u0003HÆ\u0003J\u000b\u0010\u001d\u001a\u0004\u0018\u00010\bHÆ\u0003JW\u0010\u001e\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00032\n\b\u0002\u0010\u0005\u001a\u0004\u0018\u00010\u00062\n\b\u0002\u0010\u0007\u001a\u0004\u0018\u00010\b2\n\b\u0002\u0010\t\u001a\u0004\u0018\u00010\n2\b\b\u0002\u0010\u000b\u001a\u00020\u00032\n\b\u0002\u0010\f\u001a\u0004\u0018\u00010\bHÆ\u0001J\u0013\u0010\u001f\u001a\u00020\u00032\b\u0010 \u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u0010!\u001a\u00020\"HÖ\u0001J\t\u0010#\u001a\u00020\bHÖ\u0001R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0002\u0010\u000fR\u0011\u0010\u0004\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0004\u0010\u000fR\u0013\u0010\u0005\u001a\u0004\u0018\u00010\u0006¢\u0006\b\n\u0000\u001a\u0004\b\u0010\u0010\u0011R\u0013\u0010\u0007\u001a\u0004\u0018\u00010\b¢\u0006\b\n\u0000\u001a\u0004\b\u0012\u0010\u0013R\u0013\u0010\t\u001a\u0004\u0018\u00010\n¢\u0006\b\n\u0000\u001a\u0004\b\u0014\u0010\u0015R\u0011\u0010\u000b\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\u000fR\u0013\u0010\f\u001a\u0004\u0018\u00010\b¢\u0006\b\n\u0000\u001a\u0004\b\u0016\u0010\u0013¨\u0006$"}, d2 = {"Lcom/sistemasolton/itranvias/home/presentation/stopdetail/StopDetailState;", "", "isLoading", "", "isError", "infoDto", "Lcom/sistemasolton/itranvias/home/data/remote/dto/infodto/InfoDto;", "errorMessage", "", "DetalleParadaDto", "Lcom/sistemasolton/itranvias/home/data/remote/dto/detalleparadadto/DetalleParadaDto;", "isFavorite", "lastUpdateTime", "<init>", "(ZZLcom/sistemasolton/itranvias/home/data/remote/dto/infodto/InfoDto;Ljava/lang/String;Lcom/sistemasolton/itranvias/home/data/remote/dto/detalleparadadto/DetalleParadaDto;ZLjava/lang/String;)V", "()Z", "getInfoDto", "()Lcom/sistemasolton/itranvias/home/data/remote/dto/infodto/InfoDto;", "getErrorMessage", "()Ljava/lang/String;", "getDetalleParadaDto", "()Lcom/sistemasolton/itranvias/home/data/remote/dto/detalleparadadto/DetalleParadaDto;", "getLastUpdateTime", "component1", "component2", "component3", "component4", "component5", "component6", "component7", "copy", "equals", "other", "hashCode", "", "toString", "composeApp_release"}, k = 1, mv = {2, 1, 0}, xi = 48)
|
||||
public final /* data */ class StopDetailState {
|
||||
public static final int $stable = 8;
|
||||
private final DetalleParadaDto DetalleParadaDto;
|
||||
private final String errorMessage;
|
||||
private final InfoDto infoDto;
|
||||
private final boolean isError;
|
||||
private final boolean isFavorite;
|
||||
private final boolean isLoading;
|
||||
private final String lastUpdateTime;
|
||||
|
||||
public StopDetailState() {
|
||||
this(false, false, null, null, null, false, null, 127, null);
|
||||
}
|
||||
|
||||
public static /* synthetic */ StopDetailState copy$default(StopDetailState stopDetailState, boolean z, boolean z2, InfoDto infoDto, String str, DetalleParadaDto detalleParadaDto, boolean z3, String str2, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
z = stopDetailState.isLoading;
|
||||
}
|
||||
if ((i & 2) != 0) {
|
||||
z2 = stopDetailState.isError;
|
||||
}
|
||||
boolean z4 = z2;
|
||||
if ((i & 4) != 0) {
|
||||
infoDto = stopDetailState.infoDto;
|
||||
}
|
||||
InfoDto infoDto2 = infoDto;
|
||||
if ((i & 8) != 0) {
|
||||
str = stopDetailState.errorMessage;
|
||||
}
|
||||
String str3 = str;
|
||||
if ((i & 16) != 0) {
|
||||
detalleParadaDto = stopDetailState.DetalleParadaDto;
|
||||
}
|
||||
DetalleParadaDto detalleParadaDto2 = detalleParadaDto;
|
||||
if ((i & 32) != 0) {
|
||||
z3 = stopDetailState.isFavorite;
|
||||
}
|
||||
boolean z5 = z3;
|
||||
if ((i & 64) != 0) {
|
||||
str2 = stopDetailState.lastUpdateTime;
|
||||
}
|
||||
return stopDetailState.copy(z, z4, infoDto2, str3, detalleParadaDto2, z5, str2);
|
||||
}
|
||||
|
||||
/* JADX INFO: renamed from: component1, reason: from getter */
|
||||
public final boolean getIsLoading() {
|
||||
return this.isLoading;
|
||||
}
|
||||
|
||||
/* JADX INFO: renamed from: component2, reason: from getter */
|
||||
public final boolean getIsError() {
|
||||
return this.isError;
|
||||
}
|
||||
|
||||
/* JADX INFO: renamed from: component3, reason: from getter */
|
||||
public final InfoDto getInfoDto() {
|
||||
return this.infoDto;
|
||||
}
|
||||
|
||||
/* JADX INFO: renamed from: component4, reason: from getter */
|
||||
public final String getErrorMessage() {
|
||||
return this.errorMessage;
|
||||
}
|
||||
|
||||
/* JADX INFO: renamed from: component5, reason: from getter */
|
||||
public final DetalleParadaDto getDetalleParadaDto() {
|
||||
return this.DetalleParadaDto;
|
||||
}
|
||||
|
||||
/* JADX INFO: renamed from: component6, reason: from getter */
|
||||
public final boolean getIsFavorite() {
|
||||
return this.isFavorite;
|
||||
}
|
||||
|
||||
/* JADX INFO: renamed from: component7, reason: from getter */
|
||||
public final String getLastUpdateTime() {
|
||||
return this.lastUpdateTime;
|
||||
}
|
||||
|
||||
public final StopDetailState copy(boolean isLoading, boolean isError, InfoDto infoDto, String errorMessage, DetalleParadaDto DetalleParadaDto, boolean isFavorite, String lastUpdateTime) {
|
||||
return new StopDetailState(isLoading, isError, infoDto, errorMessage, DetalleParadaDto, isFavorite, lastUpdateTime);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
if (!(other instanceof StopDetailState)) {
|
||||
return false;
|
||||
}
|
||||
StopDetailState stopDetailState = (StopDetailState) other;
|
||||
return this.isLoading == stopDetailState.isLoading && this.isError == stopDetailState.isError && Intrinsics.areEqual(this.infoDto, stopDetailState.infoDto) && Intrinsics.areEqual(this.errorMessage, stopDetailState.errorMessage) && Intrinsics.areEqual(this.DetalleParadaDto, stopDetailState.DetalleParadaDto) && this.isFavorite == stopDetailState.isFavorite && Intrinsics.areEqual(this.lastUpdateTime, stopDetailState.lastUpdateTime);
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int iHashCode = ((Boolean.hashCode(this.isLoading) * 31) + Boolean.hashCode(this.isError)) * 31;
|
||||
InfoDto infoDto = this.infoDto;
|
||||
int iHashCode2 = (iHashCode + (infoDto == null ? 0 : infoDto.hashCode())) * 31;
|
||||
String str = this.errorMessage;
|
||||
int iHashCode3 = (iHashCode2 + (str == null ? 0 : str.hashCode())) * 31;
|
||||
DetalleParadaDto detalleParadaDto = this.DetalleParadaDto;
|
||||
int iHashCode4 = (((iHashCode3 + (detalleParadaDto == null ? 0 : detalleParadaDto.hashCode())) * 31) + Boolean.hashCode(this.isFavorite)) * 31;
|
||||
String str2 = this.lastUpdateTime;
|
||||
return iHashCode4 + (str2 != null ? str2.hashCode() : 0);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "StopDetailState(isLoading=" + this.isLoading + ", isError=" + this.isError + ", infoDto=" + this.infoDto + ", errorMessage=" + this.errorMessage + ", DetalleParadaDto=" + this.DetalleParadaDto + ", isFavorite=" + this.isFavorite + ", lastUpdateTime=" + this.lastUpdateTime + ")";
|
||||
}
|
||||
|
||||
public StopDetailState(boolean z, boolean z2, InfoDto infoDto, String str, DetalleParadaDto detalleParadaDto, boolean z3, String str2) {
|
||||
this.isLoading = z;
|
||||
this.isError = z2;
|
||||
this.infoDto = infoDto;
|
||||
this.errorMessage = str;
|
||||
this.DetalleParadaDto = detalleParadaDto;
|
||||
this.isFavorite = z3;
|
||||
this.lastUpdateTime = str2;
|
||||
}
|
||||
|
||||
public /* synthetic */ StopDetailState(boolean z, boolean z2, InfoDto infoDto, String str, DetalleParadaDto detalleParadaDto, boolean z3, String str2, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this((i & 1) != 0 ? false : z, (i & 2) != 0 ? false : z2, (i & 4) != 0 ? null : infoDto, (i & 8) != 0 ? null : str, (i & 16) != 0 ? null : detalleParadaDto, (i & 32) == 0 ? z3 : false, (i & 64) != 0 ? null : str2);
|
||||
}
|
||||
|
||||
public final boolean isLoading() {
|
||||
return this.isLoading;
|
||||
}
|
||||
|
||||
public final boolean isError() {
|
||||
return this.isError;
|
||||
}
|
||||
|
||||
public final InfoDto getInfoDto() {
|
||||
return this.infoDto;
|
||||
}
|
||||
|
||||
public final String getErrorMessage() {
|
||||
return this.errorMessage;
|
||||
}
|
||||
|
||||
public final DetalleParadaDto getDetalleParadaDto() {
|
||||
return this.DetalleParadaDto;
|
||||
}
|
||||
|
||||
public final boolean isFavorite() {
|
||||
return this.isFavorite;
|
||||
}
|
||||
|
||||
public final String getLastUpdateTime() {
|
||||
return this.lastUpdateTime;
|
||||
}
|
||||
}
|
||||
+348
@@ -0,0 +1,348 @@
|
||||
package com.sistemasolton.itranvias.home.presentation.stopdetail;
|
||||
|
||||
import androidx.compose.runtime.MutableState;
|
||||
import androidx.compose.runtime.SnapshotStateKt__SnapshotStateKt;
|
||||
import androidx.lifecycle.ViewModel;
|
||||
import androidx.lifecycle.ViewModelKt;
|
||||
import com.sistemasolton.itranvias.home.data.local.entity.StopFavoriteEntity;
|
||||
import com.sistemasolton.itranvias.home.data.remote.dto.detalleparadadto.BusesDto;
|
||||
import com.sistemasolton.itranvias.home.data.remote.dto.detalleparadadto.DetalleParadaDto;
|
||||
import com.sistemasolton.itranvias.home.data.remote.dto.infodto.InfoDto;
|
||||
import com.sistemasolton.itranvias.home.domain.usecase.GetInfoLocalUseCase;
|
||||
import com.sistemasolton.itranvias.home.domain.usecase.GetStopDetailUseCase;
|
||||
import com.sistemasolton.itranvias.home.domain.usecase.linesfavorites.AddStopFavoriteUseCase;
|
||||
import com.sistemasolton.itranvias.home.domain.usecase.linesfavorites.DeleteStopFavoriteUseCase;
|
||||
import com.sistemasolton.itranvias.home.domain.usecase.linesfavorites.GetAllStopsFavoriteUseCase;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.text.StringsKt;
|
||||
import kotlinx.coroutines.BuildersKt__Builders_commonKt;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* JADX INFO: compiled from: StopDetailViewModel.kt */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
@Metadata(d1 = {"\u0000H\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0003\b\u0007\u0018\u00002\u00020\u0001B7\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u0006\u0010\b\u001a\u00020\t\u0012\u0006\u0010\n\u001a\u00020\u000b\u0012\u0006\u0010\f\u001a\u00020\r¢\u0006\u0004\b\u000e\u0010\u000fJ\u0018\u0010\u0019\u001a\u00020\u001a2\u0006\u0010\u001b\u001a\u00020\r2\b\b\u0002\u0010\u001c\u001a\u00020\u001dJ\u0012\u0010\u001e\u001a\u00020\u001a2\n\b\u0002\u0010\u001f\u001a\u0004\u0018\u00010\rR\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0004\u001a\u00020\u0005X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0006\u001a\u00020\u0007X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\b\u001a\u00020\tX\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\n\u001a\u00020\u000bX\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\f\u001a\u00020\rX\u0082\u0004¢\u0006\u0002\n\u0000R+\u0010\u0012\u001a\u00020\u00112\u0006\u0010\u0010\u001a\u00020\u00118F@BX\u0086\u008e\u0002¢\u0006\u0012\n\u0004\b\u0017\u0010\u0018\u001a\u0004\b\u0013\u0010\u0014\"\u0004\b\u0015\u0010\u0016¨\u0006 "}, d2 = {"Lcom/sistemasolton/itranvias/home/presentation/stopdetail/StopDetailViewModel;", "Landroidx/lifecycle/ViewModel;", "getLocalInfoUseCase", "Lcom/sistemasolton/itranvias/home/domain/usecase/GetInfoLocalUseCase;", "getStopDetailUseCase", "Lcom/sistemasolton/itranvias/home/domain/usecase/GetStopDetailUseCase;", "getAllStopsFavoriteUseCase", "Lcom/sistemasolton/itranvias/home/domain/usecase/linesfavorites/GetAllStopsFavoriteUseCase;", "addStopFavoriteUseCase", "Lcom/sistemasolton/itranvias/home/domain/usecase/linesfavorites/AddStopFavoriteUseCase;", "deleteStopFavoriteUseCase", "Lcom/sistemasolton/itranvias/home/domain/usecase/linesfavorites/DeleteStopFavoriteUseCase;", "language", "", "<init>", "(Lcom/sistemasolton/itranvias/home/domain/usecase/GetInfoLocalUseCase;Lcom/sistemasolton/itranvias/home/domain/usecase/GetStopDetailUseCase;Lcom/sistemasolton/itranvias/home/domain/usecase/linesfavorites/GetAllStopsFavoriteUseCase;Lcom/sistemasolton/itranvias/home/domain/usecase/linesfavorites/AddStopFavoriteUseCase;Lcom/sistemasolton/itranvias/home/domain/usecase/linesfavorites/DeleteStopFavoriteUseCase;Ljava/lang/String;)V", "<set-?>", "Lcom/sistemasolton/itranvias/home/presentation/stopdetail/StopDetailState;", "state", "getState", "()Lcom/sistemasolton/itranvias/home/presentation/stopdetail/StopDetailState;", "setState", "(Lcom/sistemasolton/itranvias/home/presentation/stopdetail/StopDetailState;)V", "state$delegate", "Landroidx/compose/runtime/MutableState;", "loadInfo", "", "stopId", "showLoading", "", "toggleFavorite", "alias", "composeApp_release"}, k = 1, mv = {2, 1, 0}, xi = 48)
|
||||
public final class StopDetailViewModel extends ViewModel {
|
||||
public static final int $stable = 8;
|
||||
private final AddStopFavoriteUseCase addStopFavoriteUseCase;
|
||||
private final DeleteStopFavoriteUseCase deleteStopFavoriteUseCase;
|
||||
private final GetAllStopsFavoriteUseCase getAllStopsFavoriteUseCase;
|
||||
private final GetInfoLocalUseCase getLocalInfoUseCase;
|
||||
private final GetStopDetailUseCase getStopDetailUseCase;
|
||||
private final String language;
|
||||
|
||||
/* JADX INFO: renamed from: state$delegate, reason: from kotlin metadata */
|
||||
private final MutableState state;
|
||||
|
||||
public StopDetailViewModel(GetInfoLocalUseCase getLocalInfoUseCase, GetStopDetailUseCase getStopDetailUseCase, GetAllStopsFavoriteUseCase getAllStopsFavoriteUseCase, AddStopFavoriteUseCase addStopFavoriteUseCase, DeleteStopFavoriteUseCase deleteStopFavoriteUseCase, String language) {
|
||||
Intrinsics.checkNotNullParameter(getLocalInfoUseCase, "getLocalInfoUseCase");
|
||||
Intrinsics.checkNotNullParameter(getStopDetailUseCase, "getStopDetailUseCase");
|
||||
Intrinsics.checkNotNullParameter(getAllStopsFavoriteUseCase, "getAllStopsFavoriteUseCase");
|
||||
Intrinsics.checkNotNullParameter(addStopFavoriteUseCase, "addStopFavoriteUseCase");
|
||||
Intrinsics.checkNotNullParameter(deleteStopFavoriteUseCase, "deleteStopFavoriteUseCase");
|
||||
Intrinsics.checkNotNullParameter(language, "language");
|
||||
this.getLocalInfoUseCase = getLocalInfoUseCase;
|
||||
this.getStopDetailUseCase = getStopDetailUseCase;
|
||||
this.getAllStopsFavoriteUseCase = getAllStopsFavoriteUseCase;
|
||||
this.addStopFavoriteUseCase = addStopFavoriteUseCase;
|
||||
this.deleteStopFavoriteUseCase = deleteStopFavoriteUseCase;
|
||||
this.language = language;
|
||||
this.state = SnapshotStateKt__SnapshotStateKt.mutableStateOf$default(new StopDetailState(false, false, null, null, null, false, null, 127, null), null, 2, null);
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final void setState(StopDetailState stopDetailState) {
|
||||
this.state.setValue(stopDetailState);
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public final StopDetailState getState() {
|
||||
return (StopDetailState) this.state.getValue();
|
||||
}
|
||||
|
||||
/* JADX INFO: renamed from: com.sistemasolton.itranvias.home.presentation.stopdetail.StopDetailViewModel$loadInfo$1, reason: invalid class name */
|
||||
/* JADX INFO: compiled from: StopDetailViewModel.kt */
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\u0018\u0002\u0010\u0000\u001a\u00020\u0001*\u00020\u0002H\n"}, d2 = {"<anonymous>", "", "Lkotlinx/coroutines/CoroutineScope;"}, k = 3, mv = {2, 1, 0}, xi = 48)
|
||||
@DebugMetadata(c = "com.sistemasolton.itranvias.home.presentation.stopdetail.StopDetailViewModel$loadInfo$1", f = "StopDetailViewModel.kt", i = {0, 1}, l = {49, 73}, m = "invokeSuspend", n = {"success", "success"}, s = {"I$0", "I$0"})
|
||||
static final class AnonymousClass1 extends SuspendLambda implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ boolean $showLoading;
|
||||
final /* synthetic */ String $stopId;
|
||||
int I$0;
|
||||
int label;
|
||||
final /* synthetic */ StopDetailViewModel this$0;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
AnonymousClass1(boolean z, StopDetailViewModel stopDetailViewModel, String str, Continuation<? super AnonymousClass1> continuation) {
|
||||
super(2, continuation);
|
||||
this.$showLoading = z;
|
||||
this.this$0 = stopDetailViewModel;
|
||||
this.$stopId = str;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
return new AnonymousClass1(this.$showLoading, this.this$0, this.$stopId, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(CoroutineScope coroutineScope, Continuation<? super Unit> continuation) {
|
||||
return ((AnonymousClass1) create(coroutineScope, continuation)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:20:0x004b A[Catch: Exception -> 0x0024, TRY_ENTER, TRY_LEAVE, TryCatch #0 {Exception -> 0x0024, blocks: (B:20:0x004b, B:10:0x0020), top: B:29:0x0020 }] */
|
||||
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:25:0x00ab -> B:18:0x0048). Please report as a decompilation issue!!! */
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct code enable 'Show inconsistent code' option in preferences
|
||||
*/
|
||||
public final java.lang.Object invokeSuspend(java.lang.Object r17) throws java.lang.Throwable {
|
||||
/*
|
||||
r16 = this;
|
||||
r1 = r16
|
||||
java.lang.Object r2 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r0 = r1.label
|
||||
r3 = 2
|
||||
r4 = 1
|
||||
if (r0 == 0) goto L29
|
||||
if (r0 == r4) goto L1e
|
||||
if (r0 != r3) goto L16
|
||||
int r0 = r1.I$0
|
||||
kotlin.ResultKt.throwOnFailure(r17)
|
||||
goto L48
|
||||
L16:
|
||||
java.lang.IllegalStateException r0 = new java.lang.IllegalStateException
|
||||
java.lang.String r2 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r0.<init>(r2)
|
||||
throw r0
|
||||
L1e:
|
||||
int r5 = r1.I$0
|
||||
kotlin.ResultKt.throwOnFailure(r17) // Catch: java.lang.Exception -> L24
|
||||
goto L6f
|
||||
L24:
|
||||
r0 = move-exception
|
||||
r15 = r5
|
||||
r5 = r0
|
||||
r0 = r15
|
||||
goto L71
|
||||
L29:
|
||||
kotlin.ResultKt.throwOnFailure(r17)
|
||||
boolean r0 = r1.$showLoading
|
||||
if (r0 == 0) goto L47
|
||||
com.sistemasolton.itranvias.home.presentation.stopdetail.StopDetailViewModel r0 = r1.this$0
|
||||
com.sistemasolton.itranvias.home.presentation.stopdetail.StopDetailState r5 = r0.getState()
|
||||
r13 = 116(0x74, float:1.63E-43)
|
||||
r14 = 0
|
||||
r6 = 1
|
||||
r7 = 0
|
||||
r8 = 0
|
||||
r9 = 0
|
||||
r10 = 0
|
||||
r11 = 0
|
||||
r12 = 0
|
||||
com.sistemasolton.itranvias.home.presentation.stopdetail.StopDetailState r5 = com.sistemasolton.itranvias.home.presentation.stopdetail.StopDetailState.copy$default(r5, r6, r7, r8, r9, r10, r11, r12, r13, r14)
|
||||
com.sistemasolton.itranvias.home.presentation.stopdetail.StopDetailViewModel.access$setState(r0, r5)
|
||||
L47:
|
||||
r0 = 0
|
||||
L48:
|
||||
r5 = r0
|
||||
L49:
|
||||
if (r5 != 0) goto Lae
|
||||
com.sistemasolton.itranvias.home.presentation.stopdetail.StopDetailViewModel r0 = r1.this$0 // Catch: java.lang.Exception -> L24
|
||||
com.sistemasolton.itranvias.home.domain.usecase.GetInfoLocalUseCase r0 = com.sistemasolton.itranvias.home.presentation.stopdetail.StopDetailViewModel.access$getGetLocalInfoUseCase$p(r0) // Catch: java.lang.Exception -> L24
|
||||
kotlinx.coroutines.flow.Flow r0 = r0.invoke() // Catch: java.lang.Exception -> L24
|
||||
com.sistemasolton.itranvias.home.presentation.stopdetail.StopDetailViewModel$loadInfo$1$1 r6 = new com.sistemasolton.itranvias.home.presentation.stopdetail.StopDetailViewModel$loadInfo$1$1 // Catch: java.lang.Exception -> L24
|
||||
com.sistemasolton.itranvias.home.presentation.stopdetail.StopDetailViewModel r7 = r1.this$0 // Catch: java.lang.Exception -> L24
|
||||
java.lang.String r8 = r1.$stopId // Catch: java.lang.Exception -> L24
|
||||
r9 = 0
|
||||
r6.<init>(r7, r8, r9) // Catch: java.lang.Exception -> L24
|
||||
kotlin.jvm.functions.Function2 r6 = (kotlin.jvm.functions.Function2) r6 // Catch: java.lang.Exception -> L24
|
||||
r7 = r1
|
||||
kotlin.coroutines.Continuation r7 = (kotlin.coroutines.Continuation) r7 // Catch: java.lang.Exception -> L24
|
||||
r1.I$0 = r5 // Catch: java.lang.Exception -> L24
|
||||
r1.label = r4 // Catch: java.lang.Exception -> L24
|
||||
java.lang.Object r0 = kotlinx.coroutines.flow.FlowKt.collectLatest(r0, r6, r7) // Catch: java.lang.Exception -> L24
|
||||
if (r0 != r2) goto L6f
|
||||
return r2
|
||||
L6f:
|
||||
r5 = r4
|
||||
goto L49
|
||||
L71:
|
||||
java.lang.String r6 = r1.$stopId
|
||||
java.lang.String r7 = r5.getMessage()
|
||||
java.lang.StringBuilder r8 = new java.lang.StringBuilder
|
||||
java.lang.String r9 = "❌ Error al cargar detalles de la parada "
|
||||
r8.<init>(r9)
|
||||
java.lang.StringBuilder r6 = r8.append(r6)
|
||||
java.lang.String r8 = ": "
|
||||
java.lang.StringBuilder r6 = r6.append(r8)
|
||||
java.lang.StringBuilder r6 = r6.append(r7)
|
||||
java.lang.String r7 = ". Reintentando..."
|
||||
java.lang.StringBuilder r6 = r6.append(r7)
|
||||
java.lang.String r6 = r6.toString()
|
||||
java.io.PrintStream r7 = java.lang.System.out
|
||||
r7.println(r6)
|
||||
r5.printStackTrace()
|
||||
r5 = r1
|
||||
kotlin.coroutines.Continuation r5 = (kotlin.coroutines.Continuation) r5
|
||||
r1.I$0 = r0
|
||||
r1.label = r3
|
||||
r6 = 2000(0x7d0, double:9.88E-321)
|
||||
java.lang.Object r5 = kotlinx.coroutines.DelayKt.delay(r6, r5)
|
||||
if (r5 != r2) goto L48
|
||||
return r2
|
||||
Lae:
|
||||
kotlin.Unit r0 = kotlin.Unit.INSTANCE
|
||||
return r0
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.sistemasolton.itranvias.home.presentation.stopdetail.StopDetailViewModel.AnonymousClass1.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
|
||||
/* JADX INFO: renamed from: com.sistemasolton.itranvias.home.presentation.stopdetail.StopDetailViewModel$loadInfo$1$1, reason: invalid class name and collision with other inner class name */
|
||||
/* JADX INFO: compiled from: StopDetailViewModel.kt */
|
||||
@Metadata(d1 = {"\u0000\f\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\u0010\u0000\u001a\u00020\u00012\b\u0010\u0002\u001a\u0004\u0018\u00010\u0003H\n"}, d2 = {"<anonymous>", "", "infoDto", "Lcom/sistemasolton/itranvias/home/data/remote/dto/infodto/InfoDto;"}, k = 3, mv = {2, 1, 0}, xi = 48)
|
||||
@DebugMetadata(c = "com.sistemasolton.itranvias.home.presentation.stopdetail.StopDetailViewModel$loadInfo$1$1", f = "StopDetailViewModel.kt", i = {0, 1, 1}, l = {50, 51}, m = "invokeSuspend", n = {"infoDto", "infoDto", "detalle"}, s = {"L$0", "L$0", "L$1"})
|
||||
static final class C01221 extends SuspendLambda implements Function2<InfoDto, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ String $stopId;
|
||||
/* synthetic */ Object L$0;
|
||||
Object L$1;
|
||||
int label;
|
||||
final /* synthetic */ StopDetailViewModel this$0;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
C01221(StopDetailViewModel stopDetailViewModel, String str, Continuation<? super C01221> continuation) {
|
||||
super(2, continuation);
|
||||
this.this$0 = stopDetailViewModel;
|
||||
this.$stopId = str;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
C01221 c01221 = new C01221(this.this$0, this.$stopId, continuation);
|
||||
c01221.L$0 = obj;
|
||||
return c01221;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(InfoDto infoDto, Continuation<? super Unit> continuation) {
|
||||
return ((C01221) create(infoDto, continuation)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:22:0x0083 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:25:0x008d */
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct code enable 'Show inconsistent code' option in preferences
|
||||
*/
|
||||
public final java.lang.Object invokeSuspend(java.lang.Object r18) throws java.lang.Throwable {
|
||||
/*
|
||||
Method dump skipped, instruction units count: 266
|
||||
To view this dump change 'Code comments level' option to 'DEBUG'
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.sistemasolton.itranvias.home.presentation.stopdetail.StopDetailViewModel.AnonymousClass1.C01221.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static /* synthetic */ void loadInfo$default(StopDetailViewModel stopDetailViewModel, String str, boolean z, int i, Object obj) {
|
||||
if ((i & 2) != 0) {
|
||||
z = true;
|
||||
}
|
||||
stopDetailViewModel.loadInfo(str, z);
|
||||
}
|
||||
|
||||
public final void loadInfo(String stopId, boolean showLoading) {
|
||||
Intrinsics.checkNotNullParameter(stopId, "stopId");
|
||||
BuildersKt__Builders_commonKt.launch$default(ViewModelKt.getViewModelScope(this), null, null, new AnonymousClass1(showLoading, this, stopId, null), 3, null);
|
||||
}
|
||||
|
||||
public static /* synthetic */ void toggleFavorite$default(StopDetailViewModel stopDetailViewModel, String str, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
str = null;
|
||||
}
|
||||
stopDetailViewModel.toggleFavorite(str);
|
||||
}
|
||||
|
||||
public final void toggleFavorite(String alias) {
|
||||
BusesDto buses;
|
||||
DetalleParadaDto detalleParadaDto = getState().getDetalleParadaDto();
|
||||
if (detalleParadaDto == null || (buses = detalleParadaDto.getBuses()) == null) {
|
||||
return;
|
||||
}
|
||||
BuildersKt__Builders_commonKt.launch$default(ViewModelKt.getViewModelScope(this), null, null, new C06511(buses.getParada(), alias, null), 3, null);
|
||||
}
|
||||
|
||||
/* JADX INFO: renamed from: com.sistemasolton.itranvias.home.presentation.stopdetail.StopDetailViewModel$toggleFavorite$1, reason: invalid class name and case insensitive filesystem */
|
||||
/* JADX INFO: compiled from: StopDetailViewModel.kt */
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\u0018\u0002\u0010\u0000\u001a\u00020\u0001*\u00020\u0002H\n"}, d2 = {"<anonymous>", "", "Lkotlinx/coroutines/CoroutineScope;"}, k = 3, mv = {2, 1, 0}, xi = 48)
|
||||
@DebugMetadata(c = "com.sistemasolton.itranvias.home.presentation.stopdetail.StopDetailViewModel$toggleFavorite$1", f = "StopDetailViewModel.kt", i = {}, l = {86, 88}, m = "invokeSuspend", n = {}, s = {})
|
||||
static final class C06511 extends SuspendLambda implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ String $alias;
|
||||
final /* synthetic */ int $stopId;
|
||||
int label;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
C06511(int i, String str, Continuation<? super C06511> continuation) {
|
||||
super(2, continuation);
|
||||
this.$stopId = i;
|
||||
this.$alias = str;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
return StopDetailViewModel.this.new C06511(this.$stopId, this.$alias, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(CoroutineScope coroutineScope, Continuation<? super Unit> continuation) {
|
||||
return ((C06511) create(coroutineScope, continuation)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) throws Throwable {
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.label;
|
||||
try {
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
if (StopDetailViewModel.this.getState().isFavorite()) {
|
||||
this.label = 1;
|
||||
if (StopDetailViewModel.this.deleteStopFavoriteUseCase.invoke(String.valueOf(this.$stopId), this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
AddStopFavoriteUseCase addStopFavoriteUseCase = StopDetailViewModel.this.addStopFavoriteUseCase;
|
||||
String strValueOf = String.valueOf(this.$stopId);
|
||||
String str = this.$alias;
|
||||
if (str == null || StringsKt.isBlank(str)) {
|
||||
str = null;
|
||||
}
|
||||
this.label = 2;
|
||||
if (addStopFavoriteUseCase.invoke(new StopFavoriteEntity(strValueOf, str), this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (i != 1 && i != 2) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
StopDetailViewModel stopDetailViewModel = StopDetailViewModel.this;
|
||||
stopDetailViewModel.setState(StopDetailState.copy$default(stopDetailViewModel.getState(), false, false, null, null, null, !StopDetailViewModel.this.getState().isFavorite(), null, 95, null));
|
||||
} catch (Exception e) {
|
||||
System.out.println((Object) ("Error al cambiar favorito: " + e.getMessage()));
|
||||
e.printStackTrace();
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user