TestCenterAdapter$onBindViewHolder$2.smali
.class final Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterAdapter$onBindViewHolder$2;
.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/view/fragment/testcenter/b;
.field final synthetic b:Lcom/sandboxol/editor/domain/BetaGame;
.field final synthetic c:Landroid/content/Context;
# direct methods
.method constructor <init>(Lcom/sandboxol/editor/view/fragment/testcenter/b;Lcom/sandboxol/editor/domain/BetaGame;Landroid/content/Context;)V
.registers 4
iput-object p1, p0, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterAdapter$onBindViewHolder$2;->a:Lcom/sandboxol/editor/view/fragment/testcenter/b;
iput-object p2, p0, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterAdapter$onBindViewHolder$2;->b:Lcom/sandboxol/editor/domain/BetaGame;
iput-object p3, p0, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterAdapter$onBindViewHolder$2;->c: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 11
.line 1
iget-object p1, p0, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterAdapter$onBindViewHolder$2;->a:Lcom/sandboxol/editor/view/fragment/testcenter/b;
invoke-virtual {p1}, Lcom/sandboxol/editor/view/fragment/testcenter/b;->d()Landroidx/lifecycle/LiveData;
move-result-object p1
invoke-virtual {p1}, Landroidx/lifecycle/LiveData;->a()Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/util/List;
const/4 v0, 0x0
const/4 v1, 0x1
if-eqz p1, :cond_3b
.line 2
new-instance v2, Ljava/util/ArrayList;
invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V
.line 3
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object p1
:cond_19
:goto_19
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v3
if-eqz v3, :cond_3c
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v3
move-object v4, v3
check-cast v4, Lcom/sandboxol/center/entity/PublishedGame;
.line 4
invoke-virtual {v4}, Lcom/sandboxol/center/entity/PublishedGame;->getPlatform()I
move-result v4
iget-object v5, p0, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterAdapter$onBindViewHolder$2;->b:Lcom/sandboxol/editor/domain/BetaGame;
invoke-virtual {v5}, Lcom/sandboxol/editor/domain/BetaGame;->getPlatform()I
move-result v5
if-ne v4, v5, :cond_34
const/4 v4, 0x1
goto :goto_35
:cond_34
const/4 v4, 0x0
:goto_35
if-eqz v4, :cond_19
invoke-interface {v2, v3}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
goto :goto_19
:cond_3b
const/4 v2, 0x0
:cond_3c
if-eqz v2, :cond_44
.line 5
invoke-interface {v2}, Ljava/util/Collection;->isEmpty()Z
move-result p1
if-eqz p1, :cond_45
:cond_44
const/4 v0, 0x1
:cond_45
if-eqz v0, :cond_68
.line 6
sget-object v3, Lcom/sandboxol/editor/domain/d;->a:Lcom/sandboxol/editor/domain/d;
iget-object p1, p0, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterAdapter$onBindViewHolder$2;->a:Lcom/sandboxol/editor/view/fragment/testcenter/b;
invoke-virtual {p1}, Lcom/sandboxol/editor/view/fragment/testcenter/b;->e()Lkotlinx/coroutines/F;
move-result-object v4
.line 7
iget-object v5, p0, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterAdapter$onBindViewHolder$2;->c:Landroid/content/Context;
const-string p1, "context"
invoke-static {v5, p1}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V
.line 8
iget-object p1, p0, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterAdapter$onBindViewHolder$2;->b:Lcom/sandboxol/editor/domain/BetaGame;
invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/Game;->getGameId()Ljava/lang/String;
move-result-object v6
const-string p1, "game.gameId"
invoke-static {v6, p1}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v8, 0x0
const-string v7, ""
.line 9
invoke-virtual/range {v3 .. v8}, Lcom/sandboxol/editor/domain/d;->a(Lkotlinx/coroutines/F;Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lrx/functions/Action0;)V
goto :goto_80
.line 10
:cond_68
new-instance p1, Lcom/sandboxol/editor/view/fragment/testcenter/submit/c;
iget-object v0, p0, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterAdapter$onBindViewHolder$2;->a:Lcom/sandboxol/editor/view/fragment/testcenter/b;
invoke-virtual {v0}, Lcom/sandboxol/editor/view/fragment/testcenter/b;->e()Lkotlinx/coroutines/F;
move-result-object v0
iget-object v1, p0, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterAdapter$onBindViewHolder$2;->b:Lcom/sandboxol/editor/domain/BetaGame;
invoke-direct {p1, v0, v1, v2}, Lcom/sandboxol/editor/view/fragment/testcenter/submit/c;-><init>(Lkotlinx/coroutines/F;Lcom/sandboxol/editor/domain/BetaGame;Ljava/util/List;)V
.line 11
iget-object v0, p0, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterAdapter$onBindViewHolder$2;->a:Lcom/sandboxol/editor/view/fragment/testcenter/b;
invoke-virtual {v0}, Lcom/sandboxol/editor/view/fragment/testcenter/b;->c()Landroidx/fragment/app/FragmentManager;
move-result-object v0
const-string v1, "SubmitReviewBottomDialog"
invoke-virtual {p1, v0, v1}, Landroidx/fragment/app/u;->show(Landroidx/fragment/app/FragmentManager;Ljava/lang/String;)V
.line 12
:goto_80
iget-object p1, p0, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterAdapter$onBindViewHolder$2;->c:Landroid/content/Context;
iget-object v0, p0, Lcom/sandboxol/editor/view/fragment/testcenter/TestCenterAdapter$onBindViewHolder$2;->b: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_submit"
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