.class public abstract Lf/a/b/d; .super Lcom/discord/app/AppTransitionActivity; .source "AppEventHandlerActivity.kt" # instance fields .field public final g: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 ()V .locals 1 invoke-direct {p0}, Lcom/discord/app/AppTransitionActivity;->()V new-instance v0, Ljava/util/TreeMap; invoke-direct {v0}, Ljava/util/TreeMap;->()V iput-object v0, p0, Lf/a/b/d;->g:Ljava/util/TreeMap; return-void .end method # virtual methods .method public final a(Ljava/lang/String;)V .locals 2 if-eqz p1, :cond_1 iget-object v0, p0, Lf/a/b/d;->g: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}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; move-result-object v0 :goto_0 invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z move-result v1 if-eqz v1, :cond_0 invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v1 check-cast v1, Ljava/util/HashMap; invoke-virtual {v1, p1}, Ljava/util/HashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object; goto :goto_0 :cond_0 return-void :cond_1 const-string p1, "key" invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V const/4 p1, 0x0 throw p1 .end method .method public final a(Lkotlin/jvm/functions/Function0;ILjava/lang/String;)V .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lkotlin/jvm/functions/Function0<", "Ljava/lang/Boolean;", ">;I", "Ljava/lang/String;", ")V" } .end annotation const/4 v0, 0x0 if-eqz p1, :cond_2 if-eqz p3, :cond_1 iget-object v0, p0, Lf/a/b/d;->g:Ljava/util/TreeMap; invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 invoke-virtual {v0, v1}, Ljava/util/TreeMap;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v0 check-cast v0, Ljava/util/HashMap; if-eqz v0, :cond_0 goto :goto_0 :cond_0 new-instance v0, Ljava/util/HashMap; invoke-direct {v0}, Ljava/util/HashMap;->()V :goto_0 const-string v1, "backPressHandlers[priority] ?: HashMap()" invoke-static {v0, v1}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V invoke-interface {v0, p3, p1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; iget-object p1, p0, Lf/a/b/d;->g:Ljava/util/TreeMap; invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object p2 invoke-interface {p1, p2, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; return-void :cond_1 const-string p1, "key" invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V throw v0 :cond_2 const-string p1, "handler" invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V throw v0 .end method .method public onBackPressed()V .locals 3 iget-object v0, p0, Lf/a/b/d;->g: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}, Ly/u/b/j;->checkExpressionValueIsNotNull(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}, Ly/u/b/j;->checkExpressionValueIsNotNull(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