e.smali

.class final Lcom/sandboxol/editor/view/fragment/mywork/e;
.super Ljava/lang/Object;
.source "MyWorkAdapter.kt"

# interfaces
.implements Landroid/widget/CompoundButton$OnCheckedChangeListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/sandboxol/editor/view/fragment/mywork/a;->a(Lcom/sandboxol/editor/view/fragment/mywork/a$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/mywork/a;

.field final synthetic b:Z

.field final synthetic c:Lcom/sandboxol/center/entity/PublishedGame;


# direct methods
.method constructor <init>(Lcom/sandboxol/editor/view/fragment/mywork/a;ZLcom/sandboxol/center/entity/PublishedGame;)V
    .registers 4

    iput-object p1, p0, Lcom/sandboxol/editor/view/fragment/mywork/e;->a:Lcom/sandboxol/editor/view/fragment/mywork/a;

    iput-boolean p2, p0, Lcom/sandboxol/editor/view/fragment/mywork/e;->b:Z

    iput-object p3, p0, Lcom/sandboxol/editor/view/fragment/mywork/e;->c:Lcom/sandboxol/center/entity/PublishedGame;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final onCheckedChanged(Landroid/widget/CompoundButton;Z)V
    .registers 7

    const-string v0, "switch"

    .line 1
    invoke-static {p1, v0}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {p1}, Landroid/widget/CompoundButton;->isPressed()Z

    move-result v0

    if-eqz v0, :cond_2a

    .line 2
    iget-boolean v0, p0, Lcom/sandboxol/editor/view/fragment/mywork/e;->b:Z

    if-eqz v0, :cond_2a

    .line 3
    sget-object v0, Lcom/sandboxol/editor/domain/d;->a:Lcom/sandboxol/editor/domain/d;

    iget-object v1, p0, Lcom/sandboxol/editor/view/fragment/mywork/e;->a:Lcom/sandboxol/editor/view/fragment/mywork/a;

    invoke-virtual {v1}, Lcom/sandboxol/editor/view/fragment/mywork/a;->c()Lkotlinx/coroutines/F;

    move-result-object v1

    iget-object v2, p0, Lcom/sandboxol/editor/view/fragment/mywork/e;->c:Lcom/sandboxol/center/entity/PublishedGame;

    invoke-virtual {v2}, Lcom/sandboxol/greendao/entity/Game;->getGameId()Ljava/lang/String;

    move-result-object v2

    const-string v3, "game.gameId"

    invoke-static {v2, v3}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V

    new-instance v3, Lcom/sandboxol/editor/view/fragment/mywork/d;

    invoke-direct {v3, p1}, Lcom/sandboxol/editor/view/fragment/mywork/d;-><init>(Landroid/widget/CompoundButton;)V

    invoke-virtual {v0, v1, v2, p2, v3}, Lcom/sandboxol/editor/domain/d;->a(Lkotlinx/coroutines/F;Ljava/lang/String;ZLrx/functions/Action1;)V

    :cond_2a
    return-void
.end method