Changes of com.discord v1332
This commit is contained in:
parent
6091ba12c8
commit
a21e5a6a18
16060 changed files with 738765 additions and 799429 deletions
|
@ -206,7 +206,7 @@
|
|||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.method private constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
|
|
@ -276,7 +276,7 @@
|
|||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.method private constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
|
|
@ -234,7 +234,7 @@
|
|||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.method private constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
|
|
@ -272,7 +272,7 @@
|
|||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.method private constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
|
|
@ -104,7 +104,7 @@
|
|||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.method private constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.method private constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.method private constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
|
|
@ -1759,7 +1759,7 @@
|
|||
.end array-data
|
||||
.end method
|
||||
|
||||
.method public constructor <init>()V
|
||||
.method private constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.method private constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
|
||||
# virtual methods
|
||||
.method public onClick(Landroid/view/View;)V
|
||||
.locals 1
|
||||
.locals 2
|
||||
|
||||
invoke-virtual {p1}, Landroid/view/View;->isSelected()Z
|
||||
|
||||
|
@ -49,7 +49,9 @@
|
|||
|
||||
move-result p1
|
||||
|
||||
invoke-static {v0, p1}, Lcom/yalantis/ucrop/UCropActivity;->a(Lcom/yalantis/ucrop/UCropActivity;I)V
|
||||
sget-object v1, Lcom/yalantis/ucrop/UCropActivity;->G:Landroid/graphics/Bitmap$CompressFormat;
|
||||
|
||||
invoke-virtual {v0, p1}, Lcom/yalantis/ucrop/UCropActivity;->c(I)V
|
||||
|
||||
:cond_0
|
||||
return-void
|
||||
|
|
|
@ -148,17 +148,9 @@
|
|||
.end array-data
|
||||
.end method
|
||||
|
||||
.method public static synthetic a(Lcom/yalantis/ucrop/UCropActivity;I)V
|
||||
.locals 0
|
||||
|
||||
invoke-virtual {p0, p1}, Lcom/yalantis/ucrop/UCropActivity;->d(I)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public final b(I)V
|
||||
.method public final a(I)V
|
||||
.locals 6
|
||||
|
||||
iget-object v0, p0, Lcom/yalantis/ucrop/UCropActivity;->p:Lcom/yalantis/ucrop/view/GestureCropImageView;
|
||||
|
@ -216,7 +208,7 @@
|
|||
return-void
|
||||
.end method
|
||||
|
||||
.method public c(Ljava/lang/Throwable;)V
|
||||
.method public b(Ljava/lang/Throwable;)V
|
||||
.locals 2
|
||||
|
||||
new-instance v0, Landroid/content/Intent;
|
||||
|
@ -236,8 +228,8 @@
|
|||
return-void
|
||||
.end method
|
||||
|
||||
.method public final d(I)V
|
||||
.locals 5
|
||||
.method public final c(I)V
|
||||
.locals 7
|
||||
.param p1 # I
|
||||
.annotation build Landroidx/annotation/IdRes;
|
||||
.end annotation
|
||||
|
@ -260,53 +252,51 @@
|
|||
|
||||
if-ne p1, v1, :cond_1
|
||||
|
||||
const/4 v1, 0x1
|
||||
const/4 v4, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
const/4 v1, 0x0
|
||||
const/4 v4, 0x0
|
||||
|
||||
:goto_0
|
||||
invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setSelected(Z)V
|
||||
invoke-virtual {v0, v4}, Landroid/view/ViewGroup;->setSelected(Z)V
|
||||
|
||||
iget-object v0, p0, Lcom/yalantis/ucrop/UCropActivity;->s:Landroid/view/ViewGroup;
|
||||
|
||||
sget v1, Lcom/yalantis/ucrop/R$d;->state_rotate:I
|
||||
sget v4, Lcom/yalantis/ucrop/R$d;->state_rotate:I
|
||||
|
||||
if-ne p1, v1, :cond_2
|
||||
if-ne p1, v4, :cond_2
|
||||
|
||||
const/4 v1, 0x1
|
||||
const/4 v5, 0x1
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_2
|
||||
const/4 v1, 0x0
|
||||
const/4 v5, 0x0
|
||||
|
||||
:goto_1
|
||||
invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setSelected(Z)V
|
||||
invoke-virtual {v0, v5}, Landroid/view/ViewGroup;->setSelected(Z)V
|
||||
|
||||
iget-object v0, p0, Lcom/yalantis/ucrop/UCropActivity;->t:Landroid/view/ViewGroup;
|
||||
|
||||
sget v1, Lcom/yalantis/ucrop/R$d;->state_scale:I
|
||||
sget v5, Lcom/yalantis/ucrop/R$d;->state_scale:I
|
||||
|
||||
if-ne p1, v1, :cond_3
|
||||
if-ne p1, v5, :cond_3
|
||||
|
||||
const/4 v1, 0x1
|
||||
const/4 v6, 0x1
|
||||
|
||||
goto :goto_2
|
||||
|
||||
:cond_3
|
||||
const/4 v1, 0x0
|
||||
const/4 v6, 0x0
|
||||
|
||||
:goto_2
|
||||
invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setSelected(Z)V
|
||||
invoke-virtual {v0, v6}, Landroid/view/ViewGroup;->setSelected(Z)V
|
||||
|
||||
iget-object v0, p0, Lcom/yalantis/ucrop/UCropActivity;->u:Landroid/view/ViewGroup;
|
||||
|
||||
sget v1, Lcom/yalantis/ucrop/R$d;->state_aspect_ratio:I
|
||||
|
||||
const/16 v4, 0x8
|
||||
const/16 v6, 0x8
|
||||
|
||||
if-ne p1, v1, :cond_4
|
||||
|
||||
|
@ -322,9 +312,7 @@
|
|||
|
||||
iget-object v0, p0, Lcom/yalantis/ucrop/UCropActivity;->v:Landroid/view/ViewGroup;
|
||||
|
||||
sget v1, Lcom/yalantis/ucrop/R$d;->state_rotate:I
|
||||
|
||||
if-ne p1, v1, :cond_5
|
||||
if-ne p1, v4, :cond_5
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
|
@ -338,36 +326,30 @@
|
|||
|
||||
iget-object v0, p0, Lcom/yalantis/ucrop/UCropActivity;->w:Landroid/view/ViewGroup;
|
||||
|
||||
sget v1, Lcom/yalantis/ucrop/R$d;->state_scale:I
|
||||
if-ne p1, v5, :cond_6
|
||||
|
||||
if-ne p1, v1, :cond_6
|
||||
|
||||
const/4 v4, 0x0
|
||||
const/4 v6, 0x0
|
||||
|
||||
:cond_6
|
||||
invoke-virtual {v0, v4}, Landroid/view/ViewGroup;->setVisibility(I)V
|
||||
invoke-virtual {v0, v6}, Landroid/view/ViewGroup;->setVisibility(I)V
|
||||
|
||||
sget v0, Lcom/yalantis/ucrop/R$d;->state_scale:I
|
||||
if-ne p1, v5, :cond_7
|
||||
|
||||
if-ne p1, v0, :cond_7
|
||||
|
||||
invoke-virtual {p0, v3}, Lcom/yalantis/ucrop/UCropActivity;->b(I)V
|
||||
invoke-virtual {p0, v3}, Lcom/yalantis/ucrop/UCropActivity;->a(I)V
|
||||
|
||||
goto :goto_5
|
||||
|
||||
:cond_7
|
||||
sget v0, Lcom/yalantis/ucrop/R$d;->state_rotate:I
|
||||
if-ne p1, v4, :cond_8
|
||||
|
||||
if-ne p1, v0, :cond_8
|
||||
|
||||
invoke-virtual {p0, v2}, Lcom/yalantis/ucrop/UCropActivity;->b(I)V
|
||||
invoke-virtual {p0, v2}, Lcom/yalantis/ucrop/UCropActivity;->a(I)V
|
||||
|
||||
goto :goto_5
|
||||
|
||||
:cond_8
|
||||
const/4 p1, 0x2
|
||||
|
||||
invoke-virtual {p0, p1}, Lcom/yalantis/ucrop/UCropActivity;->b(I)V
|
||||
invoke-virtual {p0, p1}, Lcom/yalantis/ucrop/UCropActivity;->a(I)V
|
||||
|
||||
:goto_5
|
||||
return-void
|
||||
|
@ -736,138 +718,136 @@
|
|||
|
||||
invoke-virtual {v1, v2}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;
|
||||
|
||||
move-result-object v2
|
||||
move-result-object v11
|
||||
|
||||
check-cast v2, Landroid/view/ViewGroup;
|
||||
check-cast v11, Landroid/view/ViewGroup;
|
||||
|
||||
iput-object v2, v1, Lcom/yalantis/ucrop/UCropActivity;->u:Landroid/view/ViewGroup;
|
||||
iput-object v11, v1, Lcom/yalantis/ucrop/UCropActivity;->u:Landroid/view/ViewGroup;
|
||||
|
||||
sget v2, Lcom/yalantis/ucrop/R$d;->layout_rotate_wheel:I
|
||||
sget v11, Lcom/yalantis/ucrop/R$d;->layout_rotate_wheel:I
|
||||
|
||||
invoke-virtual {v1, v2}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;
|
||||
|
||||
move-result-object v2
|
||||
|
||||
check-cast v2, Landroid/view/ViewGroup;
|
||||
|
||||
iput-object v2, v1, Lcom/yalantis/ucrop/UCropActivity;->v:Landroid/view/ViewGroup;
|
||||
|
||||
sget v2, Lcom/yalantis/ucrop/R$d;->layout_scale_wheel:I
|
||||
|
||||
invoke-virtual {v1, v2}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;
|
||||
|
||||
move-result-object v2
|
||||
|
||||
check-cast v2, Landroid/view/ViewGroup;
|
||||
|
||||
iput-object v2, v1, Lcom/yalantis/ucrop/UCropActivity;->w:Landroid/view/ViewGroup;
|
||||
|
||||
invoke-virtual {v0, v10, v3}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I
|
||||
|
||||
move-result v2
|
||||
|
||||
invoke-virtual {v0, v9}, Landroid/content/Intent;->getParcelableArrayListExtra(Ljava/lang/String;)Ljava/util/ArrayList;
|
||||
invoke-virtual {v1, v11}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;
|
||||
|
||||
move-result-object v11
|
||||
|
||||
const/high16 v12, 0x3f800000 # 1.0f
|
||||
check-cast v11, Landroid/view/ViewGroup;
|
||||
|
||||
if-eqz v11, :cond_3
|
||||
iput-object v11, v1, Lcom/yalantis/ucrop/UCropActivity;->v:Landroid/view/ViewGroup;
|
||||
|
||||
invoke-virtual {v11}, Ljava/util/ArrayList;->isEmpty()Z
|
||||
sget v11, Lcom/yalantis/ucrop/R$d;->layout_scale_wheel:I
|
||||
|
||||
move-result v13
|
||||
invoke-virtual {v1, v11}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;
|
||||
|
||||
if-eqz v13, :cond_4
|
||||
move-result-object v11
|
||||
|
||||
check-cast v11, Landroid/view/ViewGroup;
|
||||
|
||||
iput-object v11, v1, Lcom/yalantis/ucrop/UCropActivity;->w:Landroid/view/ViewGroup;
|
||||
|
||||
invoke-virtual {v0, v10, v3}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I
|
||||
|
||||
move-result v11
|
||||
|
||||
invoke-virtual {v0, v9}, Landroid/content/Intent;->getParcelableArrayListExtra(Ljava/lang/String;)Ljava/util/ArrayList;
|
||||
|
||||
move-result-object v12
|
||||
|
||||
const/high16 v13, 0x3f800000 # 1.0f
|
||||
|
||||
if-eqz v12, :cond_3
|
||||
|
||||
invoke-virtual {v12}, Ljava/util/ArrayList;->isEmpty()Z
|
||||
|
||||
move-result v14
|
||||
|
||||
if-eqz v14, :cond_4
|
||||
|
||||
:cond_3
|
||||
new-instance v11, Ljava/util/ArrayList;
|
||||
new-instance v12, Ljava/util/ArrayList;
|
||||
|
||||
invoke-direct {v11}, Ljava/util/ArrayList;-><init>()V
|
||||
invoke-direct {v12}, Ljava/util/ArrayList;-><init>()V
|
||||
|
||||
new-instance v2, Lcom/yalantis/ucrop/model/AspectRatio;
|
||||
new-instance v11, Lcom/yalantis/ucrop/model/AspectRatio;
|
||||
|
||||
invoke-direct {v2, v8, v12, v12}, Lcom/yalantis/ucrop/model/AspectRatio;-><init>(Ljava/lang/String;FF)V
|
||||
invoke-direct {v11, v8, v13, v13}, Lcom/yalantis/ucrop/model/AspectRatio;-><init>(Ljava/lang/String;FF)V
|
||||
|
||||
invoke-virtual {v11, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
||||
invoke-virtual {v12, v11}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
||||
|
||||
new-instance v2, Lcom/yalantis/ucrop/model/AspectRatio;
|
||||
new-instance v11, Lcom/yalantis/ucrop/model/AspectRatio;
|
||||
|
||||
const/high16 v13, 0x40800000 # 4.0f
|
||||
const/high16 v14, 0x40800000 # 4.0f
|
||||
|
||||
const/high16 v14, 0x40400000 # 3.0f
|
||||
const/high16 v15, 0x40400000 # 3.0f
|
||||
|
||||
invoke-direct {v2, v8, v14, v13}, Lcom/yalantis/ucrop/model/AspectRatio;-><init>(Ljava/lang/String;FF)V
|
||||
invoke-direct {v11, v8, v15, v14}, Lcom/yalantis/ucrop/model/AspectRatio;-><init>(Ljava/lang/String;FF)V
|
||||
|
||||
invoke-virtual {v11, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
||||
invoke-virtual {v12, v11}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
||||
|
||||
new-instance v2, Lcom/yalantis/ucrop/model/AspectRatio;
|
||||
new-instance v11, Lcom/yalantis/ucrop/model/AspectRatio;
|
||||
|
||||
sget v13, Lcom/yalantis/ucrop/R$g;->ucrop_label_original:I
|
||||
sget v14, Lcom/yalantis/ucrop/R$g;->ucrop_label_original:I
|
||||
|
||||
invoke-virtual {v1, v13}, Landroid/app/Activity;->getString(I)Ljava/lang/String;
|
||||
invoke-virtual {v1, v14}, Landroid/app/Activity;->getString(I)Ljava/lang/String;
|
||||
|
||||
move-result-object v13
|
||||
move-result-object v14
|
||||
|
||||
invoke-virtual {v13}, Ljava/lang/String;->toUpperCase()Ljava/lang/String;
|
||||
invoke-virtual {v14}, Ljava/lang/String;->toUpperCase()Ljava/lang/String;
|
||||
|
||||
move-result-object v13
|
||||
move-result-object v14
|
||||
|
||||
invoke-direct {v2, v13, v6, v6}, Lcom/yalantis/ucrop/model/AspectRatio;-><init>(Ljava/lang/String;FF)V
|
||||
invoke-direct {v11, v14, v6, v6}, Lcom/yalantis/ucrop/model/AspectRatio;-><init>(Ljava/lang/String;FF)V
|
||||
|
||||
invoke-virtual {v11, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
||||
invoke-virtual {v12, v11}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
||||
|
||||
new-instance v2, Lcom/yalantis/ucrop/model/AspectRatio;
|
||||
new-instance v11, Lcom/yalantis/ucrop/model/AspectRatio;
|
||||
|
||||
const/high16 v13, 0x40000000 # 2.0f
|
||||
const/high16 v14, 0x40000000 # 2.0f
|
||||
|
||||
invoke-direct {v2, v8, v14, v13}, Lcom/yalantis/ucrop/model/AspectRatio;-><init>(Ljava/lang/String;FF)V
|
||||
invoke-direct {v11, v8, v15, v14}, Lcom/yalantis/ucrop/model/AspectRatio;-><init>(Ljava/lang/String;FF)V
|
||||
|
||||
invoke-virtual {v11, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
||||
invoke-virtual {v12, v11}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
||||
|
||||
new-instance v2, Lcom/yalantis/ucrop/model/AspectRatio;
|
||||
new-instance v11, Lcom/yalantis/ucrop/model/AspectRatio;
|
||||
|
||||
const/high16 v13, 0x41800000 # 16.0f
|
||||
const/high16 v14, 0x41800000 # 16.0f
|
||||
|
||||
const/high16 v14, 0x41100000 # 9.0f
|
||||
const/high16 v15, 0x41100000 # 9.0f
|
||||
|
||||
invoke-direct {v2, v8, v13, v14}, Lcom/yalantis/ucrop/model/AspectRatio;-><init>(Ljava/lang/String;FF)V
|
||||
invoke-direct {v11, v8, v14, v15}, Lcom/yalantis/ucrop/model/AspectRatio;-><init>(Ljava/lang/String;FF)V
|
||||
|
||||
invoke-virtual {v11, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
||||
invoke-virtual {v12, v11}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
||||
|
||||
const/4 v2, 0x2
|
||||
const/4 v11, 0x2
|
||||
|
||||
:cond_4
|
||||
sget v13, Lcom/yalantis/ucrop/R$d;->layout_aspect_ratio:I
|
||||
invoke-virtual {v1, v2}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;
|
||||
|
||||
invoke-virtual {v1, v13}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;
|
||||
move-result-object v2
|
||||
|
||||
move-result-object v13
|
||||
|
||||
check-cast v13, Landroid/widget/LinearLayout;
|
||||
check-cast v2, Landroid/widget/LinearLayout;
|
||||
|
||||
new-instance v14, Landroid/widget/LinearLayout$LayoutParams;
|
||||
|
||||
invoke-direct {v14, v3, v5}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V
|
||||
|
||||
iput v12, v14, Landroid/widget/LinearLayout$LayoutParams;->weight:F
|
||||
iput v13, v14, Landroid/widget/LinearLayout$LayoutParams;->weight:F
|
||||
|
||||
invoke-virtual {v11}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
||||
|
||||
move-result-object v11
|
||||
|
||||
:goto_1
|
||||
invoke-interface {v11}, Ljava/util/Iterator;->hasNext()Z
|
||||
|
||||
move-result v12
|
||||
|
||||
if-eqz v12, :cond_5
|
||||
|
||||
invoke-interface {v11}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||||
invoke-virtual {v12}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
||||
|
||||
move-result-object v12
|
||||
|
||||
check-cast v12, Lcom/yalantis/ucrop/model/AspectRatio;
|
||||
:goto_1
|
||||
invoke-interface {v12}, Ljava/util/Iterator;->hasNext()Z
|
||||
|
||||
move-result v13
|
||||
|
||||
if-eqz v13, :cond_5
|
||||
|
||||
invoke-interface {v12}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||||
|
||||
move-result-object v13
|
||||
|
||||
check-cast v13, Lcom/yalantis/ucrop/model/AspectRatio;
|
||||
|
||||
invoke-virtual/range {p0 .. p0}, Landroid/app/Activity;->getLayoutInflater()Landroid/view/LayoutInflater;
|
||||
|
||||
|
@ -893,9 +873,9 @@
|
|||
|
||||
invoke-virtual {v15, v8}, Lcom/yalantis/ucrop/view/widget/AspectRatioTextView;->setActiveColor(I)V
|
||||
|
||||
invoke-virtual {v15, v12}, Lcom/yalantis/ucrop/view/widget/AspectRatioTextView;->setAspectRatio(Lcom/yalantis/ucrop/model/AspectRatio;)V
|
||||
invoke-virtual {v15, v13}, Lcom/yalantis/ucrop/view/widget/AspectRatioTextView;->setAspectRatio(Lcom/yalantis/ucrop/model/AspectRatio;)V
|
||||
|
||||
invoke-virtual {v13, v5}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V
|
||||
invoke-virtual {v2, v5}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V
|
||||
|
||||
iget-object v8, v1, Lcom/yalantis/ucrop/UCropActivity;->x:Ljava/util/List;
|
||||
|
||||
|
@ -908,9 +888,9 @@
|
|||
goto :goto_1
|
||||
|
||||
:cond_5
|
||||
iget-object v5, v1, Lcom/yalantis/ucrop/UCropActivity;->x:Ljava/util/List;
|
||||
iget-object v2, v1, Lcom/yalantis/ucrop/UCropActivity;->x:Ljava/util/List;
|
||||
|
||||
invoke-interface {v5, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
||||
invoke-interface {v2, v11}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
||||
|
||||
move-result-object v2
|
||||
|
||||
|
@ -960,17 +940,15 @@
|
|||
|
||||
invoke-virtual {v1, v2}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;
|
||||
|
||||
move-result-object v2
|
||||
move-result-object v5
|
||||
|
||||
check-cast v2, Lcom/yalantis/ucrop/view/widget/HorizontalProgressWheelView;
|
||||
check-cast v5, Lcom/yalantis/ucrop/view/widget/HorizontalProgressWheelView;
|
||||
|
||||
new-instance v5, Lf/n/a/c;
|
||||
new-instance v8, Lf/n/a/c;
|
||||
|
||||
invoke-direct {v5, v1}, Lf/n/a/c;-><init>(Lcom/yalantis/ucrop/UCropActivity;)V
|
||||
invoke-direct {v8, v1}, Lf/n/a/c;-><init>(Lcom/yalantis/ucrop/UCropActivity;)V
|
||||
|
||||
invoke-virtual {v2, v5}, Lcom/yalantis/ucrop/view/widget/HorizontalProgressWheelView;->setScrollingListener(Lcom/yalantis/ucrop/view/widget/HorizontalProgressWheelView$a;)V
|
||||
|
||||
sget v2, Lcom/yalantis/ucrop/R$d;->rotate_scroll_wheel:I
|
||||
invoke-virtual {v5, v8}, Lcom/yalantis/ucrop/view/widget/HorizontalProgressWheelView;->setScrollingListener(Lcom/yalantis/ucrop/view/widget/HorizontalProgressWheelView$a;)V
|
||||
|
||||
invoke-virtual {v1, v2}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;
|
||||
|
||||
|
@ -1020,17 +998,15 @@
|
|||
|
||||
invoke-virtual {v1, v2}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;
|
||||
|
||||
move-result-object v2
|
||||
move-result-object v5
|
||||
|
||||
check-cast v2, Lcom/yalantis/ucrop/view/widget/HorizontalProgressWheelView;
|
||||
check-cast v5, Lcom/yalantis/ucrop/view/widget/HorizontalProgressWheelView;
|
||||
|
||||
new-instance v5, Lf/n/a/f;
|
||||
new-instance v8, Lf/n/a/f;
|
||||
|
||||
invoke-direct {v5, v1}, Lf/n/a/f;-><init>(Lcom/yalantis/ucrop/UCropActivity;)V
|
||||
invoke-direct {v8, v1}, Lf/n/a/f;-><init>(Lcom/yalantis/ucrop/UCropActivity;)V
|
||||
|
||||
invoke-virtual {v2, v5}, Lcom/yalantis/ucrop/view/widget/HorizontalProgressWheelView;->setScrollingListener(Lcom/yalantis/ucrop/view/widget/HorizontalProgressWheelView$a;)V
|
||||
|
||||
sget v2, Lcom/yalantis/ucrop/R$d;->scale_scroll_wheel:I
|
||||
invoke-virtual {v5, v8}, Lcom/yalantis/ucrop/view/widget/HorizontalProgressWheelView;->setScrollingListener(Lcom/yalantis/ucrop/view/widget/HorizontalProgressWheelView$a;)V
|
||||
|
||||
invoke-virtual {v1, v2}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;
|
||||
|
||||
|
@ -1524,7 +1500,7 @@
|
|||
:catch_0
|
||||
move-exception v0
|
||||
|
||||
invoke-virtual {v1, v0}, Lcom/yalantis/ucrop/UCropActivity;->c(Ljava/lang/Throwable;)V
|
||||
invoke-virtual {v1, v0}, Lcom/yalantis/ucrop/UCropActivity;->b(Ljava/lang/Throwable;)V
|
||||
|
||||
invoke-virtual/range {p0 .. p0}, Landroid/app/Activity;->finish()V
|
||||
|
||||
|
@ -1541,7 +1517,7 @@
|
|||
|
||||
invoke-direct {v0, v2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
invoke-virtual {v1, v0}, Lcom/yalantis/ucrop/UCropActivity;->c(Ljava/lang/Throwable;)V
|
||||
invoke-virtual {v1, v0}, Lcom/yalantis/ucrop/UCropActivity;->b(Ljava/lang/Throwable;)V
|
||||
|
||||
invoke-virtual/range {p0 .. p0}, Landroid/app/Activity;->finish()V
|
||||
|
||||
|
@ -1560,19 +1536,19 @@
|
|||
|
||||
sget v0, Lcom/yalantis/ucrop/R$d;->state_aspect_ratio:I
|
||||
|
||||
invoke-virtual {v1, v0}, Lcom/yalantis/ucrop/UCropActivity;->d(I)V
|
||||
invoke-virtual {v1, v0}, Lcom/yalantis/ucrop/UCropActivity;->c(I)V
|
||||
|
||||
goto :goto_6
|
||||
|
||||
:cond_10
|
||||
sget v0, Lcom/yalantis/ucrop/R$d;->state_scale:I
|
||||
|
||||
invoke-virtual {v1, v0}, Lcom/yalantis/ucrop/UCropActivity;->d(I)V
|
||||
invoke-virtual {v1, v0}, Lcom/yalantis/ucrop/UCropActivity;->c(I)V
|
||||
|
||||
goto :goto_6
|
||||
|
||||
:cond_11
|
||||
invoke-virtual {v1, v3}, Lcom/yalantis/ucrop/UCropActivity;->b(I)V
|
||||
invoke-virtual {v1, v3}, Lcom/yalantis/ucrop/UCropActivity;->a(I)V
|
||||
|
||||
:goto_6
|
||||
iget-object v0, v1, Lcom/yalantis/ucrop/UCropActivity;->A:Landroid/view/View;
|
||||
|
@ -1773,7 +1749,7 @@
|
|||
|
||||
iget-object v2, v0, Lf/n/a/l/c;->d:[F
|
||||
|
||||
invoke-static {v2}, Lf/h/a/f/f/n/f;->e0([F)Landroid/graphics/RectF;
|
||||
invoke-static {v2}, Lf/h/a/f/f/n/f;->g0([F)Landroid/graphics/RectF;
|
||||
|
||||
move-result-object v2
|
||||
|
||||
|
|
|
@ -224,11 +224,11 @@
|
|||
:cond_2
|
||||
iget-boolean v0, p0, Lcom/yalantis/ucrop/view/GestureCropImageView;->J:Z
|
||||
|
||||
if-eqz v0, :cond_d
|
||||
if-eqz v0, :cond_c
|
||||
|
||||
iget-object v0, p0, Lcom/yalantis/ucrop/view/GestureCropImageView;->F:Lf/n/a/k/c;
|
||||
|
||||
if-eqz v0, :cond_c
|
||||
invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
invoke-virtual {p1}, Landroid/view/MotionEvent;->getActionMasked()I
|
||||
|
||||
|
@ -297,11 +297,11 @@
|
|||
:cond_5
|
||||
iget v3, v0, Lf/n/a/k/c;->e:I
|
||||
|
||||
if-eq v3, v5, :cond_d
|
||||
if-eq v3, v5, :cond_c
|
||||
|
||||
iget v3, v0, Lf/n/a/k/c;->f:I
|
||||
|
||||
if-eq v3, v5, :cond_d
|
||||
if-eq v3, v5, :cond_c
|
||||
|
||||
invoke-virtual {p1}, Landroid/view/MotionEvent;->getPointerCount()I
|
||||
|
||||
|
@ -309,7 +309,7 @@
|
|||
|
||||
iget v5, v0, Lf/n/a/k/c;->f:I
|
||||
|
||||
if-le v3, v5, :cond_d
|
||||
if-le v3, v5, :cond_c
|
||||
|
||||
iget v3, v0, Lf/n/a/k/c;->e:I
|
||||
|
||||
|
@ -492,14 +492,7 @@
|
|||
|
||||
iput-boolean v2, v0, Lf/n/a/k/c;->h:Z
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_c
|
||||
const/4 p1, 0x0
|
||||
|
||||
throw p1
|
||||
|
||||
:cond_d
|
||||
:goto_1
|
||||
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I
|
||||
|
||||
|
@ -507,11 +500,11 @@
|
|||
|
||||
and-int/lit16 p1, p1, 0xff
|
||||
|
||||
if-ne p1, v2, :cond_e
|
||||
if-ne p1, v2, :cond_d
|
||||
|
||||
invoke-virtual {p0, v2}, Lf/n/a/l/a;->setImageToWrapCropBounds(Z)V
|
||||
|
||||
:cond_e
|
||||
:cond_d
|
||||
return v2
|
||||
.end method
|
||||
|
||||
|
|
|
@ -173,7 +173,7 @@
|
|||
|
||||
iget-object v0, p0, Lcom/yalantis/ucrop/view/OverlayView;->d:Landroid/graphics/RectF;
|
||||
|
||||
invoke-static {v0}, Lf/h/a/f/f/n/f;->D(Landroid/graphics/RectF;)[F
|
||||
invoke-static {v0}, Lf/h/a/f/f/n/f;->y(Landroid/graphics/RectF;)[F
|
||||
|
||||
move-result-object v0
|
||||
|
||||
|
@ -181,7 +181,7 @@
|
|||
|
||||
iget-object v0, p0, Lcom/yalantis/ucrop/view/OverlayView;->d:Landroid/graphics/RectF;
|
||||
|
||||
invoke-static {v0}, Lf/h/a/f/f/n/f;->C(Landroid/graphics/RectF;)[F
|
||||
invoke-static {v0}, Lf/h/a/f/f/n/f;->w(Landroid/graphics/RectF;)[F
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
|
@ -1130,38 +1130,38 @@
|
|||
|
||||
iget-object v6, v0, Lcom/yalantis/ucrop/view/OverlayView;->e:Landroid/graphics/RectF;
|
||||
|
||||
iget v6, v6, Landroid/graphics/RectF;->top:F
|
||||
|
||||
goto :goto_8
|
||||
|
||||
:cond_10
|
||||
iget-object v6, v0, Lcom/yalantis/ucrop/view/OverlayView;->d:Landroid/graphics/RectF;
|
||||
iget v6, v4, Landroid/graphics/RectF;->top:F
|
||||
|
||||
:goto_8
|
||||
iget v6, v6, Landroid/graphics/RectF;->top:F
|
||||
|
||||
if-eqz v16, :cond_11
|
||||
|
||||
iget-object v7, v0, Lcom/yalantis/ucrop/view/OverlayView;->e:Landroid/graphics/RectF;
|
||||
|
||||
iget v7, v7, Landroid/graphics/RectF;->right:F
|
||||
|
||||
goto :goto_9
|
||||
|
||||
:cond_11
|
||||
iget-object v7, v0, Lcom/yalantis/ucrop/view/OverlayView;->d:Landroid/graphics/RectF;
|
||||
iget v7, v4, Landroid/graphics/RectF;->right:F
|
||||
|
||||
:goto_9
|
||||
iget v7, v7, Landroid/graphics/RectF;->right:F
|
||||
|
||||
if-eqz v3, :cond_12
|
||||
|
||||
iget-object v9, v0, Lcom/yalantis/ucrop/view/OverlayView;->e:Landroid/graphics/RectF;
|
||||
|
||||
iget v9, v9, Landroid/graphics/RectF;->bottom:F
|
||||
|
||||
goto :goto_a
|
||||
|
||||
:cond_12
|
||||
iget-object v9, v0, Lcom/yalantis/ucrop/view/OverlayView;->d:Landroid/graphics/RectF;
|
||||
iget v9, v4, Landroid/graphics/RectF;->bottom:F
|
||||
|
||||
:goto_a
|
||||
iget v9, v9, Landroid/graphics/RectF;->bottom:F
|
||||
|
||||
invoke-virtual {v4, v5, v6, v7, v9}, Landroid/graphics/RectF;->set(FFFF)V
|
||||
|
||||
if-nez v3, :cond_13
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
# direct methods
|
||||
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
||||
.locals 6
|
||||
.locals 5
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
|
@ -47,33 +47,79 @@
|
|||
|
||||
iput-object v1, p0, Lcom/yalantis/ucrop/view/UCropView;->e:Lcom/yalantis/ucrop/view/OverlayView;
|
||||
|
||||
sget-object v1, Lcom/yalantis/ucrop/R$h;->ucrop_UCropView:[I
|
||||
sget-object v2, Lcom/yalantis/ucrop/R$h;->ucrop_UCropView:[I
|
||||
|
||||
invoke-virtual {p1, p2, v1}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;
|
||||
invoke-virtual {p1, p2, v2}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
iget-object p2, p0, Lcom/yalantis/ucrop/view/UCropView;->e:Lcom/yalantis/ucrop/view/OverlayView;
|
||||
invoke-static {v1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
const/4 v1, 0x0
|
||||
sget p2, Lcom/yalantis/ucrop/R$h;->ucrop_UCropView_ucrop_circle_dimmed_layer:I
|
||||
|
||||
if-eqz p2, :cond_3
|
||||
invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
||||
|
||||
sget v2, Lcom/yalantis/ucrop/R$h;->ucrop_UCropView_ucrop_circle_dimmed_layer:I
|
||||
move-result p2
|
||||
|
||||
invoke-virtual {p1, v2, v0}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
||||
iput-boolean p2, v1, Lcom/yalantis/ucrop/view/OverlayView;->o:Z
|
||||
|
||||
sget p2, Lcom/yalantis/ucrop/R$h;->ucrop_UCropView_ucrop_dimmed_color:I
|
||||
|
||||
invoke-virtual {v1}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
sget v2, Lcom/yalantis/ucrop/R$a;->ucrop_color_default_dimmed:I
|
||||
|
||||
invoke-virtual {v0, v2}, Landroid/content/res/Resources;->getColor(I)I
|
||||
|
||||
move-result v0
|
||||
|
||||
iput-boolean v0, p2, Lcom/yalantis/ucrop/view/OverlayView;->o:Z
|
||||
invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getColor(II)I
|
||||
|
||||
sget v0, Lcom/yalantis/ucrop/R$h;->ucrop_UCropView_ucrop_dimmed_color:I
|
||||
move-result p2
|
||||
|
||||
invoke-virtual {p2}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
||||
iput p2, v1, Lcom/yalantis/ucrop/view/OverlayView;->p:I
|
||||
|
||||
iget-object v0, v1, Lcom/yalantis/ucrop/view/OverlayView;->r:Landroid/graphics/Paint;
|
||||
|
||||
invoke-virtual {v0, p2}, Landroid/graphics/Paint;->setColor(I)V
|
||||
|
||||
iget-object p2, v1, Lcom/yalantis/ucrop/view/OverlayView;->r:Landroid/graphics/Paint;
|
||||
|
||||
sget-object v0, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;
|
||||
|
||||
invoke-virtual {p2, v0}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V
|
||||
|
||||
iget-object p2, v1, Lcom/yalantis/ucrop/view/OverlayView;->r:Landroid/graphics/Paint;
|
||||
|
||||
const/high16 v0, 0x3f800000 # 1.0f
|
||||
|
||||
invoke-virtual {p2, v0}, Landroid/graphics/Paint;->setStrokeWidth(F)V
|
||||
|
||||
sget p2, Lcom/yalantis/ucrop/R$h;->ucrop_UCropView_ucrop_frame_stroke_size:I
|
||||
|
||||
invoke-virtual {v1}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
sget v2, Lcom/yalantis/ucrop/R$b;->ucrop_default_crop_frame_stoke_width:I
|
||||
|
||||
invoke-virtual {v0, v2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
||||
|
||||
move-result v0
|
||||
|
||||
invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
||||
|
||||
move-result p2
|
||||
|
||||
sget v0, Lcom/yalantis/ucrop/R$h;->ucrop_UCropView_ucrop_frame_color:I
|
||||
|
||||
invoke-virtual {v1}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
||||
|
||||
move-result-object v2
|
||||
|
||||
sget v4, Lcom/yalantis/ucrop/R$a;->ucrop_color_default_dimmed:I
|
||||
sget v4, Lcom/yalantis/ucrop/R$a;->ucrop_color_default_crop_frame:I
|
||||
|
||||
invoke-virtual {v2, v4}, Landroid/content/res/Resources;->getColor(I)I
|
||||
|
||||
|
@ -83,175 +129,125 @@
|
|||
|
||||
move-result v0
|
||||
|
||||
iput v0, p2, Lcom/yalantis/ucrop/view/OverlayView;->p:I
|
||||
iget-object v2, v1, Lcom/yalantis/ucrop/view/OverlayView;->t:Landroid/graphics/Paint;
|
||||
|
||||
iget-object v2, p2, Lcom/yalantis/ucrop/view/OverlayView;->r:Landroid/graphics/Paint;
|
||||
int-to-float v4, p2
|
||||
|
||||
invoke-virtual {v2, v4}, Landroid/graphics/Paint;->setStrokeWidth(F)V
|
||||
|
||||
iget-object v2, v1, Lcom/yalantis/ucrop/view/OverlayView;->t:Landroid/graphics/Paint;
|
||||
|
||||
invoke-virtual {v2, v0}, Landroid/graphics/Paint;->setColor(I)V
|
||||
|
||||
iget-object v0, p2, Lcom/yalantis/ucrop/view/OverlayView;->r:Landroid/graphics/Paint;
|
||||
iget-object v2, v1, Lcom/yalantis/ucrop/view/OverlayView;->t:Landroid/graphics/Paint;
|
||||
|
||||
sget-object v2, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;
|
||||
sget-object v4, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;
|
||||
|
||||
invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V
|
||||
invoke-virtual {v2, v4}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V
|
||||
|
||||
iget-object v0, p2, Lcom/yalantis/ucrop/view/OverlayView;->r:Landroid/graphics/Paint;
|
||||
iget-object v2, v1, Lcom/yalantis/ucrop/view/OverlayView;->u:Landroid/graphics/Paint;
|
||||
|
||||
const/high16 v2, 0x3f800000 # 1.0f
|
||||
mul-int/lit8 p2, p2, 0x3
|
||||
|
||||
invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setStrokeWidth(F)V
|
||||
int-to-float p2, p2
|
||||
|
||||
sget v0, Lcom/yalantis/ucrop/R$h;->ucrop_UCropView_ucrop_frame_stroke_size:I
|
||||
invoke-virtual {v2, p2}, Landroid/graphics/Paint;->setStrokeWidth(F)V
|
||||
|
||||
invoke-virtual {p2}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
||||
iget-object p2, v1, Lcom/yalantis/ucrop/view/OverlayView;->u:Landroid/graphics/Paint;
|
||||
|
||||
invoke-virtual {p2, v0}, Landroid/graphics/Paint;->setColor(I)V
|
||||
|
||||
iget-object p2, v1, Lcom/yalantis/ucrop/view/OverlayView;->u:Landroid/graphics/Paint;
|
||||
|
||||
sget-object v0, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;
|
||||
|
||||
invoke-virtual {p2, v0}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V
|
||||
|
||||
sget p2, Lcom/yalantis/ucrop/R$h;->ucrop_UCropView_ucrop_show_frame:I
|
||||
|
||||
invoke-virtual {p1, p2, v3}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
||||
|
||||
move-result p2
|
||||
|
||||
iput-boolean p2, v1, Lcom/yalantis/ucrop/view/OverlayView;->m:Z
|
||||
|
||||
sget p2, Lcom/yalantis/ucrop/R$h;->ucrop_UCropView_ucrop_grid_stroke_size:I
|
||||
|
||||
invoke-virtual {v1}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
sget v2, Lcom/yalantis/ucrop/R$b;->ucrop_default_crop_grid_stoke_width:I
|
||||
|
||||
invoke-virtual {v0, v2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
||||
|
||||
move-result v0
|
||||
|
||||
invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
||||
|
||||
move-result p2
|
||||
|
||||
sget v0, Lcom/yalantis/ucrop/R$h;->ucrop_UCropView_ucrop_grid_color:I
|
||||
|
||||
invoke-virtual {v1}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
||||
|
||||
move-result-object v2
|
||||
|
||||
sget v4, Lcom/yalantis/ucrop/R$b;->ucrop_default_crop_frame_stoke_width:I
|
||||
sget v4, Lcom/yalantis/ucrop/R$a;->ucrop_color_default_crop_grid:I
|
||||
|
||||
invoke-virtual {v2, v4}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
||||
invoke-virtual {v2, v4}, Landroid/content/res/Resources;->getColor(I)I
|
||||
|
||||
move-result v2
|
||||
|
||||
invoke-virtual {p1, v0, v2}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
||||
invoke-virtual {p1, v0, v2}, Landroid/content/res/TypedArray;->getColor(II)I
|
||||
|
||||
move-result v0
|
||||
|
||||
sget v2, Lcom/yalantis/ucrop/R$h;->ucrop_UCropView_ucrop_frame_color:I
|
||||
iget-object v2, v1, Lcom/yalantis/ucrop/view/OverlayView;->s:Landroid/graphics/Paint;
|
||||
|
||||
invoke-virtual {p2}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
||||
int-to-float p2, p2
|
||||
|
||||
move-result-object v4
|
||||
invoke-virtual {v2, p2}, Landroid/graphics/Paint;->setStrokeWidth(F)V
|
||||
|
||||
sget v5, Lcom/yalantis/ucrop/R$a;->ucrop_color_default_crop_frame:I
|
||||
iget-object p2, v1, Lcom/yalantis/ucrop/view/OverlayView;->s:Landroid/graphics/Paint;
|
||||
|
||||
invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getColor(I)I
|
||||
invoke-virtual {p2, v0}, Landroid/graphics/Paint;->setColor(I)V
|
||||
|
||||
move-result v4
|
||||
sget p2, Lcom/yalantis/ucrop/R$h;->ucrop_UCropView_ucrop_grid_row_count:I
|
||||
|
||||
invoke-virtual {p1, v2, v4}, Landroid/content/res/TypedArray;->getColor(II)I
|
||||
const/4 v0, 0x2
|
||||
|
||||
move-result v2
|
||||
invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getInt(II)I
|
||||
|
||||
iget-object v4, p2, Lcom/yalantis/ucrop/view/OverlayView;->t:Landroid/graphics/Paint;
|
||||
move-result p2
|
||||
|
||||
int-to-float v5, v0
|
||||
iput p2, v1, Lcom/yalantis/ucrop/view/OverlayView;->i:I
|
||||
|
||||
invoke-virtual {v4, v5}, Landroid/graphics/Paint;->setStrokeWidth(F)V
|
||||
sget p2, Lcom/yalantis/ucrop/R$h;->ucrop_UCropView_ucrop_grid_column_count:I
|
||||
|
||||
iget-object v4, p2, Lcom/yalantis/ucrop/view/OverlayView;->t:Landroid/graphics/Paint;
|
||||
invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getInt(II)I
|
||||
|
||||
invoke-virtual {v4, v2}, Landroid/graphics/Paint;->setColor(I)V
|
||||
move-result p2
|
||||
|
||||
iget-object v4, p2, Lcom/yalantis/ucrop/view/OverlayView;->t:Landroid/graphics/Paint;
|
||||
iput p2, v1, Lcom/yalantis/ucrop/view/OverlayView;->j:I
|
||||
|
||||
sget-object v5, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;
|
||||
sget p2, Lcom/yalantis/ucrop/R$h;->ucrop_UCropView_ucrop_show_grid:I
|
||||
|
||||
invoke-virtual {v4, v5}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V
|
||||
invoke-virtual {p1, p2, v3}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
||||
|
||||
iget-object v4, p2, Lcom/yalantis/ucrop/view/OverlayView;->u:Landroid/graphics/Paint;
|
||||
move-result p2
|
||||
|
||||
mul-int/lit8 v0, v0, 0x3
|
||||
|
||||
int-to-float v0, v0
|
||||
|
||||
invoke-virtual {v4, v0}, Landroid/graphics/Paint;->setStrokeWidth(F)V
|
||||
|
||||
iget-object v0, p2, Lcom/yalantis/ucrop/view/OverlayView;->u:Landroid/graphics/Paint;
|
||||
|
||||
invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setColor(I)V
|
||||
|
||||
iget-object v0, p2, Lcom/yalantis/ucrop/view/OverlayView;->u:Landroid/graphics/Paint;
|
||||
|
||||
sget-object v2, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;
|
||||
|
||||
invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V
|
||||
|
||||
sget v0, Lcom/yalantis/ucrop/R$h;->ucrop_UCropView_ucrop_show_frame:I
|
||||
|
||||
invoke-virtual {p1, v0, v3}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
||||
|
||||
move-result v0
|
||||
|
||||
iput-boolean v0, p2, Lcom/yalantis/ucrop/view/OverlayView;->m:Z
|
||||
|
||||
sget v0, Lcom/yalantis/ucrop/R$h;->ucrop_UCropView_ucrop_grid_stroke_size:I
|
||||
|
||||
invoke-virtual {p2}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
||||
|
||||
move-result-object v2
|
||||
|
||||
sget v4, Lcom/yalantis/ucrop/R$b;->ucrop_default_crop_grid_stoke_width:I
|
||||
|
||||
invoke-virtual {v2, v4}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
||||
|
||||
move-result v2
|
||||
|
||||
invoke-virtual {p1, v0, v2}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
||||
|
||||
move-result v0
|
||||
|
||||
sget v2, Lcom/yalantis/ucrop/R$h;->ucrop_UCropView_ucrop_grid_color:I
|
||||
|
||||
invoke-virtual {p2}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
||||
|
||||
move-result-object v4
|
||||
|
||||
sget v5, Lcom/yalantis/ucrop/R$a;->ucrop_color_default_crop_grid:I
|
||||
|
||||
invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getColor(I)I
|
||||
|
||||
move-result v4
|
||||
|
||||
invoke-virtual {p1, v2, v4}, Landroid/content/res/TypedArray;->getColor(II)I
|
||||
|
||||
move-result v2
|
||||
|
||||
iget-object v4, p2, Lcom/yalantis/ucrop/view/OverlayView;->s:Landroid/graphics/Paint;
|
||||
|
||||
int-to-float v0, v0
|
||||
|
||||
invoke-virtual {v4, v0}, Landroid/graphics/Paint;->setStrokeWidth(F)V
|
||||
|
||||
iget-object v0, p2, Lcom/yalantis/ucrop/view/OverlayView;->s:Landroid/graphics/Paint;
|
||||
|
||||
invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setColor(I)V
|
||||
|
||||
sget v0, Lcom/yalantis/ucrop/R$h;->ucrop_UCropView_ucrop_grid_row_count:I
|
||||
|
||||
const/4 v2, 0x2
|
||||
|
||||
invoke-virtual {p1, v0, v2}, Landroid/content/res/TypedArray;->getInt(II)I
|
||||
|
||||
move-result v0
|
||||
|
||||
iput v0, p2, Lcom/yalantis/ucrop/view/OverlayView;->i:I
|
||||
|
||||
sget v0, Lcom/yalantis/ucrop/R$h;->ucrop_UCropView_ucrop_grid_column_count:I
|
||||
|
||||
invoke-virtual {p1, v0, v2}, Landroid/content/res/TypedArray;->getInt(II)I
|
||||
|
||||
move-result v0
|
||||
|
||||
iput v0, p2, Lcom/yalantis/ucrop/view/OverlayView;->j:I
|
||||
|
||||
sget v0, Lcom/yalantis/ucrop/R$h;->ucrop_UCropView_ucrop_show_grid:I
|
||||
|
||||
invoke-virtual {p1, v0, v3}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
||||
|
||||
move-result v0
|
||||
|
||||
iput-boolean v0, p2, Lcom/yalantis/ucrop/view/OverlayView;->n:Z
|
||||
iput-boolean p2, v1, Lcom/yalantis/ucrop/view/OverlayView;->n:Z
|
||||
|
||||
iget-object p2, p0, Lcom/yalantis/ucrop/view/UCropView;->d:Lcom/yalantis/ucrop/view/GestureCropImageView;
|
||||
|
||||
if-eqz p2, :cond_2
|
||||
invoke-static {p2}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
sget v0, Lcom/yalantis/ucrop/R$h;->ucrop_UCropView_ucrop_aspect_ratio_x:I
|
||||
|
||||
const/4 v1, 0x0
|
||||
const/4 v2, 0x0
|
||||
|
||||
invoke-virtual {p1, v0, v1}, Landroid/content/res/TypedArray;->getFloat(IF)F
|
||||
invoke-virtual {p1, v0, v2}, Landroid/content/res/TypedArray;->getFloat(IF)F
|
||||
|
||||
move-result v0
|
||||
|
||||
|
@ -259,28 +255,28 @@
|
|||
|
||||
move-result v0
|
||||
|
||||
sget v2, Lcom/yalantis/ucrop/R$h;->ucrop_UCropView_ucrop_aspect_ratio_y:I
|
||||
sget v3, Lcom/yalantis/ucrop/R$h;->ucrop_UCropView_ucrop_aspect_ratio_y:I
|
||||
|
||||
invoke-virtual {p1, v2, v1}, Landroid/content/res/TypedArray;->getFloat(IF)F
|
||||
invoke-virtual {p1, v3, v2}, Landroid/content/res/TypedArray;->getFloat(IF)F
|
||||
|
||||
move-result v2
|
||||
move-result v3
|
||||
|
||||
invoke-static {v2}, Ljava/lang/Math;->abs(F)F
|
||||
invoke-static {v3}, Ljava/lang/Math;->abs(F)F
|
||||
|
||||
move-result v2
|
||||
move-result v3
|
||||
|
||||
cmpl-float v3, v0, v1
|
||||
cmpl-float v4, v0, v2
|
||||
|
||||
if-eqz v3, :cond_1
|
||||
if-eqz v4, :cond_1
|
||||
|
||||
cmpl-float v3, v2, v1
|
||||
cmpl-float v4, v3, v2
|
||||
|
||||
if-nez v3, :cond_0
|
||||
if-nez v4, :cond_0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
div-float/2addr v0, v2
|
||||
div-float/2addr v0, v3
|
||||
|
||||
iput v0, p2, Lf/n/a/l/a;->u:F
|
||||
|
||||
|
@ -288,7 +284,7 @@
|
|||
|
||||
:cond_1
|
||||
:goto_0
|
||||
iput v1, p2, Lf/n/a/l/a;->u:F
|
||||
iput v2, p2, Lf/n/a/l/a;->u:F
|
||||
|
||||
:goto_1
|
||||
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
|
||||
|
@ -301,21 +297,13 @@
|
|||
|
||||
invoke-virtual {p1, p2}, Lf/n/a/l/a;->setCropBoundsChangeListener(Lf/n/a/h/c;)V
|
||||
|
||||
iget-object p1, p0, Lcom/yalantis/ucrop/view/UCropView;->e:Lcom/yalantis/ucrop/view/OverlayView;
|
||||
new-instance p1, Lf/n/a/l/e;
|
||||
|
||||
new-instance p2, Lf/n/a/l/e;
|
||||
invoke-direct {p1, p0}, Lf/n/a/l/e;-><init>(Lcom/yalantis/ucrop/view/UCropView;)V
|
||||
|
||||
invoke-direct {p2, p0}, Lf/n/a/l/e;-><init>(Lcom/yalantis/ucrop/view/UCropView;)V
|
||||
|
||||
invoke-virtual {p1, p2}, Lcom/yalantis/ucrop/view/OverlayView;->setOverlayViewChangeListener(Lf/n/a/h/d;)V
|
||||
invoke-virtual {v1, p1}, Lcom/yalantis/ucrop/view/OverlayView;->setOverlayViewChangeListener(Lf/n/a/h/d;)V
|
||||
|
||||
return-void
|
||||
|
||||
:cond_2
|
||||
throw v1
|
||||
|
||||
:cond_3
|
||||
throw v1
|
||||
.end method
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue