147 lines
9.3 KiB
Java
147 lines
9.3 KiB
Java
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");
|
|
}
|
|
}
|
|
} |