86 lines
2.8 KiB
Smali
86 lines
2.8 KiB
Smali
.class public final Lcom/discord/widgets/auth/WidgetOauth2AuthorizeSamsung$configureUI$1;
|
|
.super Ljava/lang/Object;
|
|
.source "WidgetOauth2AuthorizeSamsung.kt"
|
|
|
|
# interfaces
|
|
.implements Landroid/view/View$OnClickListener;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/widgets/auth/WidgetOauth2AuthorizeSamsung;->configureUI(Lcom/discord/restapi/RestAPIParams$OAuth2Authorize$ResponseGet;)V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic this$0:Lcom/discord/widgets/auth/WidgetOauth2AuthorizeSamsung;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/discord/widgets/auth/WidgetOauth2AuthorizeSamsung;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/auth/WidgetOauth2AuthorizeSamsung$configureUI$1;->this$0:Lcom/discord/widgets/auth/WidgetOauth2AuthorizeSamsung;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final onClick(Landroid/view/View;)V
|
|
.locals 1
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/auth/WidgetOauth2AuthorizeSamsung$configureUI$1;->this$0:Lcom/discord/widgets/auth/WidgetOauth2AuthorizeSamsung;
|
|
|
|
invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Landroid/accounts/AccountManager;->get(Landroid/content/Context;)Landroid/accounts/AccountManager;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "com.osp.app.signin"
|
|
|
|
invoke-virtual {p1, v0}, Landroid/accounts/AccountManager;->getAccountsByType(Ljava/lang/String;)[Landroid/accounts/Account;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "manager.getAccountsByType(SA_ACCOUNT_TYPE)"
|
|
|
|
invoke-static {p1, v0}, Lz/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
array-length p1, p1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
:goto_0
|
|
if-eqz p1, :cond_1
|
|
|
|
sget-object p1, Lcom/discord/widgets/auth/WidgetOauth2AuthorizeSamsung;->Companion:Lcom/discord/widgets/auth/WidgetOauth2AuthorizeSamsung$Companion;
|
|
|
|
const-string v0, "Not Logged into Samsung Account"
|
|
|
|
invoke-static {p1, v0}, Lcom/discord/widgets/auth/WidgetOauth2AuthorizeSamsung$Companion;->access$logI(Lcom/discord/widgets/auth/WidgetOauth2AuthorizeSamsung$Companion;Ljava/lang/String;)V
|
|
|
|
:cond_1
|
|
iget-object p1, p0, Lcom/discord/widgets/auth/WidgetOauth2AuthorizeSamsung$configureUI$1;->this$0:Lcom/discord/widgets/auth/WidgetOauth2AuthorizeSamsung;
|
|
|
|
invoke-static {p1}, Lcom/discord/widgets/auth/WidgetOauth2AuthorizeSamsung;->access$checkDisclaimer(Lcom/discord/widgets/auth/WidgetOauth2AuthorizeSamsung;)V
|
|
|
|
return-void
|
|
.end method
|