323 lines
11 KiB
Smali
323 lines
11 KiB
Smali
.class final Lcom/discord/utilities/view/text/LinkifiedTextView$ClickableSpanOnTouchListener$onTouch$newJob$1;
|
|
.super Lkotlin/coroutines/jvm/internal/h;
|
|
.source "LinkifiedTextView.kt"
|
|
|
|
# interfaces
|
|
.implements Lkotlin/jvm/functions/Function2;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/utilities/view/text/LinkifiedTextView$ClickableSpanOnTouchListener;->onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x18
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lkotlin/coroutines/jvm/internal/h;",
|
|
"Lkotlin/jvm/functions/Function2<",
|
|
"Lkotlinx/coroutines/CoroutineScope;",
|
|
"Lkotlin/coroutines/Continuation<",
|
|
"-",
|
|
"Lkotlin/Unit;",
|
|
">;",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/coroutines/jvm/internal/d;
|
|
zA = "com.discord.utilities.view.text.LinkifiedTextView$ClickableSpanOnTouchListener$onTouch$newJob$1"
|
|
zx = "LinkifiedTextView.kt"
|
|
zy = {
|
|
0x66
|
|
}
|
|
zz = "invokeSuspend"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic $clickableSpan:Landroid/text/style/ClickableSpan;
|
|
|
|
.field final synthetic $weakView:Ljava/lang/ref/WeakReference;
|
|
|
|
.field L$0:Ljava/lang/Object;
|
|
|
|
.field label:I
|
|
|
|
.field private p$:Lkotlinx/coroutines/CoroutineScope;
|
|
|
|
.field final synthetic this$0:Lcom/discord/utilities/view/text/LinkifiedTextView$ClickableSpanOnTouchListener;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/discord/utilities/view/text/LinkifiedTextView$ClickableSpanOnTouchListener;Ljava/lang/ref/WeakReference;Landroid/text/style/ClickableSpan;Lkotlin/coroutines/Continuation;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/utilities/view/text/LinkifiedTextView$ClickableSpanOnTouchListener$onTouch$newJob$1;->this$0:Lcom/discord/utilities/view/text/LinkifiedTextView$ClickableSpanOnTouchListener;
|
|
|
|
iput-object p2, p0, Lcom/discord/utilities/view/text/LinkifiedTextView$ClickableSpanOnTouchListener$onTouch$newJob$1;->$weakView:Ljava/lang/ref/WeakReference;
|
|
|
|
iput-object p3, p0, Lcom/discord/utilities/view/text/LinkifiedTextView$ClickableSpanOnTouchListener$onTouch$newJob$1;->$clickableSpan:Landroid/text/style/ClickableSpan;
|
|
|
|
const/4 p1, 0x2
|
|
|
|
invoke-direct {p0, p1, p4}, Lkotlin/coroutines/jvm/internal/h;-><init>(ILkotlin/coroutines/Continuation;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/Object;",
|
|
"Lkotlin/coroutines/Continuation<",
|
|
"*>;)",
|
|
"Lkotlin/coroutines/Continuation<",
|
|
"Lkotlin/Unit;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "completion"
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance v0, Lcom/discord/utilities/view/text/LinkifiedTextView$ClickableSpanOnTouchListener$onTouch$newJob$1;
|
|
|
|
iget-object v1, p0, Lcom/discord/utilities/view/text/LinkifiedTextView$ClickableSpanOnTouchListener$onTouch$newJob$1;->this$0:Lcom/discord/utilities/view/text/LinkifiedTextView$ClickableSpanOnTouchListener;
|
|
|
|
iget-object v2, p0, Lcom/discord/utilities/view/text/LinkifiedTextView$ClickableSpanOnTouchListener$onTouch$newJob$1;->$weakView:Ljava/lang/ref/WeakReference;
|
|
|
|
iget-object v3, p0, Lcom/discord/utilities/view/text/LinkifiedTextView$ClickableSpanOnTouchListener$onTouch$newJob$1;->$clickableSpan:Landroid/text/style/ClickableSpan;
|
|
|
|
invoke-direct {v0, v1, v2, v3, p2}, Lcom/discord/utilities/view/text/LinkifiedTextView$ClickableSpanOnTouchListener$onTouch$newJob$1;-><init>(Lcom/discord/utilities/view/text/LinkifiedTextView$ClickableSpanOnTouchListener;Ljava/lang/ref/WeakReference;Landroid/text/style/ClickableSpan;Lkotlin/coroutines/Continuation;)V
|
|
|
|
check-cast p1, Lkotlinx/coroutines/CoroutineScope;
|
|
|
|
iput-object p1, v0, Lcom/discord/utilities/view/text/LinkifiedTextView$ClickableSpanOnTouchListener$onTouch$newJob$1;->p$:Lkotlinx/coroutines/CoroutineScope;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
check-cast p2, Lkotlin/coroutines/Continuation;
|
|
|
|
invoke-virtual {p0, p1, p2}, Lcom/discord/utilities/view/text/LinkifiedTextView$ClickableSpanOnTouchListener$onTouch$newJob$1;->create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lcom/discord/utilities/view/text/LinkifiedTextView$ClickableSpanOnTouchListener$onTouch$newJob$1;
|
|
|
|
sget-object p2, Lkotlin/Unit;->beO:Lkotlin/Unit;
|
|
|
|
invoke-virtual {p1, p2}, Lcom/discord/utilities/view/text/LinkifiedTextView$ClickableSpanOnTouchListener$onTouch$newJob$1;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 9
|
|
|
|
sget-object p1, Lkotlin/coroutines/a/a;->bfv:Lkotlin/coroutines/a/a;
|
|
|
|
iget v0, p0, Lcom/discord/utilities/view/text/LinkifiedTextView$ClickableSpanOnTouchListener$onTouch$newJob$1;->label:I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
if-ne v0, v2, :cond_0
|
|
|
|
iget-object p1, p0, Lcom/discord/utilities/view/text/LinkifiedTextView$ClickableSpanOnTouchListener$onTouch$newJob$1;->L$0:Ljava/lang/Object;
|
|
|
|
check-cast p1, Lkotlinx/coroutines/CoroutineScope;
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v0, "call to \'resume\' before \'invoke\' with coroutine"
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/discord/utilities/view/text/LinkifiedTextView$ClickableSpanOnTouchListener$onTouch$newJob$1;->p$:Lkotlinx/coroutines/CoroutineScope;
|
|
|
|
iget-object v3, p0, Lcom/discord/utilities/view/text/LinkifiedTextView$ClickableSpanOnTouchListener$onTouch$newJob$1;->this$0:Lcom/discord/utilities/view/text/LinkifiedTextView$ClickableSpanOnTouchListener;
|
|
|
|
invoke-static {v3}, Lcom/discord/utilities/view/text/LinkifiedTextView$ClickableSpanOnTouchListener;->access$getLongPressDelayInMs$p(Lcom/discord/utilities/view/text/LinkifiedTextView$ClickableSpanOnTouchListener;)J
|
|
|
|
move-result-wide v3
|
|
|
|
iput-object v0, p0, Lcom/discord/utilities/view/text/LinkifiedTextView$ClickableSpanOnTouchListener$onTouch$newJob$1;->L$0:Ljava/lang/Object;
|
|
|
|
iput v2, p0, Lcom/discord/utilities/view/text/LinkifiedTextView$ClickableSpanOnTouchListener$onTouch$newJob$1;->label:I
|
|
|
|
const-wide/16 v5, 0x0
|
|
|
|
cmp-long v7, v3, v5
|
|
|
|
if-gtz v7, :cond_2
|
|
|
|
sget-object v3, Lkotlin/Unit;->beO:Lkotlin/Unit;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
new-instance v5, Lkotlinx/coroutines/i;
|
|
|
|
invoke-static {p0}, Lkotlin/coroutines/a/b;->c(Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-direct {v5, v6}, Lkotlinx/coroutines/i;-><init>(Lkotlin/coroutines/Continuation;)V
|
|
|
|
move-object v6, v5
|
|
|
|
check-cast v6, Lkotlinx/coroutines/h;
|
|
|
|
invoke-interface {v6}, Lkotlinx/coroutines/h;->getContext()Lkotlin/coroutines/CoroutineContext;
|
|
|
|
move-result-object v7
|
|
|
|
const-string v8, "$this$delay"
|
|
|
|
invoke-static {v7, v8}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
sget-object v8, Lkotlin/coroutines/c;->bfq:Lkotlin/coroutines/c$a;
|
|
|
|
check-cast v8, Lkotlin/coroutines/CoroutineContext$c;
|
|
|
|
invoke-interface {v7, v8}, Lkotlin/coroutines/CoroutineContext;->get(Lkotlin/coroutines/CoroutineContext$c;)Lkotlin/coroutines/CoroutineContext$b;
|
|
|
|
move-result-object v7
|
|
|
|
instance-of v8, v7, Lkotlinx/coroutines/ak;
|
|
|
|
if-nez v8, :cond_3
|
|
|
|
move-object v7, v1
|
|
|
|
:cond_3
|
|
check-cast v7, Lkotlinx/coroutines/ak;
|
|
|
|
if-nez v7, :cond_4
|
|
|
|
invoke-static {}, Lkotlinx/coroutines/ai;->Am()Lkotlinx/coroutines/ak;
|
|
|
|
move-result-object v7
|
|
|
|
:cond_4
|
|
invoke-interface {v7, v3, v4, v6}, Lkotlinx/coroutines/ak;->a(JLkotlinx/coroutines/h;)V
|
|
|
|
invoke-virtual {v5}, Lkotlinx/coroutines/i;->getResult()Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
sget-object v4, Lkotlin/coroutines/a/a;->bfv:Lkotlin/coroutines/a/a;
|
|
|
|
if-ne v3, v4, :cond_5
|
|
|
|
const-string v4, "frame"
|
|
|
|
invoke-static {p0, v4}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
:cond_5
|
|
:goto_0
|
|
if-ne v3, p1, :cond_6
|
|
|
|
return-object p1
|
|
|
|
:cond_6
|
|
move-object p1, v0
|
|
|
|
:goto_1
|
|
iget-object v0, p0, Lcom/discord/utilities/view/text/LinkifiedTextView$ClickableSpanOnTouchListener$onTouch$newJob$1;->this$0:Lcom/discord/utilities/view/text/LinkifiedTextView$ClickableSpanOnTouchListener;
|
|
|
|
invoke-static {v0}, Lcom/discord/utilities/view/text/LinkifiedTextView$ClickableSpanOnTouchListener;->access$isClickHandled$p(Lcom/discord/utilities/view/text/LinkifiedTextView$ClickableSpanOnTouchListener;)Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, v2}, Ljava/util/concurrent/atomic/AtomicBoolean;->getAndSet(Z)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_8
|
|
|
|
const-string v0, "$this$isActive"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-interface {p1}, Lkotlinx/coroutines/CoroutineScope;->zS()Lkotlin/coroutines/CoroutineContext;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v3, Lkotlinx/coroutines/Job;->biu:Lkotlinx/coroutines/Job$b;
|
|
|
|
check-cast v3, Lkotlin/coroutines/CoroutineContext$c;
|
|
|
|
invoke-interface {v0, v3}, Lkotlin/coroutines/CoroutineContext;->get(Lkotlin/coroutines/CoroutineContext$c;)Lkotlin/coroutines/CoroutineContext$b;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lkotlinx/coroutines/Job;
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
invoke-interface {v0}, Lkotlinx/coroutines/Job;->isActive()Z
|
|
|
|
move-result v2
|
|
|
|
:cond_7
|
|
if-eqz v2, :cond_8
|
|
|
|
iget-object v0, p0, Lcom/discord/utilities/view/text/LinkifiedTextView$ClickableSpanOnTouchListener$onTouch$newJob$1;->$weakView:Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/TextView;
|
|
|
|
if-eqz v0, :cond_8
|
|
|
|
invoke-static {}, Lkotlinx/coroutines/ao;->Ap()Lkotlinx/coroutines/bl;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lkotlin/coroutines/CoroutineContext;
|
|
|
|
new-instance v3, Lcom/discord/utilities/view/text/LinkifiedTextView$ClickableSpanOnTouchListener$onTouch$newJob$1$invokeSuspend$$inlined$also$lambda$1;
|
|
|
|
invoke-direct {v3, v0, v1, p0, p1}, Lcom/discord/utilities/view/text/LinkifiedTextView$ClickableSpanOnTouchListener$onTouch$newJob$1$invokeSuspend$$inlined$also$lambda$1;-><init>(Landroid/widget/TextView;Lkotlin/coroutines/Continuation;Lcom/discord/utilities/view/text/LinkifiedTextView$ClickableSpanOnTouchListener$onTouch$newJob$1;Lkotlinx/coroutines/CoroutineScope;)V
|
|
|
|
check-cast v3, Lkotlin/jvm/functions/Function2;
|
|
|
|
const/4 v0, 0x2
|
|
|
|
invoke-static {p1, v2, v3, v0}, Lkotlinx/coroutines/d;->a(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;Lkotlin/jvm/functions/Function2;I)Lkotlinx/coroutines/Job;
|
|
|
|
:cond_8
|
|
sget-object p1, Lkotlin/Unit;->beO:Lkotlin/Unit;
|
|
|
|
return-object p1
|
|
.end method
|