apkfuckery/com.discord/smali/f/c/a/a$d.smali
2020-07-08 16:44:49 +00:00

153 lines
3.5 KiB
Smali

.class public Lf/c/a/a$d;
.super Ljava/lang/Object;
.source "ActivityHandler.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lf/c/a/a;->g(Lf/c/a/i0;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic d:Lf/c/a/i0;
.field public final synthetic e:Lf/c/a/a;
# direct methods
.method public constructor <init>(Lf/c/a/a;Lf/c/a/i0;)V
.locals 0
iput-object p1, p0, Lf/c/a/a$d;->e:Lf/c/a/a;
iput-object p2, p0, Lf/c/a/a$d;->d:Lf/c/a/i0;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 7
iget-object v0, p0, Lf/c/a/a$d;->e:Lf/c/a/a;
iget-object v1, p0, Lf/c/a/a$d;->d:Lf/c/a/i0;
if-eqz v0, :cond_3
iget-object v2, v1, Lf/c/a/j1;->c:Ljava/lang/String;
invoke-virtual {v0, v2}, Lf/c/a/a;->B(Ljava/lang/String;)V
new-instance v2, Landroid/os/Handler;
iget-object v3, v0, Lf/c/a/a;->j:Lf/c/a/r;
iget-object v3, v3, Lf/c/a/r;->a:Landroid/content/Context;
invoke-virtual {v3}, Landroid/content/Context;->getMainLooper()Landroid/os/Looper;
move-result-object v3
invoke-direct {v2, v3}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V
iget-object v3, v1, Lf/c/a/j1;->g:Lcom/adjust/sdk/AdjustAttribution;
invoke-virtual {v0, v3}, Lf/c/a/a;->C(Lcom/adjust/sdk/AdjustAttribution;)Z
move-result v3
if-eqz v3, :cond_0
invoke-virtual {v0, v2}, Lf/c/a/a;->p(Landroid/os/Handler;)V
:cond_0
iget-object v1, v1, Lf/c/a/i0;->h:Landroid/net/Uri;
if-nez v1, :cond_1
goto :goto_1
:cond_1
iget-object v3, v0, Lf/c/a/a;->d:Lf/c/a/q0;
const/4 v4, 0x1
new-array v4, v4, [Ljava/lang/Object;
const/4 v5, 0x0
aput-object v1, v4, v5
check-cast v3, Lf/c/a/x0;
const-string v5, "Deferred deeplink received (%s)"
invoke-virtual {v3, v5, v4}, Lf/c/a/x0;->c(Ljava/lang/String;[Ljava/lang/Object;)V
iget-object v3, v0, Lf/c/a/a;->j:Lf/c/a/r;
iget-object v3, v3, Lf/c/a/r;->j:Ljava/lang/Class;
const-string v4, "android.intent.action.VIEW"
if-nez v3, :cond_2
new-instance v3, Landroid/content/Intent;
invoke-direct {v3, v4, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V
goto :goto_0
:cond_2
new-instance v3, Landroid/content/Intent;
iget-object v5, v0, Lf/c/a/a;->j:Lf/c/a/r;
iget-object v6, v5, Lf/c/a/r;->a:Landroid/content/Context;
iget-object v5, v5, Lf/c/a/r;->j:Ljava/lang/Class;
invoke-direct {v3, v4, v1, v6, v5}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;Landroid/content/Context;Ljava/lang/Class;)V
:goto_0
const/high16 v4, 0x10000000
invoke-virtual {v3, v4}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
iget-object v4, v0, Lf/c/a/a;->j:Lf/c/a/r;
iget-object v4, v4, Lf/c/a/r;->a:Landroid/content/Context;
invoke-virtual {v4}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v4
invoke-virtual {v3, v4}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
new-instance v4, Lf/c/a/n;
invoke-direct {v4, v0, v1, v3}, Lf/c/a/n;-><init>(Lf/c/a/a;Landroid/net/Uri;Landroid/content/Intent;)V
invoke-virtual {v2, v4}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
:goto_1
return-void
:cond_3
const/4 v0, 0x0
throw v0
.end method