2019-12-06 03:29:40 +00:00
|
|
|
.class public final Lcom/discord/widgets/auth/WidgetOauth2Authorize$onViewBoundOrOnResume$1;
|
2020-02-20 19:33:18 +00:00
|
|
|
.super Lw/u/b/k;
|
2019-08-21 02:12:52 +00:00
|
|
|
.source "WidgetOauth2Authorize.kt"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lkotlin/jvm/functions/Function1;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
2019-08-21 02:12:52 +00:00
|
|
|
value = Lcom/discord/widgets/auth/WidgetOauth2Authorize;->onViewBoundOrOnResume()V
|
2019-07-24 11:27:29 +00:00
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
2019-12-06 03:29:40 +00:00
|
|
|
accessFlags = 0x19
|
2019-07-24 11:27:29 +00:00
|
|
|
name = null
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
2020-02-20 19:33:18 +00:00
|
|
|
"Lw/u/b/k;",
|
2019-07-24 11:27:29 +00:00
|
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
|
|
"Lcom/discord/utilities/error/Error;",
|
|
|
|
"Lkotlin/Unit;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public final synthetic this$0:Lcom/discord/widgets/auth/WidgetOauth2Authorize;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public constructor <init>(Lcom/discord/widgets/auth/WidgetOauth2Authorize;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 0
|
|
|
|
|
2019-08-21 02:12:52 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/widgets/auth/WidgetOauth2Authorize$onViewBoundOrOnResume$1;->this$0:Lcom/discord/widgets/auth/WidgetOauth2Authorize;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-direct {p0, p1}, Lw/u/b/k;-><init>(I)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 0
|
|
|
|
|
|
|
|
check-cast p1, Lcom/discord/utilities/error/Error;
|
|
|
|
|
2019-08-21 02:12:52 +00:00
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/widgets/auth/WidgetOauth2Authorize$onViewBoundOrOnResume$1;->invoke(Lcom/discord/utilities/error/Error;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
sget-object p1, Lkotlin/Unit;->a:Lkotlin/Unit;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final invoke(Lcom/discord/utilities/error/Error;)V
|
2020-01-22 01:17:22 +00:00
|
|
|
.locals 4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-01-22 01:17:22 +00:00
|
|
|
const/4 v0, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-01-22 01:17:22 +00:00
|
|
|
if-eqz p1, :cond_3
|
2019-08-17 08:22:04 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/utilities/error/Error;->getResponse()Lcom/discord/utilities/error/Error$Response;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2020-01-22 01:17:22 +00:00
|
|
|
const-string v2, "error.response"
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v1, v2}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-08-17 08:22:04 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/utilities/error/Error$Response;->getMessages()Ljava/util/Map;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2020-01-22 01:17:22 +00:00
|
|
|
const-string v3, "it"
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v1, v3}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
invoke-interface {v1}, Ljava/util/Map;->isEmpty()Z
|
2019-08-17 08:22:04 +00:00
|
|
|
|
2020-01-22 01:17:22 +00:00
|
|
|
move-result v3
|
|
|
|
|
|
|
|
xor-int/lit8 v3, v3, 0x1
|
|
|
|
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
|
|
|
|
move-object v0, v1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-virtual {p1}, Lcom/discord/utilities/error/Error;->getResponse()Lcom/discord/utilities/error/Error$Response;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v0, v2}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/utilities/error/Error$Response;->getMessage()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v0}, Le/k/a/c/e/p/g;->listOf(Ljava/lang/Object;)Ljava/util/List;
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "_root"
|
|
|
|
|
|
|
|
invoke-static {v1, v0}, Ljava/util/Collections;->singletonMap(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "java.util.Collections.si\u2026(pair.first, pair.second)"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-01-22 01:17:22 +00:00
|
|
|
|
|
|
|
:goto_0
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/auth/WidgetOauth2Authorize$onViewBoundOrOnResume$1;->this$0:Lcom/discord/widgets/auth/WidgetOauth2Authorize;
|
|
|
|
|
|
|
|
invoke-static {v1}, Lcom/discord/widgets/auth/WidgetOauth2Authorize;->access$getValidationManager$p(Lcom/discord/widgets/auth/WidgetOauth2Authorize;)Lcom/discord/utilities/view/validators/ValidationManager;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1, v0}, Lcom/discord/utilities/view/validators/ValidationManager;->setErrors(Ljava/util/Map;)Ljava/util/Collection;
|
2019-08-17 08:22:04 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/Collection;->isEmpty()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
xor-int/lit8 v0, v0, 0x1
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Lcom/discord/utilities/error/Error;->setShowErrorToasts(Z)V
|
|
|
|
|
2019-08-21 02:12:52 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/widgets/auth/WidgetOauth2Authorize$onViewBoundOrOnResume$1;->this$0:Lcom/discord/widgets/auth/WidgetOauth2Authorize;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/app/AppFragment;->getAppActivity()Lcom/discord/app/AppActivity;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-01-22 01:17:22 +00:00
|
|
|
if-eqz p1, :cond_2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p1}, Le/a/b/d;->onBackPressed()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-01-22 01:17:22 +00:00
|
|
|
:cond_2
|
2019-07-24 11:27:29 +00:00
|
|
|
return-void
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-01-22 01:17:22 +00:00
|
|
|
:cond_3
|
|
|
|
const-string p1, "error"
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-01-22 01:17:22 +00:00
|
|
|
throw v0
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|