TestCenterAdapter$onBindViewHolder$4.smali
.class final Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterAdapter$onBindViewHolder$4;
.super Ljava/lang/Object;
.source "TestCenterAdapter.kt"
# interfaces
.implements Landroid/view/View$OnClickListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/sandboxol/editor/view/fragment/testcenter/b;->a(Lcom/sandboxol/editor/view/fragment/testcenter/b$a;I)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = null
.end annotation
# instance fields
.field final synthetic a:Lcom/sandboxol/editor/domain/BetaGame;
.field final synthetic b:Landroid/content/Context;
# direct methods
.method constructor <init>(Lcom/sandboxol/editor/domain/BetaGame;Landroid/content/Context;)V
.registers 3
iput-object p1, p0, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterAdapter$onBindViewHolder$4;->a:Lcom/sandboxol/editor/domain/BetaGame;
iput-object p2, p0, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterAdapter$onBindViewHolder$4;->b:Landroid/content/Context;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final onClick(Landroid/view/View;)V
.registers 8
.line 1
invoke-static {}, Lcom/sandboxol/center/router/moduleInfo/game/EngineEnv;->v3()Lcom/sandboxol/center/router/moduleInfo/game/AbstractEngineEnv;
move-result-object p1
const-string v0, "EngineEnv.v3()"
invoke-static {p1, v0}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p1}, Lcom/sandboxol/center/router/moduleInfo/game/AbstractEngineEnv;->getEngineVersion()J
move-result-wide v0
iget-object p1, p0, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterAdapter$onBindViewHolder$4;->a:Lcom/sandboxol/editor/domain/BetaGame;
invoke-virtual {p1}, Lcom/sandboxol/editor/domain/BetaGame;->getEngineVersion()I
move-result p1
int-to-long v2, p1
cmp-long p1, v0, v2
if-gez p1, :cond_38
.line 2
new-instance p1, Lcom/sandboxol/center/view/dialog/OneButtonDialog;
iget-object v0, p0, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterAdapter$onBindViewHolder$4;->b:Landroid/content/Context;
invoke-direct {p1, v0}, Lcom/sandboxol/center/view/dialog/OneButtonDialog;-><init>(Landroid/content/Context;)V
.line 3
sget v0, Lcom/sandboxol/editor/R$string;->game_version_too_low:I
invoke-virtual {p1, v0}, Lcom/sandboxol/center/view/dialog/OneButtonDialog;->setDetailText(I)Lcom/sandboxol/center/view/dialog/OneButtonDialog;
move-result-object p1
.line 4
sget v0, Lcom/sandboxol/editor/R$string;->base_dialog_button_update:I
invoke-virtual {p1, v0}, Lcom/sandboxol/center/view/dialog/OneButtonDialog;->setButtonText(I)Lcom/sandboxol/center/view/dialog/OneButtonDialog;
move-result-object p1
.line 5
new-instance v0, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterAdapter$onBindViewHolder$4$1;
invoke-direct {v0, p0}, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterAdapter$onBindViewHolder$4$1;-><init>(Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterAdapter$onBindViewHolder$4;)V
invoke-virtual {p1, v0}, Lcom/sandboxol/center/view/dialog/OneButtonDialog;->setListener(Lcom/sandboxol/center/view/dialog/OneButtonDialog$OneButtonDialogListener;)Lcom/sandboxol/center/view/dialog/OneButtonDialog;
move-result-object p1
.line 6
invoke-virtual {p1}, Lcom/sandboxol/common/dialog/FullScreenDialog;->show()V
goto :goto_6c
.line 7
:cond_38
iget-object v0, p0, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterAdapter$onBindViewHolder$4;->b:Landroid/content/Context;
iget-object p1, p0, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterAdapter$onBindViewHolder$4;->a:Lcom/sandboxol/editor/domain/BetaGame;
invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/Game;->getGameId()Ljava/lang/String;
move-result-object v1
iget-object p1, p0, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterAdapter$onBindViewHolder$4;->a:Lcom/sandboxol/editor/domain/BetaGame;
invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/Game;->getGameTitle()Ljava/lang/String;
move-result-object v2
iget-object p1, p0, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterAdapter$onBindViewHolder$4;->a:Lcom/sandboxol/editor/domain/BetaGame;
invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/Game;->getGameCoverPic()Ljava/lang/String;
move-result-object v3
iget-object p1, p0, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterAdapter$onBindViewHolder$4;->a:Lcom/sandboxol/editor/domain/BetaGame;
invoke-virtual {p1}, Lcom/sandboxol/editor/domain/BetaGame;->getMaxPartyPlayers()I
move-result v4
new-instance v5, Landroidx/databinding/ObservableField;
const/4 p1, 0x0
invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object p1
invoke-direct {v5, p1}, Landroidx/databinding/ObservableField;-><init>(Ljava/lang/Object;)V
invoke-static/range {v0 .. v5}, Lcom/sandboxol/center/router/manager/PartyManager;->createBetaParty(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILandroidx/databinding/ObservableField;)V
.line 8
iget-object p1, p0, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterAdapter$onBindViewHolder$4;->b:Landroid/content/Context;
iget-object v0, p0, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterAdapter$onBindViewHolder$4;->a:Lcom/sandboxol/editor/domain/BetaGame;
invoke-virtual {v0}, Lcom/sandboxol/greendao/entity/Game;->getGameId()Ljava/lang/String;
move-result-object v0
const-string v1, "test_build_test"
invoke-static {p1, v1, v0}, Lcom/sandboxol/common/interfaces/ReportDataAdapter;->onEvent(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
.line 9
:goto_6c
iget-object p1, p0, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterAdapter$onBindViewHolder$4;->b:Landroid/content/Context;
iget-object v0, p0, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterAdapter$onBindViewHolder$4;->a:Lcom/sandboxol/editor/domain/BetaGame;
invoke-virtual {v0}, Lcom/sandboxol/greendao/entity/Game;->getGameId()Ljava/lang/String;
move-result-object v0
const-string v1, "test_click_invitetest"
invoke-static {p1, v1, v0}, Lcom/sandboxol/common/interfaces/ReportDataAdapter;->onEvent(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
return-void
.end method