132 lines
3.4 KiB
Smali
132 lines
3.4 KiB
Smali
.class public final Landroidx/preference/PreferenceGroupKt$iterator$1;
|
|
.super Ljava/lang/Object;
|
|
.source "PreferenceGroup.kt"
|
|
|
|
# interfaces
|
|
.implements Ljava/util/Iterator;
|
|
.implements Lkotlin/jvm/internal/a/d;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Landroidx/preference/PreferenceGroupKt;->iterator(Landroidx/preference/PreferenceGroup;)Ljava/util/Iterator;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/Object;",
|
|
"Ljava/util/Iterator<",
|
|
"Landroidx/preference/Preference;",
|
|
">;",
|
|
"Lkotlin/jvm/internal/a/d;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic $this_iterator:Landroidx/preference/PreferenceGroup;
|
|
|
|
.field private index:I
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Landroidx/preference/PreferenceGroup;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Landroidx/preference/PreferenceGroupKt$iterator$1;->$this_iterator:Landroidx/preference/PreferenceGroup;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final hasNext()Z
|
|
.locals 2
|
|
|
|
iget v0, p0, Landroidx/preference/PreferenceGroupKt$iterator$1;->index:I
|
|
|
|
iget-object v1, p0, Landroidx/preference/PreferenceGroupKt$iterator$1;->$this_iterator:Landroidx/preference/PreferenceGroup;
|
|
|
|
invoke-virtual {v1}, Landroidx/preference/PreferenceGroup;->getPreferenceCount()I
|
|
|
|
move-result v1
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final next()Landroidx/preference/Preference;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Landroidx/preference/PreferenceGroupKt$iterator$1;->$this_iterator:Landroidx/preference/PreferenceGroup;
|
|
|
|
iget v1, p0, Landroidx/preference/PreferenceGroupKt$iterator$1;->index:I
|
|
|
|
add-int/lit8 v2, v1, 0x1
|
|
|
|
iput v2, p0, Landroidx/preference/PreferenceGroupKt$iterator$1;->index:I
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/preference/PreferenceGroup;->getPreference(I)Landroidx/preference/Preference;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/IndexOutOfBoundsException;
|
|
|
|
invoke-direct {v0}, Ljava/lang/IndexOutOfBoundsException;-><init>()V
|
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final bridge synthetic next()Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
invoke-virtual {p0}, Landroidx/preference/PreferenceGroupKt$iterator$1;->next()Landroidx/preference/Preference;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final remove()V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Landroidx/preference/PreferenceGroupKt$iterator$1;->$this_iterator:Landroidx/preference/PreferenceGroup;
|
|
|
|
iget v1, p0, Landroidx/preference/PreferenceGroupKt$iterator$1;->index:I
|
|
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
iput v1, p0, Landroidx/preference/PreferenceGroupKt$iterator$1;->index:I
|
|
|
|
iget v1, p0, Landroidx/preference/PreferenceGroupKt$iterator$1;->index:I
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/preference/PreferenceGroup;->getPreference(I)Landroidx/preference/Preference;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/preference/PreferenceGroup;->removePreference(Landroidx/preference/Preference;)Z
|
|
|
|
return-void
|
|
.end method
|