apkfuckery/com.discord/smali/i.smali

125 lines
3.4 KiB
Smali
Raw Normal View History

2020-05-17 12:40:10 +00:00
.class public final Li;
.super Ljava/lang/Object;
.source "java-style lambda group"
# interfaces
.implements Landroid/view/View$OnClickListener;
# instance fields
.field public final synthetic d:I
2020-07-08 16:44:49 +00:00
.field public final synthetic e:Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
# direct methods
.method public constructor <init>(ILjava/lang/Object;)V
2020-05-17 12:40:10 +00:00
.locals 0
iput p1, p0, Li;->d:I
2020-07-08 16:44:49 +00:00
iput-object p2, p0, Li;->e:Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final onClick(Landroid/view/View;)V
2020-07-08 16:44:49 +00:00
.locals 5
2020-05-17 12:40:10 +00:00
iget p1, p0, Li;->d:I
if-eqz p1, :cond_1
const/4 v0, 0x1
if-ne p1, v0, :cond_0
2020-07-08 16:44:49 +00:00
iget-object p1, p0, Li;->e:Ljava/lang/Object;
check-cast p1, Lcom/discord/views/OverlayMenuView;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p1}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;
2020-05-17 12:40:10 +00:00
move-result-object p1
2020-07-08 16:44:49 +00:00
new-instance v0, Landroid/content/Intent;
sget-object v1, Lcom/discord/utilities/intent/IntentUtils$RouteBuilders$Uris;->INSTANCE:Lcom/discord/utilities/intent/IntentUtils$RouteBuilders$Uris;
invoke-virtual {v1}, Lcom/discord/utilities/intent/IntentUtils$RouteBuilders$Uris;->getApp()Landroid/net/Uri;
move-result-object v1
iget-object v2, p0, Li;->e:Ljava/lang/Object;
check-cast v2, Lcom/discord/views/OverlayMenuView;
invoke-virtual {v2}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;
move-result-object v2
const-class v3, Lcom/discord/app/AppActivity$Main;
const-string v4, "android.intent.action.VIEW"
invoke-direct {v0, v4, v1, v2, v3}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;Landroid/content/Context;Ljava/lang/Class;)V
const/high16 v1, 0x10000000
invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;
move-result-object v0
invoke-virtual {p1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
iget-object p1, p0, Li;->e:Ljava/lang/Object;
check-cast p1, Lcom/discord/views/OverlayMenuView;
invoke-virtual {p1}, Lcom/discord/views/OverlayMenuView;->getOnDismissRequested$app_productionDiscordExternalRelease()Lkotlin/jvm/functions/Function0;
move-result-object p1
invoke-interface {p1}, Lkotlin/jvm/functions/Function0;->invoke()Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
return-void
:cond_0
const/4 p1, 0x0
throw p1
:cond_1
2020-07-08 16:44:49 +00:00
sget-object p1, Lcom/discord/utilities/voice/DiscordOverlayService;->Companion:Lcom/discord/utilities/voice/DiscordOverlayService$Companion;
iget-object v0, p0, Li;->e:Ljava/lang/Object;
check-cast v0, Lcom/discord/views/OverlayMenuView;
invoke-virtual {v0}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;
move-result-object v0
const-string v1, "context"
2020-09-09 19:21:20 +00:00
invoke-static {v0, v1}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
invoke-virtual {p1, v0}, Lcom/discord/utilities/voice/DiscordOverlayService$Companion;->launchForVoiceChannelSelect(Landroid/content/Context;)V
iget-object p1, p0, Li;->e:Ljava/lang/Object;
check-cast p1, Lcom/discord/views/OverlayMenuView;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p1}, Lcom/discord/views/OverlayMenuView;->getOnDismissRequested$app_productionDiscordExternalRelease()Lkotlin/jvm/functions/Function0;
2020-05-17 12:40:10 +00:00
move-result-object p1
2020-07-08 16:44:49 +00:00
invoke-interface {p1}, Lkotlin/jvm/functions/Function0;->invoke()Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
return-void
.end method