CompoundButtonBindingAdapter.smali
.class public Landroidx/databinding/adapters/CompoundButtonBindingAdapter;
.super Ljava/lang/Object;
.source "CompoundButtonBindingAdapter.java"
# annotations
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.annotation build Landroidx/databinding/BindingMethods;
value = {
.subannotation Landroidx/databinding/BindingMethod;
attribute = "android:buttonTint"
method = "setButtonTintList"
type = Landroid/widget/CompoundButton;
.end subannotation,
.subannotation Landroidx/databinding/BindingMethod;
attribute = "android:onCheckedChanged"
method = "setOnCheckedChangeListener"
type = Landroid/widget/CompoundButton;
.end subannotation
}
.end annotation
.annotation build Landroidx/databinding/InverseBindingMethods;
value = {
.subannotation Landroidx/databinding/InverseBindingMethod;
attribute = "android:checked"
type = Landroid/widget/CompoundButton;
.end subannotation
}
.end annotation
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>()V
.registers 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static setChecked(Landroid/widget/CompoundButton;Z)V
.registers 3
.annotation build Landroidx/databinding/BindingAdapter;
value = {
"android:checked"
}
.end annotation
invoke-virtual {p0}, Landroid/widget/CompoundButton;->isChecked()Z
move-result v0
if-eq v0, p1, :cond_9
invoke-virtual {p0, p1}, Landroid/widget/CompoundButton;->setChecked(Z)V
:cond_9
return-void
.end method
.method public static setListeners(Landroid/widget/CompoundButton;Landroid/widget/CompoundButton$OnCheckedChangeListener;Landroidx/databinding/InverseBindingListener;)V
.registers 4
.annotation build Landroidx/databinding/BindingAdapter;
requireAll = false
value = {
"android:onCheckedChanged",
"android:checkedAttrChanged"
}
.end annotation
if-nez p2, :cond_6
invoke-virtual {p0, p1}, Landroid/widget/CompoundButton;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V
goto :goto_e
:cond_6
new-instance v0, Landroidx/databinding/adapters/CompoundButtonBindingAdapter$1;
invoke-direct {v0, p1, p2}, Landroidx/databinding/adapters/CompoundButtonBindingAdapter$1;-><init>(Landroid/widget/CompoundButton$OnCheckedChangeListener;Landroidx/databinding/InverseBindingListener;)V
invoke-virtual {p0, v0}, Landroid/widget/CompoundButton;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V
:goto_e
return-void
.end method