Initial version -- added millennium read funcionality
This commit is contained in:
+57
@@ -0,0 +1,57 @@
|
||||
package com.google.maps.android.compose.clustering;
|
||||
|
||||
import android.os.Handler;
|
||||
import android.os.Looper;
|
||||
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.Function0;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* JADX INFO: compiled from: Clustering.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, 0, 0}, xi = 48)
|
||||
@DebugMetadata(c = "com.google.maps.android.compose.clustering.ClusteringKt$ResetMapListeners$1$1", f = "Clustering.kt", i = {}, l = {}, m = "invokeSuspend", n = {}, s = {})
|
||||
final class ClusteringKt$ResetMapListeners$1$1 extends SuspendLambda implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ Function0<Unit> $reattach;
|
||||
int label;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
ClusteringKt$ResetMapListeners$1$1(Function0<Unit> function0, Continuation<? super ClusteringKt$ResetMapListeners$1$1> continuation) {
|
||||
super(2, continuation);
|
||||
this.$reattach = function0;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
return new ClusteringKt$ResetMapListeners$1$1(this.$reattach, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(CoroutineScope coroutineScope, Continuation<? super Unit> continuation) {
|
||||
return ((ClusteringKt$ResetMapListeners$1$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);
|
||||
Handler handler = new Handler(Looper.getMainLooper());
|
||||
final Function0<Unit> function0 = this.$reattach;
|
||||
handler.post(new Runnable() { // from class: com.google.maps.android.compose.clustering.ClusteringKt$ResetMapListeners$1$1$$ExternalSyntheticLambda0
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
function0.invoke();
|
||||
}
|
||||
});
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
+64
@@ -0,0 +1,64 @@
|
||||
package com.google.maps.android.compose.clustering;
|
||||
|
||||
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.Ref;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.android.HandlerDispatcherKt;
|
||||
import kotlinx.coroutines.channels.ProducerScope;
|
||||
import okhttp3.internal.ws.WebSocketProtocol;
|
||||
|
||||
/* JADX INFO: compiled from: ClusterRenderer.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, 0, 0}, xi = 48)
|
||||
@DebugMetadata(c = "com.google.maps.android.compose.clustering.ComposeUiClusterRenderer$collectInvalidationsAndRerender$2$1$1", f = "ClusterRenderer.kt", i = {}, l = {WebSocketProtocol.PAYLOAD_SHORT}, m = "invokeSuspend", n = {}, s = {})
|
||||
final class ComposeUiClusterRenderer$collectInvalidationsAndRerender$2$1$1 extends SuspendLambda implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ ProducerScope<Unit> $$this$callbackFlow;
|
||||
final /* synthetic */ Ref.BooleanRef $invalidated;
|
||||
int label;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
ComposeUiClusterRenderer$collectInvalidationsAndRerender$2$1$1(ProducerScope<? super Unit> producerScope, Ref.BooleanRef booleanRef, Continuation<? super ComposeUiClusterRenderer$collectInvalidationsAndRerender$2$1$1> continuation) {
|
||||
super(2, continuation);
|
||||
this.$$this$callbackFlow = producerScope;
|
||||
this.$invalidated = booleanRef;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
return new ComposeUiClusterRenderer$collectInvalidationsAndRerender$2$1$1(this.$$this$callbackFlow, this.$invalidated, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(CoroutineScope coroutineScope, Continuation<? super Unit> continuation) {
|
||||
return ((ComposeUiClusterRenderer$collectInvalidationsAndRerender$2$1$1) 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;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
this.label = 1;
|
||||
if (HandlerDispatcherKt.awaitFrame(this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
this.$$this$callbackFlow.mo9890trySendJP2dKIU(Unit.INSTANCE);
|
||||
this.$invalidated.element = false;
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
package com.google.maps.android.compose.clustering;
|
||||
|
||||
import android.view.View;
|
||||
import kotlin.Metadata;
|
||||
import kotlinx.coroutines.channels.ProducerScope;
|
||||
import kotlinx.coroutines.channels.SendChannel;
|
||||
|
||||
/* JADX INFO: compiled from: View.kt */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u0010\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u0005H\u0016J\u0010\u0010\u0006\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u0005H\u0016¨\u0006\u0007¸\u0006\u0000"}, d2 = {"androidx/core/view/ViewKt$doOnDetach$1", "Landroid/view/View$OnAttachStateChangeListener;", "onViewAttachedToWindow", "", "view", "Landroid/view/View;", "onViewDetachedFromWindow", "core-ktx_release"}, k = 1, mv = {2, 0, 0}, xi = 48)
|
||||
public final class ComposeUiClusterRenderer$collectInvalidationsAndRerender$2$invokeSuspend$lambda$2$$inlined$doOnDetach$1 implements View.OnAttachStateChangeListener {
|
||||
final /* synthetic */ ProducerScope $$this$callbackFlow$inlined;
|
||||
final /* synthetic */ View $this_doOnDetach;
|
||||
|
||||
@Override // android.view.View.OnAttachStateChangeListener
|
||||
public void onViewAttachedToWindow(View view) {
|
||||
}
|
||||
|
||||
public ComposeUiClusterRenderer$collectInvalidationsAndRerender$2$invokeSuspend$lambda$2$$inlined$doOnDetach$1(View view, ProducerScope producerScope) {
|
||||
this.$this_doOnDetach = view;
|
||||
this.$$this$callbackFlow$inlined = producerScope;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnAttachStateChangeListener
|
||||
public void onViewDetachedFromWindow(View view) {
|
||||
this.$this_doOnDetach.removeOnAttachStateChangeListener(this);
|
||||
SendChannel.DefaultImpls.close$default(this.$$this$callbackFlow$inlined, null, 1, null);
|
||||
}
|
||||
}
|
||||
+60
@@ -0,0 +1,60 @@
|
||||
package com.google.maps.android.compose.clustering;
|
||||
|
||||
import com.google.maps.android.compose.clustering.ComposeUiClusterRenderer;
|
||||
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: ClusterRenderer.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, 0, 0}, xi = 48)
|
||||
@DebugMetadata(c = "com.google.maps.android.compose.clustering.ComposeUiClusterRenderer$createAndAddView$rerenderJob$1", f = "ClusterRenderer.kt", i = {}, l = {101}, m = "invokeSuspend", n = {}, s = {})
|
||||
final class ComposeUiClusterRenderer$createAndAddView$rerenderJob$1 extends SuspendLambda implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ ComposeUiClusterRenderer.ViewKey<T> $key;
|
||||
final /* synthetic */ ComposeUiClusterRenderer.InvalidatingComposeView $view;
|
||||
int label;
|
||||
final /* synthetic */ ComposeUiClusterRenderer<T> this$0;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
ComposeUiClusterRenderer$createAndAddView$rerenderJob$1(ComposeUiClusterRenderer<T> composeUiClusterRenderer, ComposeUiClusterRenderer.ViewKey<T> viewKey, ComposeUiClusterRenderer.InvalidatingComposeView invalidatingComposeView, Continuation<? super ComposeUiClusterRenderer$createAndAddView$rerenderJob$1> continuation) {
|
||||
super(2, continuation);
|
||||
this.this$0 = composeUiClusterRenderer;
|
||||
this.$key = viewKey;
|
||||
this.$view = invalidatingComposeView;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
return new ComposeUiClusterRenderer$createAndAddView$rerenderJob$1(this.this$0, this.$key, this.$view, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(CoroutineScope coroutineScope, Continuation<? super Unit> continuation) {
|
||||
return ((ComposeUiClusterRenderer$createAndAddView$rerenderJob$1) 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;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
this.label = 1;
|
||||
if (this.this$0.collectInvalidationsAndRerender(this.$key, this.$view, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
+638
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user