.class Landroid/support/v7/util/AsyncListUtil$1;
.super Ljava/lang/Object;
.source "AsyncListUtil.java"

# interfaces
.implements Landroid/support/v7/util/ThreadUtil$MainThreadCallback;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Landroid/support/v7/util/AsyncListUtil;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Landroid/support/v7/util/ThreadUtil$MainThreadCallback<",
        "TT;>;"
    }
.end annotation


# instance fields
.field final synthetic a:Landroid/support/v7/util/AsyncListUtil;


# direct methods
.method private a()V
    .locals 3

    const/4 v0, 0x0

    .line 278
    :goto_0
    iget-object v1, p0, Landroid/support/v7/util/AsyncListUtil$1;->a:Landroid/support/v7/util/AsyncListUtil;

    iget-object v1, v1, Landroid/support/v7/util/AsyncListUtil;->e:Landroid/support/v7/util/TileList;

    invoke-virtual {v1}, Landroid/support/v7/util/TileList;->a()I

    move-result v1

    if-ge v0, v1, :cond_0

    .line 279
    iget-object v1, p0, Landroid/support/v7/util/AsyncListUtil$1;->a:Landroid/support/v7/util/AsyncListUtil;

    iget-object v1, v1, Landroid/support/v7/util/AsyncListUtil;->g:Landroid/support/v7/util/ThreadUtil$BackgroundCallback;

    iget-object v2, p0, Landroid/support/v7/util/AsyncListUtil$1;->a:Landroid/support/v7/util/AsyncListUtil;

    iget-object v2, v2, Landroid/support/v7/util/AsyncListUtil;->e:Landroid/support/v7/util/TileList;

    invoke-virtual {v2, v0}, Landroid/support/v7/util/TileList;->a(I)Landroid/support/v7/util/TileList$Tile;

    move-result-object v2

    invoke-interface {v1, v2}, Landroid/support/v7/util/ThreadUtil$BackgroundCallback;->a(Landroid/support/v7/util/TileList$Tile;)V

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 281
    :cond_0
    iget-object v0, p0, Landroid/support/v7/util/AsyncListUtil$1;->a:Landroid/support/v7/util/AsyncListUtil;

    iget-object v0, v0, Landroid/support/v7/util/AsyncListUtil;->e:Landroid/support/v7/util/TileList;

    invoke-virtual {v0}, Landroid/support/v7/util/TileList;->b()V

    return-void
.end method

.method private a(I)Z
    .locals 1

    .line 285
    iget-object v0, p0, Landroid/support/v7/util/AsyncListUtil$1;->a:Landroid/support/v7/util/AsyncListUtil;

    iget v0, v0, Landroid/support/v7/util/AsyncListUtil;->n:I

    if-ne p1, v0, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method


# virtual methods
.method public a(II)V
    .locals 0

    .line 214
    invoke-direct {p0, p1}, Landroid/support/v7/util/AsyncListUtil$1;->a(I)Z

    move-result p1

    if-nez p1, :cond_0

    return-void

    .line 217
    :cond_0
    iget-object p1, p0, Landroid/support/v7/util/AsyncListUtil$1;->a:Landroid/support/v7/util/AsyncListUtil;

    iput p2, p1, Landroid/support/v7/util/AsyncListUtil;->l:I

    .line 218
    iget-object p1, p0, Landroid/support/v7/util/AsyncListUtil$1;->a:Landroid/support/v7/util/AsyncListUtil;

    iget-object p1, p1, Landroid/support/v7/util/AsyncListUtil;->d:Landroid/support/v7/util/AsyncListUtil$ViewCallback;

    invoke-virtual {p1}, Landroid/support/v7/util/AsyncListUtil$ViewCallback;->a()V

    .line 219
    iget-object p1, p0, Landroid/support/v7/util/AsyncListUtil$1;->a:Landroid/support/v7/util/AsyncListUtil;

    iget-object p2, p0, Landroid/support/v7/util/AsyncListUtil$1;->a:Landroid/support/v7/util/AsyncListUtil;

    iget p2, p2, Landroid/support/v7/util/AsyncListUtil;->n:I

    iput p2, p1, Landroid/support/v7/util/AsyncListUtil;->m:I

    .line 220
    invoke-direct {p0}, Landroid/support/v7/util/AsyncListUtil$1;->a()V

    .line 222
    iget-object p1, p0, Landroid/support/v7/util/AsyncListUtil$1;->a:Landroid/support/v7/util/AsyncListUtil;

    const/4 p2, 0x0

    iput-boolean p2, p1, Landroid/support/v7/util/AsyncListUtil;->k:Z

    .line 224
    iget-object p1, p0, Landroid/support/v7/util/AsyncListUtil$1;->a:Landroid/support/v7/util/AsyncListUtil;

    invoke-virtual {p1}, Landroid/support/v7/util/AsyncListUtil;->a()V

    return-void
.end method

.method public a(ILandroid/support/v7/util/TileList$Tile;)V
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I",
            "Landroid/support/v7/util/TileList$Tile<",
            "TT;>;)V"
        }
    .end annotation

    .line 229
    invoke-direct {p0, p1}, Landroid/support/v7/util/AsyncListUtil$1;->a(I)Z

    move-result p1

    if-nez p1, :cond_0

    .line 233
    iget-object p1, p0, Landroid/support/v7/util/AsyncListUtil$1;->a:Landroid/support/v7/util/AsyncListUtil;

    iget-object p1, p1, Landroid/support/v7/util/AsyncListUtil;->g:Landroid/support/v7/util/ThreadUtil$BackgroundCallback;

    invoke-interface {p1, p2}, Landroid/support/v7/util/ThreadUtil$BackgroundCallback;->a(Landroid/support/v7/util/TileList$Tile;)V

    return-void

    .line 236
    :cond_0
    iget-object p1, p0, Landroid/support/v7/util/AsyncListUtil$1;->a:Landroid/support/v7/util/AsyncListUtil;

    iget-object p1, p1, Landroid/support/v7/util/AsyncListUtil;->e:Landroid/support/v7/util/TileList;

    invoke-virtual {p1, p2}, Landroid/support/v7/util/TileList;->a(Landroid/support/v7/util/TileList$Tile;)Landroid/support/v7/util/TileList$Tile;

    move-result-object p1

    if-eqz p1, :cond_1

    const-string v0, "AsyncListUtil"

    .line 238
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "duplicate tile @"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v2, p1, Landroid/support/v7/util/TileList$Tile;->b:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 239
    iget-object v0, p0, Landroid/support/v7/util/AsyncListUtil$1;->a:Landroid/support/v7/util/AsyncListUtil;

    iget-object v0, v0, Landroid/support/v7/util/AsyncListUtil;->g:Landroid/support/v7/util/ThreadUtil$BackgroundCallback;

    invoke-interface {v0, p1}, Landroid/support/v7/util/ThreadUtil$BackgroundCallback;->a(Landroid/support/v7/util/TileList$Tile;)V

    .line 245
    :cond_1
    iget p1, p2, Landroid/support/v7/util/TileList$Tile;->b:I

    iget v0, p2, Landroid/support/v7/util/TileList$Tile;->c:I

    add-int/2addr p1, v0

    const/4 v0, 0x0

    .line 247
    :goto_0
    iget-object v1, p0, Landroid/support/v7/util/AsyncListUtil$1;->a:Landroid/support/v7/util/AsyncListUtil;

    iget-object v1, v1, Landroid/support/v7/util/AsyncListUtil;->o:Landroid/util/SparseIntArray;

    invoke-virtual {v1}, Landroid/util/SparseIntArray;->size()I

    move-result v1

    if-ge v0, v1, :cond_3

    .line 248
    iget-object v1, p0, Landroid/support/v7/util/AsyncListUtil$1;->a:Landroid/support/v7/util/AsyncListUtil;

    iget-object v1, v1, Landroid/support/v7/util/AsyncListUtil;->o:Landroid/util/SparseIntArray;

    invoke-virtual {v1, v0}, Landroid/util/SparseIntArray;->keyAt(I)I

    move-result v1

    .line 249
    iget v2, p2, Landroid/support/v7/util/TileList$Tile;->b:I

    if-gt v2, v1, :cond_2

    if-ge v1, p1, :cond_2

    .line 250
    iget-object v2, p0, Landroid/support/v7/util/AsyncListUtil$1;->a:Landroid/support/v7/util/AsyncListUtil;

    iget-object v2, v2, Landroid/support/v7/util/AsyncListUtil;->o:Landroid/util/SparseIntArray;

    invoke-virtual {v2, v0}, Landroid/util/SparseIntArray;->removeAt(I)V

    .line 251
    iget-object v2, p0, Landroid/support/v7/util/AsyncListUtil$1;->a:Landroid/support/v7/util/AsyncListUtil;

    iget-object v2, v2, Landroid/support/v7/util/AsyncListUtil;->d:Landroid/support/v7/util/AsyncListUtil$ViewCallback;

    invoke-virtual {v2, v1}, Landroid/support/v7/util/AsyncListUtil$ViewCallback;->a(I)V

    goto :goto_0

    :cond_2
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_3
    return-void
.end method

.method public b(II)V
    .locals 2

    .line 260
    invoke-direct {p0, p1}, Landroid/support/v7/util/AsyncListUtil$1;->a(I)Z

    move-result p1

    if-nez p1, :cond_0

    return-void

    .line 263
    :cond_0
    iget-object p1, p0, Landroid/support/v7/util/AsyncListUtil$1;->a:Landroid/support/v7/util/AsyncListUtil;

    iget-object p1, p1, Landroid/support/v7/util/AsyncListUtil;->e:Landroid/support/v7/util/TileList;

    invoke-virtual {p1, p2}, Landroid/support/v7/util/TileList;->b(I)Landroid/support/v7/util/TileList$Tile;

    move-result-object p1

    if-nez p1, :cond_1

    const-string p1, "AsyncListUtil"

    .line 265
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "tile not found @"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    invoke-static {p1, p2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    return-void

    .line 271
    :cond_1
    iget-object p2, p0, Landroid/support/v7/util/AsyncListUtil$1;->a:Landroid/support/v7/util/AsyncListUtil;

    iget-object p2, p2, Landroid/support/v7/util/AsyncListUtil;->g:Landroid/support/v7/util/ThreadUtil$BackgroundCallback;

    invoke-interface {p2, p1}, Landroid/support/v7/util/ThreadUtil$BackgroundCallback;->a(Landroid/support/v7/util/TileList$Tile;)V

    return-void
.end method
