Initial version -- added millennium read funcionality
This commit is contained in:
+56
@@ -0,0 +1,56 @@
|
||||
package com.sistemasolton.itranvias.home.presentation.nearby;
|
||||
|
||||
import androidx.compose.foundation.layout.RowScope;
|
||||
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 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.Function3;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import org.jetbrains.compose.resources.StringResourcesKt;
|
||||
|
||||
/* JADX INFO: compiled from: NearbyScreen.kt */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
@Metadata(k = 3, mv = {2, 1, 0}, xi = 48)
|
||||
public final class ComposableSingletons$NearbyScreenKt {
|
||||
public static final ComposableSingletons$NearbyScreenKt INSTANCE = new ComposableSingletons$NearbyScreenKt();
|
||||
private static Function3<RowScope, Composer, Integer, Unit> lambda$514376406 = ComposableLambdaKt.composableLambdaInstance(514376406, false, new Function3<RowScope, Composer, Integer, Unit>() { // from class: com.sistemasolton.itranvias.home.presentation.nearby.ComposableSingletons$NearbyScreenKt$lambda$514376406$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(514376406, i, -1, "com.sistemasolton.itranvias.home.presentation.nearby.ComposableSingletons$NearbyScreenKt.lambda$514376406.<anonymous> (NearbyScreen.kt:172)");
|
||||
}
|
||||
TextKt.m2803Text4IGK_g(StringResourcesKt.stringResource(String0_commonMainKt.getOpen_settings(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();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
public final Function3<RowScope, Composer, Integer, Unit> getLambda$514376406$composeApp_release() {
|
||||
return lambda$514376406;
|
||||
}
|
||||
}
|
||||
+117
@@ -0,0 +1,117 @@
|
||||
package com.sistemasolton.itranvias.home.presentation.nearby;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Pair;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* JADX INFO: compiled from: NearbyScreen.kt */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
@Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\bv\u0018\u00002\u00020\u0001:\u0003\u0002\u0003\u0004\u0082\u0001\u0003\u0005\u0006\u0007¨\u0006\b"}, d2 = {"Lcom/sistemasolton/itranvias/home/presentation/nearby/LocationState;", "", "Loading", "Success", "Error", "Lcom/sistemasolton/itranvias/home/presentation/nearby/LocationState$Error;", "Lcom/sistemasolton/itranvias/home/presentation/nearby/LocationState$Loading;", "Lcom/sistemasolton/itranvias/home/presentation/nearby/LocationState$Success;", "composeApp_release"}, k = 1, mv = {2, 1, 0}, xi = 48)
|
||||
public interface LocationState {
|
||||
|
||||
/* JADX INFO: compiled from: NearbyScreen.kt */
|
||||
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\bÇ\u0002\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"Lcom/sistemasolton/itranvias/home/presentation/nearby/LocationState$Loading;", "Lcom/sistemasolton/itranvias/home/presentation/nearby/LocationState;", "<init>", "()V", "composeApp_release"}, k = 1, mv = {2, 1, 0}, xi = 48)
|
||||
public static final class Loading implements LocationState {
|
||||
public static final int $stable = 0;
|
||||
public static final Loading INSTANCE = new Loading();
|
||||
|
||||
private Loading() {
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX INFO: compiled from: NearbyScreen.kt */
|
||||
@Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0006\n\u0002\b\u0007\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\b\u0087\b\u0018\u00002\u00020\u0001B\u001b\u0012\u0012\u0010\u0002\u001a\u000e\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u00040\u0003¢\u0006\u0004\b\u0005\u0010\u0006J\u0015\u0010\t\u001a\u000e\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u00040\u0003HÆ\u0003J\u001f\u0010\n\u001a\u00020\u00002\u0014\b\u0002\u0010\u0002\u001a\u000e\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u00040\u0003HÆ\u0001J\u0013\u0010\u000b\u001a\u00020\f2\b\u0010\r\u001a\u0004\u0018\u00010\u000eHÖ\u0003J\t\u0010\u000f\u001a\u00020\u0010HÖ\u0001J\t\u0010\u0011\u001a\u00020\u0012HÖ\u0001R\u001d\u0010\u0002\u001a\u000e\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u00040\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\b¨\u0006\u0013"}, d2 = {"Lcom/sistemasolton/itranvias/home/presentation/nearby/LocationState$Success;", "Lcom/sistemasolton/itranvias/home/presentation/nearby/LocationState;", "coordinates", "Lkotlin/Pair;", "", "<init>", "(Lkotlin/Pair;)V", "getCoordinates", "()Lkotlin/Pair;", "component1", "copy", "equals", "", "other", "", "hashCode", "", "toString", "", "composeApp_release"}, k = 1, mv = {2, 1, 0}, xi = 48)
|
||||
public static final /* data */ class Success implements LocationState {
|
||||
public static final int $stable = 0;
|
||||
private final Pair<Double, Double> coordinates;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public static /* synthetic */ Success copy$default(Success success, Pair pair, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
pair = success.coordinates;
|
||||
}
|
||||
return success.copy(pair);
|
||||
}
|
||||
|
||||
public final Pair<Double, Double> component1() {
|
||||
return this.coordinates;
|
||||
}
|
||||
|
||||
public final Success copy(Pair<Double, Double> coordinates) {
|
||||
Intrinsics.checkNotNullParameter(coordinates, "coordinates");
|
||||
return new Success(coordinates);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
return (other instanceof Success) && Intrinsics.areEqual(this.coordinates, ((Success) other).coordinates);
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return this.coordinates.hashCode();
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "Success(coordinates=" + this.coordinates + ")";
|
||||
}
|
||||
|
||||
public Success(Pair<Double, Double> coordinates) {
|
||||
Intrinsics.checkNotNullParameter(coordinates, "coordinates");
|
||||
this.coordinates = coordinates;
|
||||
}
|
||||
|
||||
public final Pair<Double, Double> getCoordinates() {
|
||||
return this.coordinates;
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX INFO: compiled from: NearbyScreen.kt */
|
||||
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0007\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\b\u0087\b\u0018\u00002\u00020\u0001B\u000f\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0004\b\u0004\u0010\u0005J\t\u0010\b\u001a\u00020\u0003HÆ\u0003J\u0013\u0010\t\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u0003HÆ\u0001J\u0013\u0010\n\u001a\u00020\u000b2\b\u0010\f\u001a\u0004\u0018\u00010\rHÖ\u0003J\t\u0010\u000e\u001a\u00020\u000fHÖ\u0001J\t\u0010\u0010\u001a\u00020\u0003HÖ\u0001R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0006\u0010\u0007¨\u0006\u0011"}, d2 = {"Lcom/sistemasolton/itranvias/home/presentation/nearby/LocationState$Error;", "Lcom/sistemasolton/itranvias/home/presentation/nearby/LocationState;", "message", "", "<init>", "(Ljava/lang/String;)V", "getMessage", "()Ljava/lang/String;", "component1", "copy", "equals", "", "other", "", "hashCode", "", "toString", "composeApp_release"}, k = 1, mv = {2, 1, 0}, xi = 48)
|
||||
public static final /* data */ class Error implements LocationState {
|
||||
public static final int $stable = 0;
|
||||
private final String message;
|
||||
|
||||
public static /* synthetic */ Error copy$default(Error error, String str, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
str = error.message;
|
||||
}
|
||||
return error.copy(str);
|
||||
}
|
||||
|
||||
/* JADX INFO: renamed from: component1, reason: from getter */
|
||||
public final String getMessage() {
|
||||
return this.message;
|
||||
}
|
||||
|
||||
public final Error copy(String message) {
|
||||
Intrinsics.checkNotNullParameter(message, "message");
|
||||
return new Error(message);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
return (other instanceof Error) && Intrinsics.areEqual(this.message, ((Error) other).message);
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return this.message.hashCode();
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "Error(message=" + this.message + ")";
|
||||
}
|
||||
|
||||
public Error(String message) {
|
||||
Intrinsics.checkNotNullParameter(message, "message");
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public final String getMessage() {
|
||||
return this.message;
|
||||
}
|
||||
}
|
||||
}
|
||||
+147
@@ -0,0 +1,147 @@
|
||||
package com.sistemasolton.itranvias.home.presentation.nearby;
|
||||
|
||||
import androidx.compose.runtime.MutableState;
|
||||
import dev.jordond.compass.Location;
|
||||
import dev.jordond.compass.geolocation.Geolocator;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Pair;
|
||||
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: NearbyScreen.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.nearby.NearbyScreenKt$NearbyScreen$1$1", f = "NearbyScreen.kt", i = {}, l = {96, 103, 104}, m = "invokeSuspend", n = {}, s = {})
|
||||
final class NearbyScreenKt$NearbyScreen$1$1 extends SuspendLambda implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ int $distanceThresholdMeters;
|
||||
final /* synthetic */ Geolocator $geoLocation;
|
||||
final /* synthetic */ String $geolocationFailed;
|
||||
final /* synthetic */ MutableState<Pair<Double, Double>> $lastFetchCoords$delegate;
|
||||
final /* synthetic */ String $locationNotFound;
|
||||
final /* synthetic */ String $locationNotSupported;
|
||||
final /* synthetic */ MutableState<LocationState> $locationState$delegate;
|
||||
final /* synthetic */ String $permissionDenied;
|
||||
int label;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
NearbyScreenKt$NearbyScreen$1$1(Geolocator geolocator, String str, String str2, String str3, String str4, MutableState<LocationState> mutableState, MutableState<Pair<Double, Double>> mutableState2, int i, Continuation<? super NearbyScreenKt$NearbyScreen$1$1> continuation) {
|
||||
super(2, continuation);
|
||||
this.$geoLocation = geolocator;
|
||||
this.$locationNotSupported = str;
|
||||
this.$locationNotFound = str2;
|
||||
this.$permissionDenied = str3;
|
||||
this.$geolocationFailed = str4;
|
||||
this.$locationState$delegate = mutableState;
|
||||
this.$lastFetchCoords$delegate = mutableState2;
|
||||
this.$distanceThresholdMeters = i;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
return new NearbyScreenKt$NearbyScreen$1$1(this.$geoLocation, this.$locationNotSupported, this.$locationNotFound, this.$permissionDenied, this.$geolocationFailed, this.$locationState$delegate, this.$lastFetchCoords$delegate, this.$distanceThresholdMeters, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(CoroutineScope coroutineScope, Continuation<? super Unit> continuation) {
|
||||
return ((NearbyScreenKt$NearbyScreen$1$1) create(coroutineScope, continuation)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:22:0x00a7 A[RETURN] */
|
||||
@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 r14) throws java.lang.Throwable {
|
||||
/*
|
||||
Method dump skipped, instruction units count: 234
|
||||
To view this dump change 'Code comments level' option to 'DEBUG'
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreenKt$NearbyScreen$1$1.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
|
||||
/* JADX INFO: renamed from: com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreenKt$NearbyScreen$1$1$1, reason: invalid class name */
|
||||
/* JADX INFO: compiled from: NearbyScreen.kt */
|
||||
@Metadata(d1 = {"\u0000\f\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0003H\n"}, d2 = {"<anonymous>", "", "locationUpdate", "Ldev/jordond/compass/Location;"}, k = 3, mv = {2, 1, 0}, xi = 48)
|
||||
@DebugMetadata(c = "com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreenKt$NearbyScreen$1$1$1", f = "NearbyScreen.kt", i = {}, l = {}, m = "invokeSuspend", n = {}, s = {})
|
||||
static final class AnonymousClass1 extends SuspendLambda implements Function2<Location, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ int $distanceThresholdMeters;
|
||||
final /* synthetic */ MutableState<Pair<Double, Double>> $lastFetchCoords$delegate;
|
||||
final /* synthetic */ MutableState<LocationState> $locationState$delegate;
|
||||
/* synthetic */ Object L$0;
|
||||
int label;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
AnonymousClass1(MutableState<Pair<Double, Double>> mutableState, int i, MutableState<LocationState> mutableState2, Continuation<? super AnonymousClass1> continuation) {
|
||||
super(2, continuation);
|
||||
this.$lastFetchCoords$delegate = mutableState;
|
||||
this.$distanceThresholdMeters = i;
|
||||
this.$locationState$delegate = mutableState2;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
AnonymousClass1 anonymousClass1 = new AnonymousClass1(this.$lastFetchCoords$delegate, this.$distanceThresholdMeters, this.$locationState$delegate, continuation);
|
||||
anonymousClass1.L$0 = obj;
|
||||
return anonymousClass1;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Location location, Continuation<? super Unit> continuation) {
|
||||
return ((AnonymousClass1) create(location, continuation)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0039 */
|
||||
@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 r5) throws java.lang.Throwable {
|
||||
/*
|
||||
r4 = this;
|
||||
kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r0 = r4.label
|
||||
if (r0 != 0) goto L4d
|
||||
kotlin.ResultKt.throwOnFailure(r5)
|
||||
java.lang.Object r5 = r4.L$0
|
||||
dev.jordond.compass.Location r5 = (dev.jordond.compass.Location) r5
|
||||
dev.jordond.compass.Coordinates r5 = r5.getCoordinates()
|
||||
double r0 = r5.getLatitude()
|
||||
java.lang.Double r0 = kotlin.coroutines.jvm.internal.Boxing.boxDouble(r0)
|
||||
double r1 = r5.getLongitude()
|
||||
java.lang.Double r5 = kotlin.coroutines.jvm.internal.Boxing.boxDouble(r1)
|
||||
kotlin.Pair r5 = kotlin.TuplesKt.to(r0, r5)
|
||||
androidx.compose.runtime.MutableState<kotlin.Pair<java.lang.Double, java.lang.Double>> r0 = r4.$lastFetchCoords$delegate
|
||||
kotlin.Pair r0 = com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreenKt.access$NearbyScreen$lambda$5(r0)
|
||||
if (r0 == 0) goto L39
|
||||
int r1 = r4.$distanceThresholdMeters
|
||||
double r2 = com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreenKt.distanceBetween(r0, r5)
|
||||
double r0 = (double) r1
|
||||
int r0 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1))
|
||||
if (r0 < 0) goto L4a
|
||||
L39:
|
||||
androidx.compose.runtime.MutableState<com.sistemasolton.itranvias.home.presentation.nearby.LocationState> r0 = r4.$locationState$delegate
|
||||
com.sistemasolton.itranvias.home.presentation.nearby.LocationState$Success r1 = new com.sistemasolton.itranvias.home.presentation.nearby.LocationState$Success
|
||||
r1.<init>(r5)
|
||||
com.sistemasolton.itranvias.home.presentation.nearby.LocationState r1 = (com.sistemasolton.itranvias.home.presentation.nearby.LocationState) r1
|
||||
com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreenKt.access$NearbyScreen$lambda$3(r0, r1)
|
||||
androidx.compose.runtime.MutableState<kotlin.Pair<java.lang.Double, java.lang.Double>> r0 = r4.$lastFetchCoords$delegate
|
||||
com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreenKt.access$NearbyScreen$lambda$6(r0, r5)
|
||||
L4a:
|
||||
kotlin.Unit r5 = kotlin.Unit.INSTANCE
|
||||
return r5
|
||||
L4d:
|
||||
java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
|
||||
java.lang.String r0 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r5.<init>(r0)
|
||||
throw r5
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreenKt$NearbyScreen$1$1.AnonymousClass1.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
}
|
||||
+50
@@ -0,0 +1,50 @@
|
||||
package com.sistemasolton.itranvias.home.presentation.nearby;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Pair;
|
||||
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: NearbyScreen.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.nearby.NearbyScreenKt$NearbyScreen$6$1", f = "NearbyScreen.kt", i = {}, l = {}, m = "invokeSuspend", n = {}, s = {})
|
||||
final class NearbyScreenKt$NearbyScreen$6$1 extends SuspendLambda implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ Pair<Double, Double> $coords;
|
||||
final /* synthetic */ NearbyViewModel $viewModel;
|
||||
int label;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
NearbyScreenKt$NearbyScreen$6$1(NearbyViewModel nearbyViewModel, Pair<Double, Double> pair, Continuation<? super NearbyScreenKt$NearbyScreen$6$1> continuation) {
|
||||
super(2, continuation);
|
||||
this.$viewModel = nearbyViewModel;
|
||||
this.$coords = pair;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
return new NearbyScreenKt$NearbyScreen$6$1(this.$viewModel, this.$coords, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(CoroutineScope coroutineScope, Continuation<? super Unit> continuation) {
|
||||
return ((NearbyScreenKt$NearbyScreen$6$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.$viewModel.loadInfoAndNearbyStops(this.$coords.getFirst().doubleValue(), this.$coords.getSecond().doubleValue());
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
+71
@@ -0,0 +1,71 @@
|
||||
package com.sistemasolton.itranvias.home.presentation.nearby;
|
||||
|
||||
import androidx.compose.foundation.lazy.LazyItemScope;
|
||||
import androidx.compose.runtime.Composer;
|
||||
import androidx.compose.runtime.ComposerKt;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.functions.Function4;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* JADX INFO: compiled from: NearbyScreen.kt */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
@Metadata(k = 3, mv = {2, 1, 0}, xi = 48)
|
||||
final class NearbyScreenKt$NearbyScreen$7$4$5$1$1 implements Function4<LazyItemScope, Integer, Composer, Integer, Unit> {
|
||||
final /* synthetic */ Function1<String, Unit> $onStopDetail;
|
||||
final /* synthetic */ List<ParadaConDistancia> $paradasCercanas;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
NearbyScreenKt$NearbyScreen$7$4$5$1$1(List<ParadaConDistancia> list, Function1<? super String, Unit> function1) {
|
||||
this.$paradasCercanas = list;
|
||||
this.$onStopDetail = function1;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function4
|
||||
public /* bridge */ /* synthetic */ Unit invoke(LazyItemScope lazyItemScope, Integer num, Composer composer, Integer num2) {
|
||||
invoke(lazyItemScope, num.intValue(), composer, num2.intValue());
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
|
||||
public final void invoke(LazyItemScope items, int i, Composer composer, int i2) {
|
||||
Intrinsics.checkNotNullParameter(items, "$this$items");
|
||||
if ((i2 & 48) == 0) {
|
||||
i2 |= composer.changed(i) ? 32 : 16;
|
||||
}
|
||||
if ((i2 & 145) == 144 && composer.getSkipping()) {
|
||||
composer.skipToGroupEnd();
|
||||
return;
|
||||
}
|
||||
if (ComposerKt.isTraceInProgress()) {
|
||||
ComposerKt.traceEventStart(1088372756, i2, -1, "com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreen.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous> (NearbyScreen.kt:288)");
|
||||
}
|
||||
final ParadaConDistancia paradaConDistancia = this.$paradasCercanas.get(i);
|
||||
composer.startReplaceGroup(-1633490746);
|
||||
boolean zChanged = composer.changed(this.$onStopDetail) | composer.changedInstance(paradaConDistancia);
|
||||
final Function1<String, Unit> function1 = this.$onStopDetail;
|
||||
Object objRememberedValue = composer.rememberedValue();
|
||||
if (zChanged || objRememberedValue == Composer.INSTANCE.getEmpty()) {
|
||||
objRememberedValue = new Function0() { // from class: com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreenKt$NearbyScreen$7$4$5$1$1$$ExternalSyntheticLambda0
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final Object invoke() {
|
||||
return NearbyScreenKt$NearbyScreen$7$4$5$1$1.invoke$lambda$1$lambda$0(function1, paradaConDistancia);
|
||||
}
|
||||
};
|
||||
composer.updateRememberedValue(objRememberedValue);
|
||||
}
|
||||
composer.endReplaceGroup();
|
||||
NearbyScreenKt.ParadaItem(paradaConDistancia, (Function0) objRememberedValue, composer, 0);
|
||||
if (ComposerKt.isTraceInProgress()) {
|
||||
ComposerKt.traceEventEnd();
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final Unit invoke$lambda$1$lambda$0(Function1 function1, ParadaConDistancia paradaConDistancia) {
|
||||
function1.invoke(String.valueOf(paradaConDistancia.getParada().getId()));
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
+1227
File diff suppressed because it is too large
Load Diff
+76
@@ -0,0 +1,76 @@
|
||||
package com.sistemasolton.itranvias.home.presentation.nearby;
|
||||
|
||||
import com.google.android.gms.maps.CameraUpdate;
|
||||
import com.google.android.gms.maps.CameraUpdateFactory;
|
||||
import com.google.android.gms.maps.model.LatLng;
|
||||
import com.google.android.gms.maps.model.LatLngBounds;
|
||||
import com.google.maps.android.compose.CameraPositionState;
|
||||
import java.util.List;
|
||||
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 kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* JADX INFO: compiled from: NearbyScreen.android.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.nearby.NearbyScreen_androidKt$GoogleMaps$2$1", f = "NearbyScreen.android.kt", i = {}, l = {}, m = "invokeSuspend", n = {}, s = {})
|
||||
final class NearbyScreen_androidKt$GoogleMaps$2$1 extends SuspendLambda implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ CameraPositionState $cameraPositionState;
|
||||
final /* synthetic */ LatLng $location;
|
||||
final /* synthetic */ List<ParadaConDistancia> $paradasCercanas;
|
||||
int label;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
NearbyScreen_androidKt$GoogleMaps$2$1(List<ParadaConDistancia> list, LatLng latLng, CameraPositionState cameraPositionState, Continuation<? super NearbyScreen_androidKt$GoogleMaps$2$1> continuation) {
|
||||
super(2, continuation);
|
||||
this.$paradasCercanas = list;
|
||||
this.$location = latLng;
|
||||
this.$cameraPositionState = cameraPositionState;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
return new NearbyScreen_androidKt$GoogleMaps$2$1(this.$paradasCercanas, this.$location, this.$cameraPositionState, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(CoroutineScope coroutineScope, Continuation<? super Unit> continuation) {
|
||||
return ((NearbyScreen_androidKt$GoogleMaps$2$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);
|
||||
if (!this.$paradasCercanas.isEmpty()) {
|
||||
LatLngBounds.Builder builder = LatLngBounds.builder();
|
||||
Intrinsics.checkNotNullExpressionValue(builder, "builder(...)");
|
||||
builder.include(this.$location);
|
||||
for (ParadaConDistancia paradaConDistancia : this.$paradasCercanas) {
|
||||
builder.include(new LatLng(paradaConDistancia.getParada().getPosy(), paradaConDistancia.getParada().getPosx()));
|
||||
}
|
||||
LatLngBounds latLngBoundsBuild = builder.build();
|
||||
Intrinsics.checkNotNullExpressionValue(latLngBoundsBuild, "build(...)");
|
||||
CameraPositionState cameraPositionState = this.$cameraPositionState;
|
||||
CameraUpdate cameraUpdateNewLatLngBounds = CameraUpdateFactory.newLatLngBounds(latLngBoundsBuild, 100);
|
||||
Intrinsics.checkNotNullExpressionValue(cameraUpdateNewLatLngBounds, "newLatLngBounds(...)");
|
||||
cameraPositionState.move(cameraUpdateNewLatLngBounds);
|
||||
} else {
|
||||
CameraPositionState cameraPositionState2 = this.$cameraPositionState;
|
||||
CameraUpdate cameraUpdateNewLatLngZoom = CameraUpdateFactory.newLatLngZoom(this.$location, 15.0f);
|
||||
Intrinsics.checkNotNullExpressionValue(cameraUpdateNewLatLngZoom, "newLatLngZoom(...)");
|
||||
cameraPositionState2.move(cameraUpdateNewLatLngZoom);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
+194
@@ -0,0 +1,194 @@
|
||||
package com.sistemasolton.itranvias.home.presentation.nearby;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.net.Uri;
|
||||
import androidx.compose.foundation.layout.SizeKt;
|
||||
import androidx.compose.runtime.Composer;
|
||||
import androidx.compose.runtime.ComposerKt;
|
||||
import androidx.compose.runtime.EffectsKt;
|
||||
import androidx.compose.runtime.ProvidableCompositionLocal;
|
||||
import androidx.compose.runtime.RecomposeScopeImplKt;
|
||||
import androidx.compose.runtime.ScopeUpdateScope;
|
||||
import androidx.compose.runtime.internal.ComposableLambdaKt;
|
||||
import androidx.compose.runtime.saveable.RememberSaveableKt;
|
||||
import androidx.compose.runtime.saveable.Saver;
|
||||
import androidx.compose.ui.Modifier;
|
||||
import androidx.compose.ui.platform.AndroidCompositionLocals_androidKt;
|
||||
import androidx.core.content.ContextCompat;
|
||||
import androidx.core.view.PointerIconCompat;
|
||||
import com.google.android.gms.maps.model.LatLng;
|
||||
import com.google.maps.android.compose.CameraPositionState;
|
||||
import com.google.maps.android.compose.GoogleMapKt;
|
||||
import com.google.maps.android.compose.MapProperties;
|
||||
import com.google.maps.android.compose.MapUiSettings;
|
||||
import com.google.maps.android.compose.MarkerKt;
|
||||
import com.google.maps.android.compose.MarkerState;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* JADX INFO: compiled from: NearbyScreen.android.kt */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
@Metadata(d1 = {"\u0000$\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0006\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\u001a/\u0010\u0000\u001a\u00020\u00012\b\u0010\u0002\u001a\u0004\u0018\u00010\u00032\b\u0010\u0004\u001a\u0004\u0018\u00010\u00032\f\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\u00070\u0006H\u0007¢\u0006\u0002\u0010\b\u001a\u0015\u0010\t\u001a\u00020\u00012\u0006\u0010\n\u001a\u00020\u000bH\u0007¢\u0006\u0002\u0010\f¨\u0006\r"}, d2 = {"GoogleMaps", "", "latitude", "", "longitude", "paradasCercanas", "", "Lcom/sistemasolton/itranvias/home/presentation/nearby/ParadaConDistancia;", "(Ljava/lang/Double;Ljava/lang/Double;Ljava/util/List;Landroidx/compose/runtime/Composer;I)V", "SettingsController", "state", "Lcom/sistemasolton/itranvias/home/presentation/nearby/SettingsState;", "(Lcom/sistemasolton/itranvias/home/presentation/nearby/SettingsState;Landroidx/compose/runtime/Composer;I)V", "composeApp_release"}, k = 2, mv = {2, 1, 0}, xi = 48)
|
||||
public final class NearbyScreen_androidKt {
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final Unit GoogleMaps$lambda$0(Double d, Double d2, List list, int i, Composer composer, int i2) {
|
||||
GoogleMaps(d, d2, list, composer, RecomposeScopeImplKt.updateChangedFlags(i | 1));
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final Unit GoogleMaps$lambda$2(Double d, Double d2, List list, int i, Composer composer, int i2) {
|
||||
GoogleMaps(d, d2, list, composer, RecomposeScopeImplKt.updateChangedFlags(i | 1));
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final Unit SettingsController$lambda$3(SettingsState settingsState, int i, Composer composer, int i2) {
|
||||
SettingsController(settingsState, composer, RecomposeScopeImplKt.updateChangedFlags(i | 1));
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
|
||||
public static final void GoogleMaps(final Double d, final Double d2, final List<ParadaConDistancia> paradasCercanas, Composer composer, final int i) {
|
||||
int i2;
|
||||
Composer composer2;
|
||||
Intrinsics.checkNotNullParameter(paradasCercanas, "paradasCercanas");
|
||||
Composer composerStartRestartGroup = composer.startRestartGroup(429483887);
|
||||
if ((i & 6) == 0) {
|
||||
i2 = (composerStartRestartGroup.changed(d) ? 4 : 2) | i;
|
||||
} else {
|
||||
i2 = i;
|
||||
}
|
||||
if ((i & 48) == 0) {
|
||||
i2 |= composerStartRestartGroup.changed(d2) ? 32 : 16;
|
||||
}
|
||||
if ((i & 384) == 0) {
|
||||
i2 |= composerStartRestartGroup.changedInstance(paradasCercanas) ? 256 : 128;
|
||||
}
|
||||
int i3 = i2;
|
||||
if ((i3 & 147) != 146 || !composerStartRestartGroup.getSkipping()) {
|
||||
if (ComposerKt.isTraceInProgress()) {
|
||||
ComposerKt.traceEventStart(429483887, i3, -1, "com.sistemasolton.itranvias.home.presentation.nearby.GoogleMaps (NearbyScreen.android.kt:26)");
|
||||
}
|
||||
if (d == null || d2 == null) {
|
||||
if (ComposerKt.isTraceInProgress()) {
|
||||
ComposerKt.traceEventEnd();
|
||||
}
|
||||
ScopeUpdateScope scopeUpdateScopeEndRestartGroup = composerStartRestartGroup.endRestartGroup();
|
||||
if (scopeUpdateScopeEndRestartGroup != null) {
|
||||
scopeUpdateScopeEndRestartGroup.updateScope(new Function2() { // from class: com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreen_androidKt$$ExternalSyntheticLambda1
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return NearbyScreen_androidKt.GoogleMaps$lambda$0(d, d2, paradasCercanas, i, (Composer) obj, ((Integer) obj2).intValue());
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
composerStartRestartGroup.startReplaceableGroup(-1911106014);
|
||||
CameraPositionState cameraPositionState = (CameraPositionState) RememberSaveableKt.m3946rememberSaveable(new Object[0], (Saver) CameraPositionState.INSTANCE.getSaver(), (String) null, (Function0) new Function0<CameraPositionState>() { // from class: com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreen_androidKt$GoogleMaps$$inlined$rememberCameraPositionState$1
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final CameraPositionState invoke() {
|
||||
return new CameraPositionState(null, 1, null);
|
||||
}
|
||||
}, composerStartRestartGroup, 72, 0);
|
||||
composerStartRestartGroup.endReplaceableGroup();
|
||||
LatLng latLng = new LatLng(d.doubleValue(), d2.doubleValue());
|
||||
composerStartRestartGroup.startReplaceGroup(-1746271574);
|
||||
boolean zChangedInstance = composerStartRestartGroup.changedInstance(paradasCercanas) | composerStartRestartGroup.changedInstance(latLng) | composerStartRestartGroup.changedInstance(cameraPositionState);
|
||||
NearbyScreen_androidKt$GoogleMaps$2$1 nearbyScreen_androidKt$GoogleMaps$2$1RememberedValue = composerStartRestartGroup.rememberedValue();
|
||||
if (zChangedInstance || nearbyScreen_androidKt$GoogleMaps$2$1RememberedValue == Composer.INSTANCE.getEmpty()) {
|
||||
nearbyScreen_androidKt$GoogleMaps$2$1RememberedValue = new NearbyScreen_androidKt$GoogleMaps$2$1(paradasCercanas, latLng, cameraPositionState, null);
|
||||
composerStartRestartGroup.updateRememberedValue(nearbyScreen_androidKt$GoogleMaps$2$1RememberedValue);
|
||||
}
|
||||
composerStartRestartGroup.endReplaceGroup();
|
||||
EffectsKt.LaunchedEffect(paradasCercanas, latLng, (Function2) nearbyScreen_androidKt$GoogleMaps$2$1RememberedValue, composerStartRestartGroup, (i3 >> 6) & 14);
|
||||
composer2 = composerStartRestartGroup;
|
||||
GoogleMapKt.GoogleMap(false, SizeKt.fillMaxSize$default(Modifier.INSTANCE, 0.0f, 1, null), cameraPositionState, null, null, new MapProperties(false, false, true, false, null, null, null, 0.0f, 0.0f, 507, null), null, new MapUiSettings(false, false, false, true, false, false, false, false, false, false, PointerIconCompat.TYPE_VERTICAL_DOUBLE_ARROW, null), null, null, null, null, null, null, null, null, ComposableLambdaKt.rememberComposableLambda(-174689516, true, new Function2<Composer, Integer, Unit>() { // from class: com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreen_androidKt.GoogleMaps.3
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public /* bridge */ /* synthetic */ Unit invoke(Composer composer3, Integer num) {
|
||||
invoke(composer3, num.intValue());
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
|
||||
public final void invoke(Composer composer3, int i4) {
|
||||
if ((i4 & 3) == 2 && composer3.getSkipping()) {
|
||||
composer3.skipToGroupEnd();
|
||||
return;
|
||||
}
|
||||
if (ComposerKt.isTraceInProgress()) {
|
||||
ComposerKt.traceEventStart(-174689516, i4, -1, "com.sistemasolton.itranvias.home.presentation.nearby.GoogleMaps.<anonymous> (NearbyScreen.android.kt:54)");
|
||||
}
|
||||
for (ParadaConDistancia paradaConDistancia : paradasCercanas) {
|
||||
MarkerKt.m7830Markerqld6geY(MarkerKt.rememberMarkerState(null, new LatLng(paradaConDistancia.getParada().getPosy(), paradaConDistancia.getParada().getPosx()), composer3, 0, 1), null, 0.0f, 0L, false, false, null, 0L, 0.0f, null, null, paradaConDistancia.getParada().getId() + " - " + paradaConDistancia.getParada().getNombre(), false, 0.0f, null, null, null, null, composer3, MarkerState.$stable, 0, 260094);
|
||||
}
|
||||
if (ComposerKt.isTraceInProgress()) {
|
||||
ComposerKt.traceEventEnd();
|
||||
}
|
||||
}
|
||||
}, composerStartRestartGroup, 54), composer2, (CameraPositionState.$stable << 6) | 48 | (MapProperties.$stable << 15) | (MapUiSettings.$stable << 21), 1572864, 65369);
|
||||
if (ComposerKt.isTraceInProgress()) {
|
||||
ComposerKt.traceEventEnd();
|
||||
}
|
||||
} else {
|
||||
composerStartRestartGroup.skipToGroupEnd();
|
||||
composer2 = composerStartRestartGroup;
|
||||
}
|
||||
ScopeUpdateScope scopeUpdateScopeEndRestartGroup2 = composer2.endRestartGroup();
|
||||
if (scopeUpdateScopeEndRestartGroup2 != null) {
|
||||
scopeUpdateScopeEndRestartGroup2.updateScope(new Function2() { // from class: com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreen_androidKt$$ExternalSyntheticLambda2
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return NearbyScreen_androidKt.GoogleMaps$lambda$2(d, d2, paradasCercanas, i, (Composer) obj, ((Integer) obj2).intValue());
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
public static final void SettingsController(final SettingsState state, Composer composer, final int i) {
|
||||
int i2;
|
||||
Intrinsics.checkNotNullParameter(state, "state");
|
||||
Composer composerStartRestartGroup = composer.startRestartGroup(1911795012);
|
||||
if ((i & 6) == 0) {
|
||||
i2 = (composerStartRestartGroup.changed(state) ? 4 : 2) | i;
|
||||
} else {
|
||||
i2 = i;
|
||||
}
|
||||
if ((i2 & 3) != 2 || !composerStartRestartGroup.getSkipping()) {
|
||||
if (ComposerKt.isTraceInProgress()) {
|
||||
ComposerKt.traceEventStart(1911795012, i2, -1, "com.sistemasolton.itranvias.home.presentation.nearby.SettingsController (NearbyScreen.android.kt:69)");
|
||||
}
|
||||
if (state.getOpen$composeApp_release()) {
|
||||
ProvidableCompositionLocal<Context> localContext = AndroidCompositionLocals_androidKt.getLocalContext();
|
||||
ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, 2023513938, "CC(<get-current>):CompositionLocal.kt#9igjgp");
|
||||
Object objConsume = composerStartRestartGroup.consume(localContext);
|
||||
ComposerKt.sourceInformationMarkerEnd(composerStartRestartGroup);
|
||||
Context context = (Context) objConsume;
|
||||
Intent intent = new Intent("android.settings.APPLICATION_DETAILS_SETTINGS");
|
||||
intent.setData(Uri.fromParts("package", context.getPackageName(), null));
|
||||
ContextCompat.startActivity(context, intent, null);
|
||||
state.setOpen$composeApp_release(false);
|
||||
}
|
||||
if (ComposerKt.isTraceInProgress()) {
|
||||
ComposerKt.traceEventEnd();
|
||||
}
|
||||
} else {
|
||||
composerStartRestartGroup.skipToGroupEnd();
|
||||
}
|
||||
ScopeUpdateScope scopeUpdateScopeEndRestartGroup = composerStartRestartGroup.endRestartGroup();
|
||||
if (scopeUpdateScopeEndRestartGroup != null) {
|
||||
scopeUpdateScopeEndRestartGroup.updateScope(new Function2() { // from class: com.sistemasolton.itranvias.home.presentation.nearby.NearbyScreen_androidKt$$ExternalSyntheticLambda0
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return NearbyScreen_androidKt.SettingsController$lambda$3(state, i, (Composer) obj, ((Integer) obj2).intValue());
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
package com.sistemasolton.itranvias.home.presentation.nearby;
|
||||
|
||||
import com.sistemasolton.itranvias.home.data.remote.dto.infodto.InfoDto;
|
||||
import com.sistemasolton.itranvias.home.data.remote.dto.nearbystopdto.NearbyStopsDto;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* JADX INFO: compiled from: NearbyState.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\u0012\n\u0002\u0010\b\n\u0002\b\u0002\b\u0087\b\u0018\u00002\u00020\u0001B?\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¢\u0006\u0004\b\u000b\u0010\fJ\t\u0010\u0014\u001a\u00020\u0003HÆ\u0003J\t\u0010\u0015\u001a\u00020\u0003HÆ\u0003J\u000b\u0010\u0016\u001a\u0004\u0018\u00010\u0006HÆ\u0003J\u000b\u0010\u0017\u001a\u0004\u0018\u00010\bHÆ\u0003J\u000b\u0010\u0018\u001a\u0004\u0018\u00010\nHÆ\u0003JA\u0010\u0019\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\nHÆ\u0001J\u0013\u0010\u001a\u001a\u00020\u00032\b\u0010\u001b\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u0010\u001c\u001a\u00020\u001dHÖ\u0001J\t\u0010\u001e\u001a\u00020\bHÖ\u0001R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0002\u0010\rR\u0011\u0010\u0004\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0004\u0010\rR\u0013\u0010\u0005\u001a\u0004\u0018\u00010\u0006¢\u0006\b\n\u0000\u001a\u0004\b\u000e\u0010\u000fR\u0013\u0010\u0007\u001a\u0004\u0018\u00010\b¢\u0006\b\n\u0000\u001a\u0004\b\u0010\u0010\u0011R\u0013\u0010\t\u001a\u0004\u0018\u00010\n¢\u0006\b\n\u0000\u001a\u0004\b\u0012\u0010\u0013¨\u0006\u001f"}, d2 = {"Lcom/sistemasolton/itranvias/home/presentation/nearby/NearbyState;", "", "isLoading", "", "isError", "infoDto", "Lcom/sistemasolton/itranvias/home/data/remote/dto/infodto/InfoDto;", "errorMessage", "", "nearbyStopsDto", "Lcom/sistemasolton/itranvias/home/data/remote/dto/nearbystopdto/NearbyStopsDto;", "<init>", "(ZZLcom/sistemasolton/itranvias/home/data/remote/dto/infodto/InfoDto;Ljava/lang/String;Lcom/sistemasolton/itranvias/home/data/remote/dto/nearbystopdto/NearbyStopsDto;)V", "()Z", "getInfoDto", "()Lcom/sistemasolton/itranvias/home/data/remote/dto/infodto/InfoDto;", "getErrorMessage", "()Ljava/lang/String;", "getNearbyStopsDto", "()Lcom/sistemasolton/itranvias/home/data/remote/dto/nearbystopdto/NearbyStopsDto;", "component1", "component2", "component3", "component4", "component5", "copy", "equals", "other", "hashCode", "", "toString", "composeApp_release"}, k = 1, mv = {2, 1, 0}, xi = 48)
|
||||
public final /* data */ class NearbyState {
|
||||
public static final int $stable = 8;
|
||||
private final String errorMessage;
|
||||
private final InfoDto infoDto;
|
||||
private final boolean isError;
|
||||
private final boolean isLoading;
|
||||
private final NearbyStopsDto nearbyStopsDto;
|
||||
|
||||
public NearbyState() {
|
||||
this(false, false, null, null, null, 31, null);
|
||||
}
|
||||
|
||||
public static /* synthetic */ NearbyState copy$default(NearbyState nearbyState, boolean z, boolean z2, InfoDto infoDto, String str, NearbyStopsDto nearbyStopsDto, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
z = nearbyState.isLoading;
|
||||
}
|
||||
if ((i & 2) != 0) {
|
||||
z2 = nearbyState.isError;
|
||||
}
|
||||
boolean z3 = z2;
|
||||
if ((i & 4) != 0) {
|
||||
infoDto = nearbyState.infoDto;
|
||||
}
|
||||
InfoDto infoDto2 = infoDto;
|
||||
if ((i & 8) != 0) {
|
||||
str = nearbyState.errorMessage;
|
||||
}
|
||||
String str2 = str;
|
||||
if ((i & 16) != 0) {
|
||||
nearbyStopsDto = nearbyState.nearbyStopsDto;
|
||||
}
|
||||
return nearbyState.copy(z, z3, infoDto2, str2, nearbyStopsDto);
|
||||
}
|
||||
|
||||
/* 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 NearbyStopsDto getNearbyStopsDto() {
|
||||
return this.nearbyStopsDto;
|
||||
}
|
||||
|
||||
public final NearbyState copy(boolean isLoading, boolean isError, InfoDto infoDto, String errorMessage, NearbyStopsDto nearbyStopsDto) {
|
||||
return new NearbyState(isLoading, isError, infoDto, errorMessage, nearbyStopsDto);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
if (!(other instanceof NearbyState)) {
|
||||
return false;
|
||||
}
|
||||
NearbyState nearbyState = (NearbyState) other;
|
||||
return this.isLoading == nearbyState.isLoading && this.isError == nearbyState.isError && Intrinsics.areEqual(this.infoDto, nearbyState.infoDto) && Intrinsics.areEqual(this.errorMessage, nearbyState.errorMessage) && Intrinsics.areEqual(this.nearbyStopsDto, nearbyState.nearbyStopsDto);
|
||||
}
|
||||
|
||||
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;
|
||||
NearbyStopsDto nearbyStopsDto = this.nearbyStopsDto;
|
||||
return iHashCode3 + (nearbyStopsDto != null ? nearbyStopsDto.hashCode() : 0);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "NearbyState(isLoading=" + this.isLoading + ", isError=" + this.isError + ", infoDto=" + this.infoDto + ", errorMessage=" + this.errorMessage + ", nearbyStopsDto=" + this.nearbyStopsDto + ")";
|
||||
}
|
||||
|
||||
public NearbyState(boolean z, boolean z2, InfoDto infoDto, String str, NearbyStopsDto nearbyStopsDto) {
|
||||
this.isLoading = z;
|
||||
this.isError = z2;
|
||||
this.infoDto = infoDto;
|
||||
this.errorMessage = str;
|
||||
this.nearbyStopsDto = nearbyStopsDto;
|
||||
}
|
||||
|
||||
public /* synthetic */ NearbyState(boolean z, boolean z2, InfoDto infoDto, String str, NearbyStopsDto nearbyStopsDto, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this((i & 1) != 0 ? false : z, (i & 2) == 0 ? z2 : false, (i & 4) != 0 ? null : infoDto, (i & 8) != 0 ? null : str, (i & 16) != 0 ? null : nearbyStopsDto);
|
||||
}
|
||||
|
||||
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 NearbyStopsDto getNearbyStopsDto() {
|
||||
return this.nearbyStopsDto;
|
||||
}
|
||||
}
|
||||
+191
@@ -0,0 +1,191 @@
|
||||
package com.sistemasolton.itranvias.home.presentation.nearby;
|
||||
|
||||
import androidx.compose.runtime.MutableState;
|
||||
import androidx.compose.runtime.SnapshotStateKt__SnapshotStateKt;
|
||||
import androidx.core.view.MotionEventCompat;
|
||||
import androidx.lifecycle.ViewModel;
|
||||
import androidx.lifecycle.ViewModelKt;
|
||||
import com.sistemasolton.itranvias.home.data.remote.dto.infodto.InfoDto;
|
||||
import com.sistemasolton.itranvias.home.data.remote.dto.nearbystopdto.NearbyStopsDto;
|
||||
import com.sistemasolton.itranvias.home.domain.usecase.GetInfoLocalUseCase;
|
||||
import com.sistemasolton.itranvias.home.domain.usecase.GetInfoUseCase;
|
||||
import com.sistemasolton.itranvias.home.domain.usecase.GetNearbyStopsUseCase;
|
||||
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 kotlinx.coroutines.BuildersKt__Builders_commonKt;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.flow.FlowKt;
|
||||
|
||||
/* JADX INFO: compiled from: NearbyViewModel.kt */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
@Metadata(d1 = {"\u00004\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\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0006\n\u0002\b\u0002\b\u0007\u0018\u00002\u00020\u0001B\u001f\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007¢\u0006\u0004\b\b\u0010\tJ\u001a\u0010\u0013\u001a\u00020\u00142\b\b\u0002\u0010\u0015\u001a\u00020\u00162\b\b\u0002\u0010\u0017\u001a\u00020\u0016R\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+\u0010\f\u001a\u00020\u000b2\u0006\u0010\n\u001a\u00020\u000b8F@BX\u0086\u008e\u0002¢\u0006\u0012\n\u0004\b\u0011\u0010\u0012\u001a\u0004\b\r\u0010\u000e\"\u0004\b\u000f\u0010\u0010¨\u0006\u0018"}, d2 = {"Lcom/sistemasolton/itranvias/home/presentation/nearby/NearbyViewModel;", "Landroidx/lifecycle/ViewModel;", "getInfoUseCase", "Lcom/sistemasolton/itranvias/home/domain/usecase/GetInfoUseCase;", "getLocalInfoUseCase", "Lcom/sistemasolton/itranvias/home/domain/usecase/GetInfoLocalUseCase;", "getNearbyStopsUseCase", "Lcom/sistemasolton/itranvias/home/domain/usecase/GetNearbyStopsUseCase;", "<init>", "(Lcom/sistemasolton/itranvias/home/domain/usecase/GetInfoUseCase;Lcom/sistemasolton/itranvias/home/domain/usecase/GetInfoLocalUseCase;Lcom/sistemasolton/itranvias/home/domain/usecase/GetNearbyStopsUseCase;)V", "<set-?>", "Lcom/sistemasolton/itranvias/home/presentation/nearby/NearbyState;", "state", "getState", "()Lcom/sistemasolton/itranvias/home/presentation/nearby/NearbyState;", "setState", "(Lcom/sistemasolton/itranvias/home/presentation/nearby/NearbyState;)V", "state$delegate", "Landroidx/compose/runtime/MutableState;", "loadInfoAndNearbyStops", "", "lat", "", "lon", "composeApp_release"}, k = 1, mv = {2, 1, 0}, xi = 48)
|
||||
public final class NearbyViewModel extends ViewModel {
|
||||
public static final int $stable = 8;
|
||||
private final GetInfoUseCase getInfoUseCase;
|
||||
private final GetInfoLocalUseCase getLocalInfoUseCase;
|
||||
private final GetNearbyStopsUseCase getNearbyStopsUseCase;
|
||||
|
||||
/* JADX INFO: renamed from: state$delegate, reason: from kotlin metadata */
|
||||
private final MutableState state;
|
||||
|
||||
public NearbyViewModel(GetInfoUseCase getInfoUseCase, GetInfoLocalUseCase getLocalInfoUseCase, GetNearbyStopsUseCase getNearbyStopsUseCase) {
|
||||
Intrinsics.checkNotNullParameter(getInfoUseCase, "getInfoUseCase");
|
||||
Intrinsics.checkNotNullParameter(getLocalInfoUseCase, "getLocalInfoUseCase");
|
||||
Intrinsics.checkNotNullParameter(getNearbyStopsUseCase, "getNearbyStopsUseCase");
|
||||
this.getInfoUseCase = getInfoUseCase;
|
||||
this.getLocalInfoUseCase = getLocalInfoUseCase;
|
||||
this.getNearbyStopsUseCase = getNearbyStopsUseCase;
|
||||
this.state = SnapshotStateKt__SnapshotStateKt.mutableStateOf$default(new NearbyState(false, false, null, null, null, 31, null), null, 2, null);
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final void setState(NearbyState nearbyState) {
|
||||
this.state.setValue(nearbyState);
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public final NearbyState getState() {
|
||||
return (NearbyState) this.state.getValue();
|
||||
}
|
||||
|
||||
/* JADX INFO: renamed from: com.sistemasolton.itranvias.home.presentation.nearby.NearbyViewModel$loadInfoAndNearbyStops$1, reason: invalid class name */
|
||||
/* JADX INFO: compiled from: NearbyViewModel.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.nearby.NearbyViewModel$loadInfoAndNearbyStops$1", f = "NearbyViewModel.kt", i = {}, l = {36}, m = "invokeSuspend", n = {}, s = {})
|
||||
static final class AnonymousClass1 extends SuspendLambda implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ double $lat;
|
||||
final /* synthetic */ double $lon;
|
||||
int label;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
AnonymousClass1(double d, double d2, Continuation<? super AnonymousClass1> continuation) {
|
||||
super(2, continuation);
|
||||
this.$lat = d;
|
||||
this.$lon = d2;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
return NearbyViewModel.this.new AnonymousClass1(this.$lat, this.$lon, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(CoroutineScope coroutineScope, Continuation<? super Unit> continuation) {
|
||||
return ((AnonymousClass1) 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);
|
||||
NearbyViewModel nearbyViewModel = NearbyViewModel.this;
|
||||
nearbyViewModel.setState(nearbyViewModel.getState().copy(true, false, null, null, null));
|
||||
this.label = 1;
|
||||
if (FlowKt.collectLatest(NearbyViewModel.this.getLocalInfoUseCase.invoke(), new C01191(NearbyViewModel.this, this.$lat, this.$lon, null), this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
NearbyViewModel nearbyViewModel2 = NearbyViewModel.this;
|
||||
NearbyState state = nearbyViewModel2.getState();
|
||||
String message = e.getMessage();
|
||||
if (message == null) {
|
||||
message = "Error desconocido";
|
||||
}
|
||||
nearbyViewModel2.setState(NearbyState.copy$default(state, false, true, null, message, null, 20, null));
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
|
||||
/* JADX INFO: renamed from: com.sistemasolton.itranvias.home.presentation.nearby.NearbyViewModel$loadInfoAndNearbyStops$1$1, reason: invalid class name and collision with other inner class name */
|
||||
/* JADX INFO: compiled from: NearbyViewModel.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.nearby.NearbyViewModel$loadInfoAndNearbyStops$1$1", f = "NearbyViewModel.kt", i = {0}, l = {MotionEventCompat.AXIS_GENERIC_7}, m = "invokeSuspend", n = {"infoDto"}, s = {"L$0"})
|
||||
static final class C01191 extends SuspendLambda implements Function2<InfoDto, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ double $lat;
|
||||
final /* synthetic */ double $lon;
|
||||
/* synthetic */ Object L$0;
|
||||
int label;
|
||||
final /* synthetic */ NearbyViewModel this$0;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
C01191(NearbyViewModel nearbyViewModel, double d, double d2, Continuation<? super C01191> continuation) {
|
||||
super(2, continuation);
|
||||
this.this$0 = nearbyViewModel;
|
||||
this.$lat = d;
|
||||
this.$lon = d2;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
C01191 c01191 = new C01191(this.this$0, this.$lat, this.$lon, continuation);
|
||||
c01191.L$0 = obj;
|
||||
return c01191;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(InfoDto infoDto, Continuation<? super Unit> continuation) {
|
||||
return ((C01191) create(infoDto, continuation)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) throws Throwable {
|
||||
InfoDto infoDto;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.label;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
InfoDto infoDto2 = (InfoDto) this.L$0;
|
||||
this.L$0 = infoDto2;
|
||||
this.label = 1;
|
||||
Object objInvoke = this.this$0.getNearbyStopsUseCase.invoke(this.$lat, this.$lon, this);
|
||||
if (objInvoke == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
infoDto = infoDto2;
|
||||
obj = objInvoke;
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
InfoDto infoDto3 = (InfoDto) this.L$0;
|
||||
ResultKt.throwOnFailure(obj);
|
||||
infoDto = infoDto3;
|
||||
}
|
||||
NearbyStopsDto nearbyStopsDto = (NearbyStopsDto) obj;
|
||||
NearbyViewModel nearbyViewModel = this.this$0;
|
||||
nearbyViewModel.setState(NearbyState.copy$default(nearbyViewModel.getState(), false, false, infoDto, null, nearbyStopsDto, 10, null));
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static /* synthetic */ void loadInfoAndNearbyStops$default(NearbyViewModel nearbyViewModel, double d, double d2, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
d = 0.0d;
|
||||
}
|
||||
if ((i & 2) != 0) {
|
||||
d2 = 0.0d;
|
||||
}
|
||||
nearbyViewModel.loadInfoAndNearbyStops(d, d2);
|
||||
}
|
||||
|
||||
public final void loadInfoAndNearbyStops(double lat, double lon) {
|
||||
BuildersKt__Builders_commonKt.launch$default(ViewModelKt.getViewModelScope(this), null, null, new AnonymousClass1(lat, lon, null), 3, null);
|
||||
}
|
||||
}
|
||||
+96
@@ -0,0 +1,96 @@
|
||||
package com.sistemasolton.itranvias.home.presentation.nearby;
|
||||
|
||||
import com.sistemasolton.itranvias.home.data.remote.dto.infodto.LineaDto;
|
||||
import com.sistemasolton.itranvias.home.data.remote.dto.infodto.ParadaDto;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* JADX INFO: compiled from: NearbyScreen.kt */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
@Metadata(d1 = {"\u00000\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\r\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0000\b\u0087\b\u0018\u00002\u00020\u0001B'\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u000e\b\u0002\u0010\u0006\u001a\b\u0012\u0004\u0012\u00020\b0\u0007¢\u0006\u0004\b\t\u0010\nJ\t\u0010\u0011\u001a\u00020\u0003HÆ\u0003J\t\u0010\u0012\u001a\u00020\u0005HÆ\u0003J\u000f\u0010\u0013\u001a\b\u0012\u0004\u0012\u00020\b0\u0007HÆ\u0003J-\u0010\u0014\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00052\u000e\b\u0002\u0010\u0006\u001a\b\u0012\u0004\u0012\u00020\b0\u0007HÆ\u0001J\u0013\u0010\u0015\u001a\u00020\u00162\b\u0010\u0017\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u0010\u0018\u001a\u00020\u0005HÖ\u0001J\t\u0010\u0019\u001a\u00020\u001aHÖ\u0001R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\fR\u0011\u0010\u0004\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\r\u0010\u000eR\u0017\u0010\u0006\u001a\b\u0012\u0004\u0012\u00020\b0\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u000f\u0010\u0010¨\u0006\u001b"}, d2 = {"Lcom/sistemasolton/itranvias/home/presentation/nearby/ParadaConDistancia;", "", "parada", "Lcom/sistemasolton/itranvias/home/data/remote/dto/infodto/ParadaDto;", "distancia", "", "lineasConectadas", "", "Lcom/sistemasolton/itranvias/home/data/remote/dto/infodto/LineaDto;", "<init>", "(Lcom/sistemasolton/itranvias/home/data/remote/dto/infodto/ParadaDto;ILjava/util/List;)V", "getParada", "()Lcom/sistemasolton/itranvias/home/data/remote/dto/infodto/ParadaDto;", "getDistancia", "()I", "getLineasConectadas", "()Ljava/util/List;", "component1", "component2", "component3", "copy", "equals", "", "other", "hashCode", "toString", "", "composeApp_release"}, k = 1, mv = {2, 1, 0}, xi = 48)
|
||||
public final /* data */ class ParadaConDistancia {
|
||||
public static final int $stable = 8;
|
||||
private final int distancia;
|
||||
private final List<LineaDto> lineasConectadas;
|
||||
private final ParadaDto parada;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public static /* synthetic */ ParadaConDistancia copy$default(ParadaConDistancia paradaConDistancia, ParadaDto paradaDto, int i, List list, int i2, Object obj) {
|
||||
if ((i2 & 1) != 0) {
|
||||
paradaDto = paradaConDistancia.parada;
|
||||
}
|
||||
if ((i2 & 2) != 0) {
|
||||
i = paradaConDistancia.distancia;
|
||||
}
|
||||
if ((i2 & 4) != 0) {
|
||||
list = paradaConDistancia.lineasConectadas;
|
||||
}
|
||||
return paradaConDistancia.copy(paradaDto, i, list);
|
||||
}
|
||||
|
||||
/* JADX INFO: renamed from: component1, reason: from getter */
|
||||
public final ParadaDto getParada() {
|
||||
return this.parada;
|
||||
}
|
||||
|
||||
/* JADX INFO: renamed from: component2, reason: from getter */
|
||||
public final int getDistancia() {
|
||||
return this.distancia;
|
||||
}
|
||||
|
||||
public final List<LineaDto> component3() {
|
||||
return this.lineasConectadas;
|
||||
}
|
||||
|
||||
public final ParadaConDistancia copy(ParadaDto parada, int distancia, List<LineaDto> lineasConectadas) {
|
||||
Intrinsics.checkNotNullParameter(parada, "parada");
|
||||
Intrinsics.checkNotNullParameter(lineasConectadas, "lineasConectadas");
|
||||
return new ParadaConDistancia(parada, distancia, lineasConectadas);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
if (!(other instanceof ParadaConDistancia)) {
|
||||
return false;
|
||||
}
|
||||
ParadaConDistancia paradaConDistancia = (ParadaConDistancia) other;
|
||||
return Intrinsics.areEqual(this.parada, paradaConDistancia.parada) && this.distancia == paradaConDistancia.distancia && Intrinsics.areEqual(this.lineasConectadas, paradaConDistancia.lineasConectadas);
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return (((this.parada.hashCode() * 31) + Integer.hashCode(this.distancia)) * 31) + this.lineasConectadas.hashCode();
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "ParadaConDistancia(parada=" + this.parada + ", distancia=" + this.distancia + ", lineasConectadas=" + this.lineasConectadas + ")";
|
||||
}
|
||||
|
||||
public ParadaConDistancia(ParadaDto parada, int i, List<LineaDto> lineasConectadas) {
|
||||
Intrinsics.checkNotNullParameter(parada, "parada");
|
||||
Intrinsics.checkNotNullParameter(lineasConectadas, "lineasConectadas");
|
||||
this.parada = parada;
|
||||
this.distancia = i;
|
||||
this.lineasConectadas = lineasConectadas;
|
||||
}
|
||||
|
||||
public final ParadaDto getParada() {
|
||||
return this.parada;
|
||||
}
|
||||
|
||||
public final int getDistancia() {
|
||||
return this.distancia;
|
||||
}
|
||||
|
||||
public /* synthetic */ ParadaConDistancia(ParadaDto paradaDto, int i, List list, int i2, DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this(paradaDto, i, (i2 & 4) != 0 ? CollectionsKt.emptyList() : list);
|
||||
}
|
||||
|
||||
public final List<LineaDto> getLineasConectadas() {
|
||||
return this.lineasConectadas;
|
||||
}
|
||||
}
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
package com.sistemasolton.itranvias.home.presentation.nearby;
|
||||
|
||||
import androidx.compose.runtime.MutableState;
|
||||
import androidx.compose.runtime.SnapshotStateKt__SnapshotStateKt;
|
||||
import kotlin.Metadata;
|
||||
|
||||
/* JADX INFO: compiled from: NearbyScreen.kt */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
@Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0007\n\u0002\u0010\u0002\n\u0000\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003J\u0006\u0010\u0006\u001a\u00020\rR+\u0010\u0006\u001a\u00020\u00052\u0006\u0010\u0004\u001a\u00020\u00058@@@X\u0080\u008e\u0002¢\u0006\u0012\n\u0004\b\u000b\u0010\f\u001a\u0004\b\u0007\u0010\b\"\u0004\b\t\u0010\n¨\u0006\u000e"}, d2 = {"Lcom/sistemasolton/itranvias/home/presentation/nearby/SettingsState;", "", "<init>", "()V", "<set-?>", "", "open", "getOpen$composeApp_release", "()Z", "setOpen$composeApp_release", "(Z)V", "open$delegate", "Landroidx/compose/runtime/MutableState;", "", "composeApp_release"}, k = 1, mv = {2, 1, 0}, xi = 48)
|
||||
public final class SettingsState {
|
||||
public static final int $stable = 0;
|
||||
|
||||
/* JADX INFO: renamed from: open$delegate, reason: from kotlin metadata */
|
||||
private final MutableState open = SnapshotStateKt__SnapshotStateKt.mutableStateOf$default(false, null, 2, null);
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public final boolean getOpen$composeApp_release() {
|
||||
return ((Boolean) this.open.getValue()).booleanValue();
|
||||
}
|
||||
|
||||
public final void setOpen$composeApp_release(boolean z) {
|
||||
this.open.setValue(Boolean.valueOf(z));
|
||||
}
|
||||
|
||||
public final void open() {
|
||||
setOpen$composeApp_release(true);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user