Rabbit-R1/android (non root)/smali/smali_classes3/tech/rabbit/r1launcher/settings/BaseValueAdjustCard.smali
2024-05-21 17:08:36 -04:00

808 lines
23 KiB
Smali

.class public Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;
.super Landroid/widget/FrameLayout;
.source "BaseValueAdjustCard.kt"
# annotations
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000B\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010\u0008\n\u0002\u0008\u0012\n\u0002\u0018\u0002\n\u0002\u0008\u000b\n\u0002\u0018\u0002\n\u0002\u0008\u000b\n\u0002\u0010\u0002\n\u0002\u0008\u0007\n\u0002\u0010\u000b\n\u0002\u0008\u0007\u0008\u0017\u0018\u00002\u00020\u0001B\u000f\u0008\u0016\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u00a2\u0006\u0002\u0010\u0004B\u0019\u0008\u0016\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0008\u0010\u0005\u001a\u0004\u0018\u00010\u0006\u00a2\u0006\u0002\u0010\u0007B!\u0008\u0016\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0008\u0010\u0005\u001a\u0004\u0018\u00010\u0006\u0012\u0006\u0010\u0008\u001a\u00020\t\u00a2\u0006\u0002\u0010\nJ\u0008\u00103\u001a\u000204H\u0016J\u0008\u00105\u001a\u00020\tH\u0016J\u0008\u00106\u001a\u00020\tH\u0016J\u0008\u00107\u001a\u00020\tH\u0016J\"\u00108\u001a\u0002042\u0006\u0010\u0002\u001a\u00020\u00032\u0008\u0010\u0005\u001a\u0004\u0018\u00010\u00062\u0006\u0010\u0008\u001a\u00020\tH\u0016J\u0008\u00109\u001a\u000204H\u0016J\u0008\u0010:\u001a\u000204H\u0014J\u000e\u0010;\u001a\u00020<2\u0006\u0010=\u001a\u00020\tJ\u0008\u0010>\u001a\u000204H\u0002J\u0008\u0010?\u001a\u000204H\u0002J\u0010\u0010@\u001a\u0002042\u0006\u0010\u000b\u001a\u00020\tH\u0016J\u0010\u0010A\u001a\u0002042\u0006\u0010B\u001a\u00020\tH\u0016R\u001a\u0010\u000b\u001a\u00020\tX\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u000c\u0010\r\"\u0004\u0008\u000e\u0010\u000fR\u001c\u0010\u0010\u001a\u0004\u0018\u00010\u0001X\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u0011\u0010\u0012\"\u0004\u0008\u0013\u0010\u0014R\u001a\u0010\u0015\u001a\u00020\tX\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u0016\u0010\r\"\u0004\u0008\u0017\u0010\u000fR\u001a\u0010\u0018\u001a\u00020\tX\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u0019\u0010\r\"\u0004\u0008\u001a\u0010\u000fR\u001c\u0010\u001b\u001a\u0004\u0018\u00010\u001cX\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u001d\u0010\u001e\"\u0004\u0008\u001f\u0010 R\u001a\u0010!\u001a\u00020\tX\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\"\u0010\r\"\u0004\u0008#\u0010\u000fR\u001a\u0010$\u001a\u00020\tX\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008%\u0010\r\"\u0004\u0008&\u0010\u000fR\u001c\u0010\'\u001a\u0004\u0018\u00010(X\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008)\u0010*\"\u0004\u0008+\u0010,R\u001c\u0010-\u001a\u0004\u0018\u00010\u0001X\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008.\u0010\u0012\"\u0004\u0008/\u0010\u0014R\u001a\u00100\u001a\u00020\tX\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u00081\u0010\r\"\u0004\u00082\u0010\u000f\u00a8\u0006C"
}
d2 = {
"Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;",
"Landroid/widget/FrameLayout;",
"context",
"Landroid/content/Context;",
"(Landroid/content/Context;)V",
"attrs",
"Landroid/util/AttributeSet;",
"(Landroid/content/Context;Landroid/util/AttributeSet;)V",
"defStyleAttr",
"",
"(Landroid/content/Context;Landroid/util/AttributeSet;I)V",
"currentBasicValue",
"getCurrentBasicValue",
"()I",
"setCurrentBasicValue",
"(I)V",
"fullBottomView",
"getFullBottomView",
"()Landroid/widget/FrameLayout;",
"setFullBottomView",
"(Landroid/widget/FrameLayout;)V",
"gapBasicValue",
"getGapBasicValue",
"setGapBasicValue",
"gapTopBasicValue",
"getGapTopBasicValue",
"setGapTopBasicValue",
"iconView",
"Landroid/widget/ImageView;",
"getIconView",
"()Landroid/widget/ImageView;",
"setIconView",
"(Landroid/widget/ImageView;)V",
"maxBasicValue",
"getMaxBasicValue",
"setMaxBasicValue",
"minBasicValue",
"getMinBasicValue",
"setMinBasicValue",
"settingTitle",
"Landroid/widget/TextView;",
"getSettingTitle",
"()Landroid/widget/TextView;",
"setSettingTitle",
"(Landroid/widget/TextView;)V",
"valueView",
"getValueView",
"setValueView",
"viewHeight",
"getViewHeight",
"setViewHeight",
"addValue",
"",
"getCurrentValue",
"getMaxValue",
"getMinValue",
"initView",
"minusValue",
"onAttachedToWindow",
"onKeyCodeEvent",
"",
"keyCode",
"onValueDownUpdate",
"onValueUpUpdate",
"setValuePercent",
"setVisibility",
"visibility",
"app_productionEnvRelease"
}
k = 0x1
mv = {
0x1,
0x9,
0x0
}
xi = 0x30
.end annotation
# static fields
.field public static final $stable:I = 0x8
# instance fields
.field private currentBasicValue:I
.field private fullBottomView:Landroid/widget/FrameLayout;
.field private gapBasicValue:I
.field private gapTopBasicValue:I
.field private iconView:Landroid/widget/ImageView;
.field private maxBasicValue:I
.field private minBasicValue:I
.field private settingTitle:Landroid/widget/TextView;
.field private valueView:Landroid/widget/FrameLayout;
.field private viewHeight:I
# direct methods
.method public static synthetic $r8$lambda$5k3cakDRBlINS1kplu3yIjpEXgA(Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;)V
.locals 0
invoke-static {p0}, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->initView$lambda$0(Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;)V
return-void
.end method
.method public static synthetic $r8$lambda$qNKsHn1N3K0zBfzpSTgMdvB1UlQ(Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;)V
.locals 0
invoke-static {p0}, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->setVisibility$lambda$1(Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;)V
return-void
.end method
.method static constructor <clinit>()V
.locals 0
return-void
.end method
.method public constructor <init>(Landroid/content/Context;)V
.locals 2
const-string v0, "context"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 14
invoke-direct {p0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V
const/16 v0, 0x238
iput v0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->viewHeight:I
const/4 v0, 0x1
iput v0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->gapBasicValue:I
iput v0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->gapTopBasicValue:I
const/4 v0, 0x0
const/4 v1, 0x0
.line 15
invoke-virtual {p0, p1, v0, v1}, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->initView(Landroid/content/Context;Landroid/util/AttributeSet;I)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.locals 1
const-string v0, "context"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 18
invoke-direct {p0, p1, p2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
const/16 v0, 0x238
iput v0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->viewHeight:I
const/4 v0, 0x1
iput v0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->gapBasicValue:I
iput v0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->gapTopBasicValue:I
const/4 v0, 0x0
.line 19
invoke-virtual {p0, p1, p2, v0}, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->initView(Landroid/content/Context;Landroid/util/AttributeSet;I)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
.locals 1
const-string v0, "context"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 22
invoke-direct {p0, p1, p2, p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
const/16 v0, 0x238
iput v0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->viewHeight:I
const/4 v0, 0x1
iput v0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->gapBasicValue:I
iput v0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->gapTopBasicValue:I
.line 27
invoke-virtual {p0, p1, p2, p3}, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->initView(Landroid/content/Context;Landroid/util/AttributeSet;I)V
return-void
.end method
.method private static final initView$lambda$0(Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;)V
.locals 1
const-string v0, "this$0"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 54
iget-object v0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->fullBottomView:Landroid/widget/FrameLayout;
if-eqz v0, :cond_0
invoke-virtual {v0}, Landroid/widget/FrameLayout;->getHeight()I
move-result v0
goto :goto_0
:cond_0
iget v0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->viewHeight:I
:goto_0
iput v0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->viewHeight:I
.line 55
iget v0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->currentBasicValue:I
invoke-virtual {p0, v0}, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->setValuePercent(I)V
return-void
.end method
.method private final onValueDownUpdate()V
.locals 1
.line 135
invoke-virtual {p0}, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->getCurrentValue()I
move-result v0
invoke-virtual {p0, v0}, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->setValuePercent(I)V
return-void
.end method
.method private final onValueUpUpdate()V
.locals 1
.line 131
invoke-virtual {p0}, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->getCurrentValue()I
move-result v0
invoke-virtual {p0, v0}, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->setValuePercent(I)V
return-void
.end method
.method private static final setVisibility$lambda$1(Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;)V
.locals 1
const-string v0, "this$0"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 63
iget-object v0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->fullBottomView:Landroid/widget/FrameLayout;
if-eqz v0, :cond_0
invoke-virtual {v0}, Landroid/widget/FrameLayout;->getHeight()I
move-result v0
goto :goto_0
:cond_0
iget v0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->viewHeight:I
:goto_0
iput v0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->viewHeight:I
.line 64
iget v0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->currentBasicValue:I
invoke-virtual {p0, v0}, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->setValuePercent(I)V
return-void
.end method
# virtual methods
.method public addValue()V
.locals 0
return-void
.end method
.method public final getCurrentBasicValue()I
.locals 0
iget p0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->currentBasicValue:I
return p0
.end method
.method public getCurrentValue()I
.locals 0
const/4 p0, 0x0
return p0
.end method
.method public final getFullBottomView()Landroid/widget/FrameLayout;
.locals 0
iget-object p0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->fullBottomView:Landroid/widget/FrameLayout;
return-object p0
.end method
.method public final getGapBasicValue()I
.locals 0
iget p0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->gapBasicValue:I
return p0
.end method
.method public final getGapTopBasicValue()I
.locals 0
iget p0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->gapTopBasicValue:I
return p0
.end method
.method public final getIconView()Landroid/widget/ImageView;
.locals 0
iget-object p0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->iconView:Landroid/widget/ImageView;
return-object p0
.end method
.method public final getMaxBasicValue()I
.locals 0
iget p0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->maxBasicValue:I
return p0
.end method
.method public getMaxValue()I
.locals 0
const/4 p0, 0x1
return p0
.end method
.method public final getMinBasicValue()I
.locals 0
iget p0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->minBasicValue:I
return p0
.end method
.method public getMinValue()I
.locals 0
const/4 p0, 0x0
return p0
.end method
.method public final getSettingTitle()Landroid/widget/TextView;
.locals 0
iget-object p0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->settingTitle:Landroid/widget/TextView;
return-object p0
.end method
.method public final getValueView()Landroid/widget/FrameLayout;
.locals 0
iget-object p0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->valueView:Landroid/widget/FrameLayout;
return-object p0
.end method
.method public final getViewHeight()I
.locals 0
iget p0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->viewHeight:I
return p0
.end method
.method public initView(Landroid/content/Context;Landroid/util/AttributeSet;I)V
.locals 1
const-string p2, "context"
invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 48
invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
move-result-object p1
sget p2, Ltech/rabbit/r1launcher/R$layout;->layout_base_value_adjust:I
move-object p3, p0
check-cast p3, Landroid/view/ViewGroup;
const/4 v0, 0x1
invoke-virtual {p1, p2, p3, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
move-result-object p1
.line 49
sget p2, Ltech/rabbit/r1launcher/R$id;->tv_settings_title:I
invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object p2
check-cast p2, Landroid/widget/TextView;
iput-object p2, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->settingTitle:Landroid/widget/TextView;
.line 50
sget p2, Ltech/rabbit/r1launcher/R$id;->fl_full_height_view:I
invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object p2
check-cast p2, Landroid/widget/FrameLayout;
iput-object p2, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->fullBottomView:Landroid/widget/FrameLayout;
.line 51
sget p2, Ltech/rabbit/r1launcher/R$id;->fl_value_counter:I
invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object p2
check-cast p2, Landroid/widget/FrameLayout;
iput-object p2, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->valueView:Landroid/widget/FrameLayout;
.line 52
sget p2, Ltech/rabbit/r1launcher/R$id;->iv_icon:I
invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object p1
check-cast p1, Landroid/widget/ImageView;
iput-object p1, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->iconView:Landroid/widget/ImageView;
.line 53
new-instance p1, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard$$ExternalSyntheticLambda1;
invoke-direct {p1, p0}, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard$$ExternalSyntheticLambda1;-><init>(Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;)V
invoke-virtual {p0, p1}, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->post(Ljava/lang/Runnable;)Z
return-void
.end method
.method public minusValue()V
.locals 0
return-void
.end method
.method protected onAttachedToWindow()V
.locals 2
.line 70
invoke-super {p0}, Landroid/widget/FrameLayout;->onAttachedToWindow()V
.line 71
invoke-virtual {p0}, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->getMinValue()I
move-result v0
iput v0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->minBasicValue:I
.line 72
invoke-virtual {p0}, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->getMaxValue()I
move-result v0
iput v0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->maxBasicValue:I
.line 73
invoke-virtual {p0}, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->getCurrentValue()I
move-result v0
iput v0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->currentBasicValue:I
iget v0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->maxBasicValue:I
int-to-float v0, v0
const v1, 0x3dcccccd # 0.1f
mul-float/2addr v0, v1
float-to-int v0, v0
iput v0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->gapBasicValue:I
return-void
.end method
.method public final onKeyCodeEvent(I)Z
.locals 2
.line 98
invoke-static {p1}, Ltech/rabbit/r1launcher/utils/KeyCodeExtensionKt;->isKeyCodeUp(I)Z
move-result v0
const/4 v1, 0x1
if-eqz v0, :cond_0
.line 99
invoke-virtual {p0}, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->addValue()V
.line 100
invoke-direct {p0}, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->onValueUpUpdate()V
return v1
.line 102
:cond_0
invoke-static {p1}, Ltech/rabbit/r1launcher/utils/KeyCodeExtensionKt;->isKeyCodeDown(I)Z
move-result p1
if-eqz p1, :cond_1
.line 103
invoke-virtual {p0}, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->minusValue()V
.line 104
invoke-direct {p0}, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->onValueDownUpdate()V
return v1
:cond_1
const/4 p0, 0x0
return p0
.end method
.method public final setCurrentBasicValue(I)V
.locals 0
iput p1, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->currentBasicValue:I
return-void
.end method
.method public final setFullBottomView(Landroid/widget/FrameLayout;)V
.locals 0
iput-object p1, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->fullBottomView:Landroid/widget/FrameLayout;
return-void
.end method
.method public final setGapBasicValue(I)V
.locals 0
iput p1, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->gapBasicValue:I
return-void
.end method
.method public final setGapTopBasicValue(I)V
.locals 0
iput p1, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->gapTopBasicValue:I
return-void
.end method
.method public final setIconView(Landroid/widget/ImageView;)V
.locals 0
iput-object p1, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->iconView:Landroid/widget/ImageView;
return-void
.end method
.method public final setMaxBasicValue(I)V
.locals 0
iput p1, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->maxBasicValue:I
return-void
.end method
.method public final setMinBasicValue(I)V
.locals 0
iput p1, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->minBasicValue:I
return-void
.end method
.method public final setSettingTitle(Landroid/widget/TextView;)V
.locals 0
iput-object p1, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->settingTitle:Landroid/widget/TextView;
return-void
.end method
.method public setValuePercent(I)V
.locals 8
iput p1, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->currentBasicValue:I
iget v0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->minBasicValue:I
const/4 v1, 0x0
if-le p1, v0, :cond_4
int-to-double v2, p1
iget v0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->maxBasicValue:I
int-to-double v4, v0
const-wide v6, 0x3f847ae147ae147bL # 0.01
mul-double/2addr v4, v6
cmpg-double v2, v2, v4
if-gtz v2, :cond_0
goto :goto_0
:cond_0
int-to-float p1, p1
const/high16 v2, 0x3f800000 # 1.0f
mul-float/2addr p1, v2
int-to-float v0, v0
div-float/2addr p1, v0
iget v0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->viewHeight:I
int-to-float v0, v0
mul-float/2addr v0, p1
iget-object p1, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->valueView:Landroid/widget/FrameLayout;
if-eqz p1, :cond_1
.line 91
invoke-virtual {p1}, Landroid/widget/FrameLayout;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v1
:cond_1
if-nez v1, :cond_2
return-void
:cond_2
float-to-int p1, v0
.line 92
iput p1, v1, Landroid/view/ViewGroup$LayoutParams;->height:I
iget-object p0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->valueView:Landroid/widget/FrameLayout;
if-nez p0, :cond_3
goto :goto_1
.line 93
:cond_3
invoke-virtual {p0, v1}, Landroid/widget/FrameLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
goto :goto_1
:cond_4
:goto_0
iget p1, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->viewHeight:I
int-to-float p1, p1
const v0, 0x3c23d70a # 0.01f
mul-float/2addr p1, v0
iget-object v0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->valueView:Landroid/widget/FrameLayout;
if-eqz v0, :cond_5
.line 85
invoke-virtual {v0}, Landroid/widget/FrameLayout;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v1
:cond_5
if-nez v1, :cond_6
return-void
:cond_6
float-to-int p1, p1
.line 86
iput p1, v1, Landroid/view/ViewGroup$LayoutParams;->height:I
iget-object p0, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->valueView:Landroid/widget/FrameLayout;
if-nez p0, :cond_7
goto :goto_1
.line 87
:cond_7
invoke-virtual {p0, v1}, Landroid/widget/FrameLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
:goto_1
return-void
.end method
.method public final setValueView(Landroid/widget/FrameLayout;)V
.locals 0
iput-object p1, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->valueView:Landroid/widget/FrameLayout;
return-void
.end method
.method public final setViewHeight(I)V
.locals 0
iput p1, p0, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->viewHeight:I
return-void
.end method
.method public setVisibility(I)V
.locals 0
.line 61
invoke-super {p0, p1}, Landroid/widget/FrameLayout;->setVisibility(I)V
.line 62
new-instance p1, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard$$ExternalSyntheticLambda0;
invoke-direct {p1, p0}, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard$$ExternalSyntheticLambda0;-><init>(Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;)V
invoke-virtual {p0, p1}, Ltech/rabbit/r1launcher/settings/BaseValueAdjustCard;->post(Ljava/lang/Runnable;)Z
return-void
.end method