1236 lines
31 KiB
Smali
1236 lines
31 KiB
Smali
.class public Lcom/google/android/material/chip/ChipGroup;
|
|
.super Lcom/google/android/material/internal/FlowLayout;
|
|
.source "ChipGroup.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/google/android/material/chip/ChipGroup$PassThroughHierarchyChangeListener;,
|
|
Lcom/google/android/material/chip/ChipGroup$CheckedStateTracker;,
|
|
Lcom/google/android/material/chip/ChipGroup$LayoutParams;,
|
|
Lcom/google/android/material/chip/ChipGroup$OnCheckedChangeListener;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final DEF_STYLE_RES:I
|
|
|
|
|
|
# instance fields
|
|
.field private checkedId:I
|
|
.annotation build Landroidx/annotation/IdRes;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private final checkedStateTracker:Lcom/google/android/material/chip/ChipGroup$CheckedStateTracker;
|
|
|
|
.field private chipSpacingHorizontal:I
|
|
.annotation build Landroidx/annotation/Dimension;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private chipSpacingVertical:I
|
|
.annotation build Landroidx/annotation/Dimension;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private onCheckedChangeListener:Lcom/google/android/material/chip/ChipGroup$OnCheckedChangeListener;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private passThroughListener:Lcom/google/android/material/chip/ChipGroup$PassThroughHierarchyChangeListener;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private protectFromCheckedChange:Z
|
|
|
|
.field private selectionRequired:Z
|
|
|
|
.field private singleSelection:Z
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
sget v0, Lcom/google/android/material/R$style;->Widget_MaterialComponents_ChipGroup:I
|
|
|
|
sput v0, Lcom/google/android/material/chip/ChipGroup;->DEF_STYLE_RES:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1, v0}, Lcom/google/android/material/chip/ChipGroup;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 1
|
|
|
|
.line 2
|
|
sget v0, Lcom/google/android/material/R$attr;->chipGroupStyle:I
|
|
|
|
invoke-direct {p0, p1, p2, v0}, Lcom/google/android/material/chip/ChipGroup;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
.locals 7
|
|
|
|
.line 3
|
|
sget v4, Lcom/google/android/material/chip/ChipGroup;->DEF_STYLE_RES:I
|
|
|
|
invoke-static {p1, p2, p3, v4}, Lcom/google/android/material/theme/overlay/MaterialThemeOverlay;->wrap(Landroid/content/Context;Landroid/util/AttributeSet;II)Landroid/content/Context;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1, p2, p3}, Lcom/google/android/material/internal/FlowLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
.line 4
|
|
new-instance p1, Lcom/google/android/material/chip/ChipGroup$CheckedStateTracker;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-direct {p1, p0, v0}, Lcom/google/android/material/chip/ChipGroup$CheckedStateTracker;-><init>(Lcom/google/android/material/chip/ChipGroup;Lcom/google/android/material/chip/ChipGroup$1;)V
|
|
|
|
iput-object p1, p0, Lcom/google/android/material/chip/ChipGroup;->checkedStateTracker:Lcom/google/android/material/chip/ChipGroup$CheckedStateTracker;
|
|
|
|
.line 5
|
|
new-instance p1, Lcom/google/android/material/chip/ChipGroup$PassThroughHierarchyChangeListener;
|
|
|
|
invoke-direct {p1, p0, v0}, Lcom/google/android/material/chip/ChipGroup$PassThroughHierarchyChangeListener;-><init>(Lcom/google/android/material/chip/ChipGroup;Lcom/google/android/material/chip/ChipGroup$1;)V
|
|
|
|
iput-object p1, p0, Lcom/google/android/material/chip/ChipGroup;->passThroughListener:Lcom/google/android/material/chip/ChipGroup$PassThroughHierarchyChangeListener;
|
|
|
|
const/4 p1, -0x1
|
|
|
|
.line 6
|
|
iput p1, p0, Lcom/google/android/material/chip/ChipGroup;->checkedId:I
|
|
|
|
const/4 v6, 0x0
|
|
|
|
.line 7
|
|
iput-boolean v6, p0, Lcom/google/android/material/chip/ChipGroup;->protectFromCheckedChange:Z
|
|
|
|
.line 8
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
.line 9
|
|
sget-object v2, Lcom/google/android/material/R$styleable;->ChipGroup:[I
|
|
|
|
new-array v5, v6, [I
|
|
|
|
move-object v1, p2
|
|
|
|
move v3, p3
|
|
|
|
.line 10
|
|
invoke-static/range {v0 .. v5}, Lcom/google/android/material/internal/ThemeEnforcement;->obtainStyledAttributes(Landroid/content/Context;Landroid/util/AttributeSet;[III[I)Landroid/content/res/TypedArray;
|
|
|
|
move-result-object p2
|
|
|
|
.line 11
|
|
sget p3, Lcom/google/android/material/R$styleable;->ChipGroup_chipSpacing:I
|
|
|
|
invoke-virtual {p2, p3, v6}, Landroid/content/res/TypedArray;->getDimensionPixelOffset(II)I
|
|
|
|
move-result p3
|
|
|
|
.line 12
|
|
sget v0, Lcom/google/android/material/R$styleable;->ChipGroup_chipSpacingHorizontal:I
|
|
|
|
.line 13
|
|
invoke-virtual {p2, v0, p3}, Landroid/content/res/TypedArray;->getDimensionPixelOffset(II)I
|
|
|
|
move-result v0
|
|
|
|
.line 14
|
|
invoke-virtual {p0, v0}, Lcom/google/android/material/chip/ChipGroup;->setChipSpacingHorizontal(I)V
|
|
|
|
.line 15
|
|
sget v0, Lcom/google/android/material/R$styleable;->ChipGroup_chipSpacingVertical:I
|
|
|
|
.line 16
|
|
invoke-virtual {p2, v0, p3}, Landroid/content/res/TypedArray;->getDimensionPixelOffset(II)I
|
|
|
|
move-result p3
|
|
|
|
.line 17
|
|
invoke-virtual {p0, p3}, Lcom/google/android/material/chip/ChipGroup;->setChipSpacingVertical(I)V
|
|
|
|
.line 18
|
|
sget p3, Lcom/google/android/material/R$styleable;->ChipGroup_singleLine:I
|
|
|
|
invoke-virtual {p2, p3, v6}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result p3
|
|
|
|
invoke-virtual {p0, p3}, Lcom/google/android/material/chip/ChipGroup;->setSingleLine(Z)V
|
|
|
|
.line 19
|
|
sget p3, Lcom/google/android/material/R$styleable;->ChipGroup_singleSelection:I
|
|
|
|
invoke-virtual {p2, p3, v6}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result p3
|
|
|
|
invoke-virtual {p0, p3}, Lcom/google/android/material/chip/ChipGroup;->setSingleSelection(Z)V
|
|
|
|
.line 20
|
|
sget p3, Lcom/google/android/material/R$styleable;->ChipGroup_selectionRequired:I
|
|
|
|
invoke-virtual {p2, p3, v6}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result p3
|
|
|
|
invoke-virtual {p0, p3}, Lcom/google/android/material/chip/ChipGroup;->setSelectionRequired(Z)V
|
|
|
|
.line 21
|
|
sget p3, Lcom/google/android/material/R$styleable;->ChipGroup_checkedChip:I
|
|
|
|
invoke-virtual {p2, p3, p1}, Landroid/content/res/TypedArray;->getResourceId(II)I
|
|
|
|
move-result p3
|
|
|
|
if-eq p3, p1, :cond_0
|
|
|
|
.line 22
|
|
iput p3, p0, Lcom/google/android/material/chip/ChipGroup;->checkedId:I
|
|
|
|
.line 23
|
|
:cond_0
|
|
invoke-virtual {p2}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
.line 24
|
|
iget-object p1, p0, Lcom/google/android/material/chip/ChipGroup;->passThroughListener:Lcom/google/android/material/chip/ChipGroup$PassThroughHierarchyChangeListener;
|
|
|
|
invoke-super {p0, p1}, Landroid/view/ViewGroup;->setOnHierarchyChangeListener(Landroid/view/ViewGroup$OnHierarchyChangeListener;)V
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 25
|
|
invoke-static {p0, p1}, Landroidx/core/view/ViewCompat;->R1(Landroid/view/View;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic access$1000(Lcom/google/android/material/chip/ChipGroup;)Lcom/google/android/material/chip/ChipGroup$CheckedStateTracker;
|
|
.locals 0
|
|
|
|
.line 1
|
|
iget-object p0, p0, Lcom/google/android/material/chip/ChipGroup;->checkedStateTracker:Lcom/google/android/material/chip/ChipGroup$CheckedStateTracker;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static synthetic access$300(Lcom/google/android/material/chip/ChipGroup;)Z
|
|
.locals 0
|
|
|
|
.line 1
|
|
iget-boolean p0, p0, Lcom/google/android/material/chip/ChipGroup;->protectFromCheckedChange:Z
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static synthetic access$400(Lcom/google/android/material/chip/ChipGroup;)Z
|
|
.locals 0
|
|
|
|
.line 1
|
|
iget-boolean p0, p0, Lcom/google/android/material/chip/ChipGroup;->selectionRequired:Z
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static synthetic access$500(Lcom/google/android/material/chip/ChipGroup;IZ)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1, p2}, Lcom/google/android/material/chip/ChipGroup;->setCheckedStateForView(IZ)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic access$600(Lcom/google/android/material/chip/ChipGroup;IZ)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1, p2}, Lcom/google/android/material/chip/ChipGroup;->setCheckedId(IZ)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic access$700(Lcom/google/android/material/chip/ChipGroup;)I
|
|
.locals 0
|
|
|
|
.line 1
|
|
iget p0, p0, Lcom/google/android/material/chip/ChipGroup;->checkedId:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static synthetic access$800(Lcom/google/android/material/chip/ChipGroup;)Z
|
|
.locals 0
|
|
|
|
.line 1
|
|
iget-boolean p0, p0, Lcom/google/android/material/chip/ChipGroup;->singleSelection:Z
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static synthetic access$900(Lcom/google/android/material/chip/ChipGroup;I)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1}, Lcom/google/android/material/chip/ChipGroup;->setCheckedId(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private getChipCount()I
|
|
.locals 3
|
|
|
|
const/4 v0, 0x0
|
|
|
|
move v1, v0
|
|
|
|
.line 1
|
|
:goto_0
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
move-result v2
|
|
|
|
if-ge v0, v2, :cond_1
|
|
|
|
.line 2
|
|
invoke-virtual {p0, v0}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
instance-of v2, v2, Lcom/google/android/material/chip/Chip;
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
:cond_0
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return v1
|
|
.end method
|
|
|
|
.method private setCheckedId(I)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1, v0}, Lcom/google/android/material/chip/ChipGroup;->setCheckedId(IZ)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private setCheckedId(IZ)V
|
|
.locals 2
|
|
|
|
.line 2
|
|
iput p1, p0, Lcom/google/android/material/chip/ChipGroup;->checkedId:I
|
|
|
|
.line 3
|
|
iget-object v0, p0, Lcom/google/android/material/chip/ChipGroup;->onCheckedChangeListener:Lcom/google/android/material/chip/ChipGroup$OnCheckedChangeListener;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-boolean v1, p0, Lcom/google/android/material/chip/ChipGroup;->singleSelection:Z
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 4
|
|
invoke-interface {v0, p0, p1}, Lcom/google/android/material/chip/ChipGroup$OnCheckedChangeListener;->onCheckedChanged(Lcom/google/android/material/chip/ChipGroup;I)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private setCheckedStateForView(IZ)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/IdRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
.line 2
|
|
instance-of v0, p1, Lcom/google/android/material/chip/Chip;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 3
|
|
iput-boolean v0, p0, Lcom/google/android/material/chip/ChipGroup;->protectFromCheckedChange:Z
|
|
|
|
.line 4
|
|
check-cast p1, Lcom/google/android/material/chip/Chip;
|
|
|
|
invoke-virtual {p1, p2}, Lcom/google/android/material/chip/Chip;->setChecked(Z)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 5
|
|
iput-boolean p1, p0, Lcom/google/android/material/chip/ChipGroup;->protectFromCheckedChange:Z
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V
|
|
.locals 3
|
|
|
|
.line 1
|
|
instance-of v0, p1, Lcom/google/android/material/chip/Chip;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 2
|
|
move-object v0, p1
|
|
|
|
check-cast v0, Lcom/google/android/material/chip/Chip;
|
|
|
|
.line 3
|
|
invoke-virtual {v0}, Landroid/widget/CheckBox;->isChecked()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 4
|
|
iget v1, p0, Lcom/google/android/material/chip/ChipGroup;->checkedId:I
|
|
|
|
const/4 v2, -0x1
|
|
|
|
if-eq v1, v2, :cond_0
|
|
|
|
iget-boolean v2, p0, Lcom/google/android/material/chip/ChipGroup;->singleSelection:Z
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.line 5
|
|
invoke-direct {p0, v1, v2}, Lcom/google/android/material/chip/ChipGroup;->setCheckedStateForView(IZ)V
|
|
|
|
.line 6
|
|
:cond_0
|
|
invoke-virtual {v0}, Landroid/widget/CheckBox;->getId()I
|
|
|
|
move-result v0
|
|
|
|
invoke-direct {p0, v0}, Lcom/google/android/material/chip/ChipGroup;->setCheckedId(I)V
|
|
|
|
.line 7
|
|
:cond_1
|
|
invoke-super {p0, p1, p2, p3}, Landroid/view/ViewGroup;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public check(I)V
|
|
.locals 3
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/IdRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/chip/ChipGroup;->checkedId:I
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/4 v1, -0x1
|
|
|
|
if-eq v0, v1, :cond_1
|
|
|
|
.line 2
|
|
iget-boolean v2, p0, Lcom/google/android/material/chip/ChipGroup;->singleSelection:Z
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.line 3
|
|
invoke-direct {p0, v0, v2}, Lcom/google/android/material/chip/ChipGroup;->setCheckedStateForView(IZ)V
|
|
|
|
:cond_1
|
|
if-eq p1, v1, :cond_2
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 4
|
|
invoke-direct {p0, p1, v0}, Lcom/google/android/material/chip/ChipGroup;->setCheckedStateForView(IZ)V
|
|
|
|
.line 5
|
|
:cond_2
|
|
invoke-direct {p0, p1}, Lcom/google/android/material/chip/ChipGroup;->setCheckedId(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public checkLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroid/view/ViewGroup;->checkLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
instance-of p1, p1, Lcom/google/android/material/chip/ChipGroup$LayoutParams;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
:goto_0
|
|
return p1
|
|
.end method
|
|
|
|
.method public clearCheck()V
|
|
.locals 4
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 1
|
|
iput-boolean v0, p0, Lcom/google/android/material/chip/ChipGroup;->protectFromCheckedChange:Z
|
|
|
|
const/4 v0, 0x0
|
|
|
|
move v1, v0
|
|
|
|
.line 2
|
|
:goto_0
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
move-result v2
|
|
|
|
if-ge v1, v2, :cond_1
|
|
|
|
.line 3
|
|
invoke-virtual {p0, v1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
.line 4
|
|
instance-of v3, v2, Lcom/google/android/material/chip/Chip;
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
.line 5
|
|
check-cast v2, Lcom/google/android/material/chip/Chip;
|
|
|
|
invoke-virtual {v2, v0}, Lcom/google/android/material/chip/Chip;->setChecked(Z)V
|
|
|
|
:cond_0
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 6
|
|
:cond_1
|
|
iput-boolean v0, p0, Lcom/google/android/material/chip/ChipGroup;->protectFromCheckedChange:Z
|
|
|
|
const/4 v0, -0x1
|
|
|
|
.line 7
|
|
invoke-direct {p0, v0}, Lcom/google/android/material/chip/ChipGroup;->setCheckedId(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public generateDefaultLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/android/material/chip/ChipGroup$LayoutParams;
|
|
|
|
const/4 v1, -0x2
|
|
|
|
invoke-direct {v0, v1, v1}, Lcom/google/android/material/chip/ChipGroup$LayoutParams;-><init>(II)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public generateLayoutParams(Landroid/util/AttributeSet;)Landroid/view/ViewGroup$LayoutParams;
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/android/material/chip/ChipGroup$LayoutParams;
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1, p1}, Lcom/google/android/material/chip/ChipGroup$LayoutParams;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public generateLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Landroid/view/ViewGroup$LayoutParams;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 2
|
|
new-instance v0, Lcom/google/android/material/chip/ChipGroup$LayoutParams;
|
|
|
|
invoke-direct {v0, p1}, Lcom/google/android/material/chip/ChipGroup$LayoutParams;-><init>(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getCheckedChipId()I
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/IdRes;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/chip/ChipGroup;->singleSelection:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget v0, p0, Lcom/google/android/material/chip/ChipGroup;->checkedId:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, -0x1
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public getCheckedChipIds()Ljava/util/List;
|
|
.locals 4
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/Integer;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 2
|
|
:goto_0
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
move-result v2
|
|
|
|
if-ge v1, v2, :cond_1
|
|
|
|
.line 3
|
|
invoke-virtual {p0, v1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
.line 4
|
|
instance-of v3, v2, Lcom/google/android/material/chip/Chip;
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
.line 5
|
|
move-object v3, v2
|
|
|
|
check-cast v3, Lcom/google/android/material/chip/Chip;
|
|
|
|
invoke-virtual {v3}, Landroid/widget/CheckBox;->isChecked()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
.line 6
|
|
invoke-virtual {v2}, Landroid/view/View;->getId()I
|
|
|
|
move-result v2
|
|
|
|
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 7
|
|
iget-boolean v2, p0, Lcom/google/android/material/chip/ChipGroup;->singleSelection:Z
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getChipSpacingHorizontal()I
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Dimension;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/chip/ChipGroup;->chipSpacingHorizontal:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getChipSpacingVertical()I
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Dimension;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/chip/ChipGroup;->chipSpacingVertical:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getIndexOfChip(Landroid/view/View;)I
|
|
.locals 4
|
|
.param p1 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
instance-of v0, p1, Lcom/google/android/material/chip/Chip;
|
|
|
|
const/4 v1, -0x1
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return v1
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
move v2, v0
|
|
|
|
.line 2
|
|
:goto_0
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
move-result v3
|
|
|
|
if-ge v0, v3, :cond_3
|
|
|
|
.line 3
|
|
invoke-virtual {p0, v0}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v3
|
|
|
|
instance-of v3, v3, Lcom/google/android/material/chip/Chip;
|
|
|
|
if-eqz v3, :cond_2
|
|
|
|
.line 4
|
|
invoke-virtual {p0, v0}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Lcom/google/android/material/chip/Chip;
|
|
|
|
if-ne v3, p1, :cond_1
|
|
|
|
return v2
|
|
|
|
:cond_1
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
:cond_2
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
return v1
|
|
.end method
|
|
|
|
.method public isSelectionRequired()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/chip/ChipGroup;->selectionRequired:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isSingleLine()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-super {p0}, Lcom/google/android/material/internal/FlowLayout;->isSingleLine()Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isSingleSelection()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/chip/ChipGroup;->singleSelection:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public onFinishInflate()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-super {p0}, Landroid/view/ViewGroup;->onFinishInflate()V
|
|
|
|
.line 2
|
|
iget v0, p0, Lcom/google/android/material/chip/ChipGroup;->checkedId:I
|
|
|
|
const/4 v1, -0x1
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
.line 3
|
|
invoke-direct {p0, v0, v1}, Lcom/google/android/material/chip/ChipGroup;->setCheckedStateForView(IZ)V
|
|
|
|
.line 4
|
|
iget v0, p0, Lcom/google/android/material/chip/ChipGroup;->checkedId:I
|
|
|
|
invoke-direct {p0, v0}, Lcom/google/android/material/chip/ChipGroup;->setCheckedId(I)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onInitializeAccessibilityNodeInfo(Landroid/view/accessibility/AccessibilityNodeInfo;)V
|
|
.locals 4
|
|
.param p1 # Landroid/view/accessibility/AccessibilityNodeInfo;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroid/view/ViewGroup;->onInitializeAccessibilityNodeInfo(Landroid/view/accessibility/AccessibilityNodeInfo;)V
|
|
|
|
.line 2
|
|
invoke-static {p1}, Lt1/c;->V1(Landroid/view/accessibility/AccessibilityNodeInfo;)Lt1/c;
|
|
|
|
move-result-object p1
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Lcom/google/android/material/chip/ChipGroup;->isSingleLine()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/chip/ChipGroup;->getChipCount()I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, -0x1
|
|
|
|
.line 4
|
|
:goto_0
|
|
invoke-virtual {p0}, Lcom/google/android/material/internal/FlowLayout;->getRowCount()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.line 5
|
|
invoke-virtual {p0}, Lcom/google/android/material/chip/ChipGroup;->isSingleSelection()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
const/4 v3, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v3, 0x2
|
|
|
|
.line 6
|
|
:goto_1
|
|
invoke-static {v1, v0, v2, v3}, Lt1/c$b;->f(IIZI)Lt1/c$b;
|
|
|
|
move-result-object v0
|
|
|
|
.line 7
|
|
invoke-virtual {p1, v0}, Lt1/c;->W0(Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setChipSpacing(I)V
|
|
.locals 0
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/Dimension;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipGroup;->setChipSpacingHorizontal(I)V
|
|
|
|
.line 2
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipGroup;->setChipSpacingVertical(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setChipSpacingHorizontal(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/Dimension;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/chip/ChipGroup;->chipSpacingHorizontal:I
|
|
|
|
if-eq v0, p1, :cond_0
|
|
|
|
.line 2
|
|
iput p1, p0, Lcom/google/android/material/chip/ChipGroup;->chipSpacingHorizontal:I
|
|
|
|
.line 3
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/internal/FlowLayout;->setItemSpacing(I)V
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->requestLayout()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setChipSpacingHorizontalResource(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DimenRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipGroup;->setChipSpacingHorizontal(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setChipSpacingResource(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DimenRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipGroup;->setChipSpacing(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setChipSpacingVertical(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/Dimension;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/chip/ChipGroup;->chipSpacingVertical:I
|
|
|
|
if-eq v0, p1, :cond_0
|
|
|
|
.line 2
|
|
iput p1, p0, Lcom/google/android/material/chip/ChipGroup;->chipSpacingVertical:I
|
|
|
|
.line 3
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/internal/FlowLayout;->setLineSpacing(I)V
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->requestLayout()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setChipSpacingVerticalResource(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DimenRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipGroup;->setChipSpacingVertical(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setDividerDrawableHorizontal(Landroid/graphics/drawable/Drawable;)V
|
|
.locals 1
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
const-string v0, "Changing divider drawables have no effect. ChipGroup do not use divider drawables as spacing."
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public setDividerDrawableVertical(Landroid/graphics/drawable/Drawable;)V
|
|
.locals 1
|
|
.param p1 # Landroid/graphics/drawable/Drawable;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
const-string v0, "Changing divider drawables have no effect. ChipGroup do not use divider drawables as spacing."
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public setFlexWrap(I)V
|
|
.locals 1
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
const-string v0, "Changing flex wrap not allowed. ChipGroup exposes a singleLine attribute instead."
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public setOnCheckedChangeListener(Lcom/google/android/material/chip/ChipGroup$OnCheckedChangeListener;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lcom/google/android/material/chip/ChipGroup;->onCheckedChangeListener:Lcom/google/android/material/chip/ChipGroup$OnCheckedChangeListener;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setOnHierarchyChangeListener(Landroid/view/ViewGroup$OnHierarchyChangeListener;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/ChipGroup;->passThroughListener:Lcom/google/android/material/chip/ChipGroup$PassThroughHierarchyChangeListener;
|
|
|
|
invoke-static {v0, p1}, Lcom/google/android/material/chip/ChipGroup$PassThroughHierarchyChangeListener;->access$202(Lcom/google/android/material/chip/ChipGroup$PassThroughHierarchyChangeListener;Landroid/view/ViewGroup$OnHierarchyChangeListener;)Landroid/view/ViewGroup$OnHierarchyChangeListener;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSelectionRequired(Z)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-boolean p1, p0, Lcom/google/android/material/chip/ChipGroup;->selectionRequired:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setShowDividerHorizontal(I)V
|
|
.locals 1
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
const-string v0, "Changing divider modes has no effect. ChipGroup do not use divider drawables as spacing."
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public setShowDividerVertical(I)V
|
|
.locals 1
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
const-string v0, "Changing divider modes has no effect. ChipGroup do not use divider drawables as spacing."
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public setSingleLine(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/BoolRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getBoolean(I)Z
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipGroup;->setSingleLine(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSingleLine(Z)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Lcom/google/android/material/internal/FlowLayout;->setSingleLine(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSingleSelection(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/BoolRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getBoolean(I)Z
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipGroup;->setSingleSelection(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSingleSelection(Z)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/chip/ChipGroup;->singleSelection:Z
|
|
|
|
if-eq v0, p1, :cond_0
|
|
|
|
.line 2
|
|
iput-boolean p1, p0, Lcom/google/android/material/chip/ChipGroup;->singleSelection:Z
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Lcom/google/android/material/chip/ChipGroup;->clearCheck()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|