115 lines
2.6 KiB
Smali
115 lines
2.6 KiB
Smali
.class public Lcom/yalantis/ucrop/UCropActivity$a;
|
|
.super Ljava/lang/Object;
|
|
.source "UCropActivity.java"
|
|
|
|
# interfaces
|
|
.implements Lf/m/a/l/c$a;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/yalantis/ucrop/UCropActivity;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x1
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic a:Lcom/yalantis/ucrop/UCropActivity;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/yalantis/ucrop/UCropActivity;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/yalantis/ucrop/UCropActivity$a;->a:Lcom/yalantis/ucrop/UCropActivity;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(F)V
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Lcom/yalantis/ucrop/UCropActivity$a;->a:Lcom/yalantis/ucrop/UCropActivity;
|
|
|
|
iget-object v0, v0, Lcom/yalantis/ucrop/UCropActivity;->y:Landroid/widget/TextView;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-static {p1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
|
|
|
|
move-result-object p1
|
|
|
|
aput-object p1, v2, v3
|
|
|
|
const-string p1, "%.1f\u00b0"
|
|
|
|
invoke-static {v1, p1, v2}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public b(F)V
|
|
.locals 5
|
|
|
|
iget-object v0, p0, Lcom/yalantis/ucrop/UCropActivity$a;->a:Lcom/yalantis/ucrop/UCropActivity;
|
|
|
|
iget-object v0, v0, Lcom/yalantis/ucrop/UCropActivity;->z:Landroid/widget/TextView;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/high16 v4, 0x42c80000 # 100.0f
|
|
|
|
mul-float p1, p1, v4
|
|
|
|
float-to-int p1, p1
|
|
|
|
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p1
|
|
|
|
aput-object p1, v2, v3
|
|
|
|
const-string p1, "%d%%"
|
|
|
|
invoke-static {v1, p1, v2}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|