apkfuckery/com.discord/smali/f/a/b/f.smali
2020-11-16 01:00:50 +00:00

151 lines
3.2 KiB
Smali

.class public abstract Lf/a/b/f;
.super Lcom/discord/app/AppTransitionActivity;
.source "AppEventHandlerActivity.kt"
# instance fields
.field public final f:Ljava/util/TreeMap;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/TreeMap<",
"Ljava/lang/Integer;",
"Ljava/util/HashMap<",
"Ljava/lang/String;",
"Lkotlin/jvm/functions/Function0<",
"Ljava/lang/Boolean;",
">;>;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>()V
.locals 1
invoke-direct {p0}, Lcom/discord/app/AppTransitionActivity;-><init>()V
new-instance v0, Ljava/util/TreeMap;
invoke-direct {v0}, Ljava/util/TreeMap;-><init>()V
iput-object v0, p0, Lf/a/b/f;->f:Ljava/util/TreeMap;
return-void
.end method
# virtual methods
.method public onBackPressed()V
.locals 3
iget-object v0, p0, Lf/a/b/f;->f:Ljava/util/TreeMap;
invoke-virtual {v0}, Ljava/util/TreeMap;->values()Ljava/util/Collection;
move-result-object v0
const-string v1, "backPressHandlers\n .values"
invoke-static {v0, v1}, Lz/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_2
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/util/HashMap;
invoke-virtual {v1}, Ljava/util/HashMap;->values()Ljava/util/Collection;
move-result-object v1
const-string v2, "handlers\n .values"
invoke-static {v1, v2}, Lz/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v1
:cond_1
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_0
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Lkotlin/jvm/functions/Function0;
invoke-interface {v2}, Lkotlin/jvm/functions/Function0;->invoke()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/Boolean;
invoke-virtual {v2}, Ljava/lang/Boolean;->booleanValue()Z
move-result v2
if-eqz v2, :cond_1
const/4 v0, 0x1
goto :goto_0
:cond_2
const/4 v0, 0x0
:goto_0
if-nez v0, :cond_5
invoke-virtual {p0}, Landroid/app/Activity;->isFinishing()Z
move-result v0
if-nez v0, :cond_5
:try_start_0
invoke-super {p0}, Lcom/discord/app/AppTransitionActivity;->onBackPressed()V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_1
:catch_0
move-exception v0
instance-of v1, v0, Ljava/lang/IllegalArgumentException;
if-eqz v1, :cond_3
goto :goto_1
:cond_3
instance-of v1, v0, Ljava/lang/IllegalStateException;
if-eqz v1, :cond_4
goto :goto_1
:cond_4
throw v0
:cond_5
:goto_1
return-void
.end method