87 lines
2.5 KiB
Smali
87 lines
2.5 KiB
Smali
.class public final Lcom/discord/widgets/notice/WidgetNoticeDialog$ActionLinkMovementMethod;
|
|
.super Landroid/text/method/LinkMovementMethod;
|
|
.source "WidgetNoticeDialog.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/discord/widgets/notice/WidgetNoticeDialog;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "ActionLinkMovementMethod"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final linkAction:Lkotlin/jvm/functions/Function0;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
"Lkotlin/Unit;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lkotlin/jvm/functions/Function0;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "linkAction"
|
|
|
|
invoke-static {p1, v0}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-direct {p0}, Landroid/text/method/LinkMovementMethod;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/notice/WidgetNoticeDialog$ActionLinkMovementMethod;->linkAction:Lkotlin/jvm/functions/Function0;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onTouchEvent(Landroid/widget/TextView;Landroid/text/Spannable;Landroid/view/MotionEvent;)Z
|
|
.locals 1
|
|
|
|
const-string/jumbo v0, "widget"
|
|
|
|
invoke-static {p1, v0}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "buffer"
|
|
|
|
invoke-static {p2, v0}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "event"
|
|
|
|
invoke-static {p3, v0}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-super {p0, p1, p2, p3}, Landroid/text/method/LinkMovementMethod;->onTouchEvent(Landroid/widget/TextView;Landroid/text/Spannable;Landroid/view/MotionEvent;)Z
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p3}, Landroid/view/MotionEvent;->getAction()I
|
|
|
|
move-result p2
|
|
|
|
const/4 p3, 0x1
|
|
|
|
if-ne p2, p3, :cond_0
|
|
|
|
iget-object p2, p0, Lcom/discord/widgets/notice/WidgetNoticeDialog$ActionLinkMovementMethod;->linkAction:Lkotlin/jvm/functions/Function0;
|
|
|
|
invoke-interface {p2}, Lkotlin/jvm/functions/Function0;->invoke()Ljava/lang/Object;
|
|
|
|
:cond_0
|
|
return p1
|
|
.end method
|