DCWXSwitch$2.smali
.class Lio/dcloud/feature/weex_switch/DCWXSwitch$2;
.super Ljava/lang/Object;
.source "DCWXSwitch.java"
# interfaces
.implements Lio/dcloud/feature/weex_switch/SwitchButton$OnCheckedChangeListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lio/dcloud/feature/weex_switch/DCWXSwitch;->addEvent(Ljava/lang/String;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lio/dcloud/feature/weex_switch/DCWXSwitch;
# direct methods
.method constructor <init>(Lio/dcloud/feature/weex_switch/DCWXSwitch;)V
.registers 2
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x8010
}
names = {
"this$0"
}
.end annotation
.line 78
iput-object p1, p0, Lio/dcloud/feature/weex_switch/DCWXSwitch$2;->this$0:Lio/dcloud/feature/weex_switch/DCWXSwitch;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onCheckedChanged(Lio/dcloud/feature/weex_switch/SwitchButton;Z)V
.registers 5
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0,
0x0
}
names = {
"view",
"isChecked"
}
.end annotation
.line 81
new-instance p1, Ljava/util/HashMap;
invoke-direct {p1}, Ljava/util/HashMap;-><init>()V
.line 82
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
.line 83
invoke-static {p2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object p2
const-string v1, "value"
invoke-interface {v0, v1, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string p2, "detail"
.line 84
invoke-interface {p1, p2, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 85
iget-object p2, p0, Lio/dcloud/feature/weex_switch/DCWXSwitch$2;->this$0:Lio/dcloud/feature/weex_switch/DCWXSwitch;
const-string v0, "change"
invoke-virtual {p2, v0, p1}, Lio/dcloud/feature/weex_switch/DCWXSwitch;->fireEvent(Ljava/lang/String;Ljava/util/Map;)V
return-void
.end method