.class public Lcom/google/android/material/datepicker/u;
.super Landroidx/recyclerview/widget/RecyclerView$e;
.source ""


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/google/android/material/datepicker/u$a;
    }
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Landroidx/recyclerview/widget/RecyclerView$e<",
        "Lcom/google/android/material/datepicker/u$a;",
        ">;"
    }
.end annotation


# instance fields
.field public final c:Landroid/content/Context;

.field public final d:Lcom/google/android/material/datepicker/a;

.field public final e:Lcom/google/android/material/datepicker/c;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/google/android/material/datepicker/c<",
            "*>;"
        }
    .end annotation
.end field

.field public final f:Lcom/google/android/material/datepicker/f$e;

.field public final g:I


# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/google/android/material/datepicker/c;Lcom/google/android/material/datepicker/a;Lcom/google/android/material/datepicker/f$e;)V
    .registers 8
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Lcom/google/android/material/datepicker/c<",
            "*>;",
            "Lcom/google/android/material/datepicker/a;",
            "Lcom/google/android/material/datepicker/f$e;",
            ")V"
        }
    .end annotation

    invoke-direct {p0}, Landroidx/recyclerview/widget/RecyclerView$e;-><init>()V

    .line 1
    iget-object v0, p3, Lcom/google/android/material/datepicker/a;->r:Lcom/google/android/material/datepicker/r;

    .line 2
    iget-object v1, p3, Lcom/google/android/material/datepicker/a;->s:Lcom/google/android/material/datepicker/r;

    .line 3
    iget-object v2, p3, Lcom/google/android/material/datepicker/a;->u:Lcom/google/android/material/datepicker/r;

    .line 4
    invoke-virtual {v0, v2}, Lcom/google/android/material/datepicker/r;->a(Lcom/google/android/material/datepicker/r;)I

    move-result v0

    if-gtz v0, :cond_5c

    invoke-virtual {v2, v1}, Lcom/google/android/material/datepicker/r;->a(Lcom/google/android/material/datepicker/r;)I

    move-result v0

    if-gtz v0, :cond_54

    sget v0, Lcom/google/android/material/datepicker/s;->w:I

    sget v1, Lcom/google/android/material/datepicker/f;->v0:I

    .line 5
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f0700f3

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v1

    mul-int/2addr v0, v1

    .line 6
    invoke-static {p1}, Lcom/google/android/material/datepicker/n;->l0(Landroid/content/Context;)Z

    move-result v1

    if-eqz v1, :cond_34

    .line 7
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v1

    goto :goto_35

    :cond_34
    const/4 v1, 0x0

    .line 8
    :goto_35
    iput-object p1, p0, Lcom/google/android/material/datepicker/u;->c:Landroid/content/Context;

    add-int/2addr v0, v1

    iput v0, p0, Lcom/google/android/material/datepicker/u;->g:I

    iput-object p3, p0, Lcom/google/android/material/datepicker/u;->d:Lcom/google/android/material/datepicker/a;

    iput-object p2, p0, Lcom/google/android/material/datepicker/u;->e:Lcom/google/android/material/datepicker/c;

    iput-object p4, p0, Lcom/google/android/material/datepicker/u;->f:Lcom/google/android/material/datepicker/f$e;

    const/4 p1, 0x1

    .line 9
    iget-object p2, p0, Landroidx/recyclerview/widget/RecyclerView$e;->a:Landroidx/recyclerview/widget/RecyclerView$f;

    invoke-virtual {p2}, Landroidx/recyclerview/widget/RecyclerView$f;->a()Z

    move-result p2

    if-nez p2, :cond_4c

    .line 10
    iput-boolean p1, p0, Landroidx/recyclerview/widget/RecyclerView$e;->b:Z

    return-void

    :cond_4c
    new-instance p1, Ljava/lang/IllegalStateException;

    const-string p2, "Cannot change whether this adapter has stable IDs while the adapter has registered observers."

    invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw p1

    .line 11
    :cond_54
    new-instance p1, Ljava/lang/IllegalArgumentException;

    const-string p2, "currentPage cannot be after lastPage"

    invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw p1

    :cond_5c
    new-instance p1, Ljava/lang/IllegalArgumentException;

    const-string p2, "firstPage cannot be after currentPage"

    invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw p1
.end method


# virtual methods
.method public a()I
    .registers 2

    iget-object v0, p0, Lcom/google/android/material/datepicker/u;->d:Lcom/google/android/material/datepicker/a;

    .line 1
    iget v0, v0, Lcom/google/android/material/datepicker/a;->w:I

    return v0
.end method

.method public b(I)J
    .registers 4

    iget-object v0, p0, Lcom/google/android/material/datepicker/u;->d:Lcom/google/android/material/datepicker/a;

    .line 1
    iget-object v0, v0, Lcom/google/android/material/datepicker/a;->r:Lcom/google/android/material/datepicker/r;

    .line 2
    invoke-virtual {v0, p1}, Lcom/google/android/material/datepicker/r;->h(I)Lcom/google/android/material/datepicker/r;

    move-result-object p1

    .line 3
    iget-object p1, p1, Lcom/google/android/material/datepicker/r;->r:Ljava/util/Calendar;

    invoke-virtual {p1}, Ljava/util/Calendar;->getTimeInMillis()J

    move-result-wide v0

    return-wide v0
.end method

.method public d(Landroidx/recyclerview/widget/RecyclerView$a0;I)V
    .registers 6

    check-cast p1, Lcom/google/android/material/datepicker/u$a;

    .line 1
    iget-object v0, p0, Lcom/google/android/material/datepicker/u;->d:Lcom/google/android/material/datepicker/a;

    .line 2
    iget-object v0, v0, Lcom/google/android/material/datepicker/a;->r:Lcom/google/android/material/datepicker/r;

    .line 3
    invoke-virtual {v0, p2}, Lcom/google/android/material/datepicker/r;->h(I)Lcom/google/android/material/datepicker/r;

    move-result-object p2

    iget-object v0, p1, Lcom/google/android/material/datepicker/u$a;->t:Landroid/widget/TextView;

    iget-object v1, p1, Landroidx/recyclerview/widget/RecyclerView$a0;->a:Landroid/view/View;

    invoke-virtual {v1}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {p2, v1}, Lcom/google/android/material/datepicker/r;->f(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object p1, p1, Lcom/google/android/material/datepicker/u$a;->u:Lcom/google/android/material/datepicker/MaterialCalendarGridView;

    const v0, 0x7f0a0156

    invoke-virtual {p1, v0}, Landroid/widget/GridView;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Lcom/google/android/material/datepicker/MaterialCalendarGridView;

    invoke-virtual {p1}, Lcom/google/android/material/datepicker/MaterialCalendarGridView;->a()Lcom/google/android/material/datepicker/s;

    move-result-object v0

    if-eqz v0, :cond_80

    invoke-virtual {p1}, Lcom/google/android/material/datepicker/MaterialCalendarGridView;->a()Lcom/google/android/material/datepicker/s;

    move-result-object v0

    iget-object v0, v0, Lcom/google/android/material/datepicker/s;->r:Lcom/google/android/material/datepicker/r;

    invoke-virtual {p2, v0}, Lcom/google/android/material/datepicker/r;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_80

    invoke-virtual {p1}, Landroid/widget/GridView;->invalidate()V

    invoke-virtual {p1}, Lcom/google/android/material/datepicker/MaterialCalendarGridView;->a()Lcom/google/android/material/datepicker/s;

    move-result-object p2

    .line 4
    iget-object v0, p2, Lcom/google/android/material/datepicker/s;->t:Ljava/util/Collection;

    invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_43
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_57

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/Long;

    invoke-virtual {v1}, Ljava/lang/Long;->longValue()J

    move-result-wide v1

    invoke-virtual {p2, p1, v1, v2}, Lcom/google/android/material/datepicker/s;->f(Lcom/google/android/material/datepicker/MaterialCalendarGridView;J)V

    goto :goto_43

    :cond_57
    iget-object v0, p2, Lcom/google/android/material/datepicker/s;->s:Lcom/google/android/material/datepicker/c;

    if-eqz v0, :cond_91

    invoke-interface {v0}, Lcom/google/android/material/datepicker/c;->q()Ljava/util/Collection;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_63
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_77

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/Long;

    invoke-virtual {v1}, Ljava/lang/Long;->longValue()J

    move-result-wide v1

    invoke-virtual {p2, p1, v1, v2}, Lcom/google/android/material/datepicker/s;->f(Lcom/google/android/material/datepicker/MaterialCalendarGridView;J)V

    goto :goto_63

    :cond_77
    iget-object v0, p2, Lcom/google/android/material/datepicker/s;->s:Lcom/google/android/material/datepicker/c;

    invoke-interface {v0}, Lcom/google/android/material/datepicker/c;->q()Ljava/util/Collection;

    move-result-object v0

    iput-object v0, p2, Lcom/google/android/material/datepicker/s;->t:Ljava/util/Collection;

    goto :goto_91

    .line 5
    :cond_80
    new-instance v0, Lcom/google/android/material/datepicker/s;

    iget-object v1, p0, Lcom/google/android/material/datepicker/u;->e:Lcom/google/android/material/datepicker/c;

    iget-object v2, p0, Lcom/google/android/material/datepicker/u;->d:Lcom/google/android/material/datepicker/a;

    invoke-direct {v0, p2, v1, v2}, Lcom/google/android/material/datepicker/s;-><init>(Lcom/google/android/material/datepicker/r;Lcom/google/android/material/datepicker/c;Lcom/google/android/material/datepicker/a;)V

    iget p2, p2, Lcom/google/android/material/datepicker/r;->u:I

    invoke-virtual {p1, p2}, Landroid/widget/GridView;->setNumColumns(I)V

    invoke-virtual {p1, v0}, Lcom/google/android/material/datepicker/MaterialCalendarGridView;->setAdapter(Landroid/widget/ListAdapter;)V

    :cond_91
    :goto_91
    new-instance p2, Lcom/google/android/material/datepicker/t;

    invoke-direct {p2, p0, p1}, Lcom/google/android/material/datepicker/t;-><init>(Lcom/google/android/material/datepicker/u;Lcom/google/android/material/datepicker/MaterialCalendarGridView;)V

    invoke-virtual {p1, p2}, Landroid/widget/GridView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    return-void
.end method

.method public e(Landroid/view/ViewGroup;I)Landroidx/recyclerview/widget/RecyclerView$a0;
    .registers 5

    .line 1
    invoke-virtual {p1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object p2

    invoke-static {p2}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p2

    const v0, 0x7f0d004f

    const/4 v1, 0x0

    invoke-virtual {p2, v0, p1, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p2

    check-cast p2, Landroid/widget/LinearLayout;

    invoke-virtual {p1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object p1

    invoke-static {p1}, Lcom/google/android/material/datepicker/n;->l0(Landroid/content/Context;)Z

    move-result p1

    if-eqz p1, :cond_2e

    new-instance p1, Landroidx/recyclerview/widget/RecyclerView$n;

    const/4 v0, -0x1

    iget v1, p0, Lcom/google/android/material/datepicker/u;->g:I

    invoke-direct {p1, v0, v1}, Landroidx/recyclerview/widget/RecyclerView$n;-><init>(II)V

    invoke-virtual {p2, p1}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    new-instance p1, Lcom/google/android/material/datepicker/u$a;

    const/4 v0, 0x1

    invoke-direct {p1, p2, v0}, Lcom/google/android/material/datepicker/u$a;-><init>(Landroid/widget/LinearLayout;Z)V

    goto :goto_33

    :cond_2e
    new-instance p1, Lcom/google/android/material/datepicker/u$a;

    invoke-direct {p1, p2, v1}, Lcom/google/android/material/datepicker/u$a;-><init>(Landroid/widget/LinearLayout;Z)V

    :goto_33
    return-object p1
.end method

.method public f(I)Lcom/google/android/material/datepicker/r;
    .registers 3

    iget-object v0, p0, Lcom/google/android/material/datepicker/u;->d:Lcom/google/android/material/datepicker/a;

    .line 1
    iget-object v0, v0, Lcom/google/android/material/datepicker/a;->r:Lcom/google/android/material/datepicker/r;

    .line 2
    invoke-virtual {v0, p1}, Lcom/google/android/material/datepicker/r;->h(I)Lcom/google/android/material/datepicker/r;

    move-result-object p1

    return-object p1
.end method

.method public g(Lcom/google/android/material/datepicker/r;)I
    .registers 3

    iget-object v0, p0, Lcom/google/android/material/datepicker/u;->d:Lcom/google/android/material/datepicker/a;

    .line 1
    iget-object v0, v0, Lcom/google/android/material/datepicker/a;->r:Lcom/google/android/material/datepicker/r;

    .line 2
    invoke-virtual {v0, p1}, Lcom/google/android/material/datepicker/r;->i(Lcom/google/android/material/datepicker/r;)I

    move-result p1

    return p1
.end method
