2020-05-17 12:40:10 +00:00
|
|
|
.class public final Lcom/discord/views/CustomAppBarLayout$b;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "CustomAppBarLayout.kt"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lcom/google/android/material/appbar/AppBarLayout$OnOffsetChangedListener;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
|
|
value = Lcom/discord/views/CustomAppBarLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x19
|
|
|
|
name = null
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final synthetic a:Lcom/discord/views/CustomAppBarLayout;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Lcom/discord/views/CustomAppBarLayout;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/views/CustomAppBarLayout$b;->a:Lcom/discord/views/CustomAppBarLayout;
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final onOffsetChanged(Lcom/google/android/material/appbar/AppBarLayout;I)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const-string v0, "appBar"
|
|
|
|
|
2020-11-09 19:03:49 +00:00
|
|
|
invoke-static {p1, v0}, Ly/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/google/android/material/appbar/AppBarLayout;->getTotalScrollRange()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-gtz v0, :cond_0
|
|
|
|
|
|
|
|
const/high16 p1, 0x3f800000 # 1.0f
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-static {p2}, Ljava/lang/Math;->abs(I)I
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
int-to-float p2, p2
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/google/android/material/appbar/AppBarLayout;->getTotalScrollRange()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
int-to-float p1, p1
|
|
|
|
|
|
|
|
div-float p1, p2, p1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
iget-object p2, p0, Lcom/discord/views/CustomAppBarLayout$b;->a:Lcom/discord/views/CustomAppBarLayout;
|
|
|
|
|
|
|
|
iget v0, p2, Lcom/discord/views/CustomAppBarLayout;->d:F
|
|
|
|
|
|
|
|
cmpg-float v0, p1, v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
iput p1, p2, Lcom/discord/views/CustomAppBarLayout;->d:F
|
|
|
|
|
|
|
|
iget-object p2, p2, Lcom/discord/views/CustomAppBarLayout;->f:Lkotlin/jvm/functions/Function1;
|
|
|
|
|
|
|
|
invoke-static {p1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-interface {p2, p1}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
return-void
|
|
|
|
.end method
|