104 lines
2.3 KiB
Smali
104 lines
2.3 KiB
Smali
.class public Lf/n/a/b;
|
|
.super Ljava/lang/Object;
|
|
.source "UCropActivity.java"
|
|
|
|
# interfaces
|
|
.implements Landroid/view/View$OnClickListener;
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic d:Lcom/yalantis/ucrop/UCropActivity;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/yalantis/ucrop/UCropActivity;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lf/n/a/b;->d:Lcom/yalantis/ucrop/UCropActivity;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onClick(Landroid/view/View;)V
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Lf/n/a/b;->d:Lcom/yalantis/ucrop/UCropActivity;
|
|
|
|
iget-object v0, v0, Lcom/yalantis/ucrop/UCropActivity;->p:Lcom/yalantis/ucrop/view/GestureCropImageView;
|
|
|
|
move-object v1, p1
|
|
|
|
check-cast v1, Landroid/view/ViewGroup;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {v1, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/yalantis/ucrop/view/widget/AspectRatioTextView;
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->isSelected()Z
|
|
|
|
move-result v3
|
|
|
|
invoke-virtual {v1, v3}, Lcom/yalantis/ucrop/view/widget/AspectRatioTextView;->a(Z)F
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v0, v1}, Lf/n/a/k/a;->setTargetAspectRatio(F)V
|
|
|
|
iget-object v0, p0, Lf/n/a/b;->d:Lcom/yalantis/ucrop/UCropActivity;
|
|
|
|
iget-object v0, v0, Lcom/yalantis/ucrop/UCropActivity;->p:Lcom/yalantis/ucrop/view/GestureCropImageView;
|
|
|
|
invoke-virtual {v0}, Lf/n/a/k/a;->e()V
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->isSelected()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget-object v0, p0, Lf/n/a/b;->d:Lcom/yalantis/ucrop/UCropActivity;
|
|
|
|
iget-object v0, v0, Lcom/yalantis/ucrop/UCropActivity;->x:Ljava/util/List;
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_0
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroid/view/ViewGroup;
|
|
|
|
if-ne v1, p1, :cond_0
|
|
|
|
const/4 v3, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
const/4 v3, 0x0
|
|
|
|
:goto_1
|
|
invoke-virtual {v1, v3}, Landroid/view/ViewGroup;->setSelected(Z)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|