apkfuckery/com.discord/smali/androidx/preference/PreferenceGroupKt$iterator$1.smali
2020-09-09 19:21:20 +00:00

129 lines
3.3 KiB
Smali

.class public final Landroidx/preference/PreferenceGroupKt$iterator$1;
.super Ljava/lang/Object;
.source "PreferenceGroup.kt"
# interfaces
.implements Ljava/util/Iterator;
.implements Lk0/n/c/w/a;
# 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;",
">;",
"Ljava/lang/Object;"
}
.end annotation
# instance fields
.field public final synthetic $this_iterator:Landroidx/preference/PreferenceGroup;
.field public index:I
# direct methods
.method public 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 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
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public 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
throw v0
.end method
.method public 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 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
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