2019-07-24 11:27:29 +00:00
|
|
|
.class public final Lcom/discord/views/CustomAppBarLayout;
|
|
|
|
.super Lcom/google/android/material/appbar/AppBarLayout;
|
|
|
|
.source "CustomAppBarLayout.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-11-15 02:21:15 +00:00
|
|
|
.field private De:F
|
2019-08-30 20:04:20 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
.field private final Df:Lcom/google/android/material/appbar/AppBarLayout$OnOffsetChangedListener;
|
2019-08-30 20:04:20 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
.field private Dg:Lkotlin/jvm/functions/Function1;
|
2019-07-24 11:27:29 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
|
|
"-",
|
|
|
|
"Ljava/lang/Float;",
|
|
|
|
"Lkotlin/Unit;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
const/4 v1, 0x2
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, v0, v1, v0}, Lcom/discord/views/CustomAppBarLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const-string v0, "context"
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2}, Lcom/google/android/material/appbar/AppBarLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
|
|
|
|
new-instance p1, Lcom/discord/views/CustomAppBarLayout$b;
|
|
|
|
|
|
|
|
invoke-direct {p1, p0}, Lcom/discord/views/CustomAppBarLayout$b;-><init>(Lcom/discord/views/CustomAppBarLayout;)V
|
|
|
|
|
|
|
|
check-cast p1, Lcom/google/android/material/appbar/AppBarLayout$OnOffsetChangedListener;
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/views/CustomAppBarLayout;->Df:Lcom/google/android/material/appbar/AppBarLayout$OnOffsetChangedListener;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
sget-object p1, Lcom/discord/views/CustomAppBarLayout$a;->Dh:Lcom/discord/views/CustomAppBarLayout$a;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
check-cast p1, Lkotlin/jvm/functions/Function1;
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/views/CustomAppBarLayout;->Dg:Lkotlin/jvm/functions/Function1;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public synthetic constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
and-int/lit8 p3, p3, 0x2
|
|
|
|
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
|
|
|
|
const/4 p2, 0x0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-direct {p0, p1, p2}, Lcom/discord/views/CustomAppBarLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic a(Lcom/discord/views/CustomAppBarLayout;)F
|
|
|
|
.locals 0
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
iget p0, p0, Lcom/discord/views/CustomAppBarLayout;->De:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic a(Lcom/discord/views/CustomAppBarLayout;F)V
|
|
|
|
.locals 0
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
iput p1, p0, Lcom/discord/views/CustomAppBarLayout;->De:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic b(Lcom/discord/views/CustomAppBarLayout;)Lkotlin/jvm/functions/Function1;
|
|
|
|
.locals 0
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
iget-object p0, p0, Lcom/discord/views/CustomAppBarLayout;->Dg:Lkotlin/jvm/functions/Function1;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final isCollapsed()Z
|
|
|
|
.locals 2
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
iget v0, p0, Lcom/discord/views/CustomAppBarLayout;->De:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/high16 v1, 0x3f800000 # 1.0f
|
|
|
|
|
|
|
|
cmpg-float v0, v0, v1
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method protected final onAttachedToWindow()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-super {p0}, Lcom/google/android/material/appbar/AppBarLayout;->onAttachedToWindow()V
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/views/CustomAppBarLayout;->Df:Lcom/google/android/material/appbar/AppBarLayout$OnOffsetChangedListener;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Lcom/discord/views/CustomAppBarLayout;->addOnOffsetChangedListener(Lcom/google/android/material/appbar/AppBarLayout$OnOffsetChangedListener;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method protected final onDetachedFromWindow()V
|
|
|
|
.locals 1
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/views/CustomAppBarLayout;->Df:Lcom/google/android/material/appbar/AppBarLayout$OnOffsetChangedListener;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Lcom/discord/views/CustomAppBarLayout;->removeOnOffsetChangedListener(Lcom/google/android/material/appbar/AppBarLayout$OnOffsetChangedListener;)V
|
|
|
|
|
|
|
|
invoke-super {p0}, Lcom/google/android/material/appbar/AppBarLayout;->onDetachedFromWindow()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final setOnPercentCollapsedCallback(Lkotlin/jvm/functions/Function1;)V
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
|
|
"-",
|
|
|
|
"Ljava/lang/Float;",
|
|
|
|
"Lkotlin/Unit;",
|
|
|
|
">;)V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const-string v0, "callback"
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/views/CustomAppBarLayout;->Dg:Lkotlin/jvm/functions/Function1;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|