正在查看: Dostt v1.0.89 应用的 CropImageActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Dostt v1.0.89 应用的 CropImageActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.canhub.cropper;
import N2.k;
import N2.l;
import N2.q;
import N2.t;
import Sh.J;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import androidx.appcompat.app.AbstractC0644a;
import androidx.appcompat.app.DialogInterfaceC0646c;
import app.notifee.core.event.LogEvent;
import com.canhub.cropper.CropImageActivity;
import com.canhub.cropper.CropImageView;
import f.AbstractC1142c;
import f.InterfaceC1141b;
import g.C1172b;
import java.io.File;
import java.util.List;
import kotlin.Metadata;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.o;
import kotlin.jvm.internal.r;
@Metadata(d1 = {"\u0000\u0098\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\b\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\t\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\b\b\b\u0016\u0018\u0000 _2\u00020\u00012\u00020\u00022\u00020\u0003:\u0002HLB\u0007¢\u0006\u0004\b\u0004\u0010\u0005J\u000f\u0010\u0007\u001a\u00020\u0006H\u0002¢\u0006\u0004\b\u0007\u0010\u0005J\u0017\u0010\n\u001a\u00020\u00062\u0006\u0010\t\u001a\u00020\bH\u0002¢\u0006\u0004\b\n\u0010\u000bJ\u000f\u0010\f\u001a\u00020\u0006H\u0002¢\u0006\u0004\b\f\u0010\u0005J\u000f\u0010\u000e\u001a\u00020\rH\u0002¢\u0006\u0004\b\u000e\u0010\u000fJ\u0019\u0010\u0012\u001a\u00020\u00062\b\u0010\u0011\u001a\u0004\u0018\u00010\u0010H\u0016¢\u0006\u0004\b\u0012\u0010\u0013J#\u0010\u0016\u001a\u00020\u00062\u0012\u0010\u0015\u001a\u000e\u0012\u0004\u0012\u00020\b\u0012\u0004\u0012\u00020\u00060\u0014H\u0016¢\u0006\u0004\b\u0016\u0010\u0017J\u000f\u0010\u0018\u001a\u00020\u0006H\u0016¢\u0006\u0004\b\u0018\u0010\u0005J\u000f\u0010\u0019\u001a\u00020\u0006H\u0016¢\u0006\u0004\b\u0019\u0010\u0005J\u0017\u0010\u001b\u001a\u00020\u00062\u0006\u0010\u001a\u001a\u00020\u0010H\u0014¢\u0006\u0004\b\u001b\u0010\u0013J\u0017\u0010\u001f\u001a\u00020\u001e2\u0006\u0010\u001d\u001a\u00020\u001cH\u0016¢\u0006\u0004\b\u001f\u0010 J\u0017\u0010#\u001a\u00020\u001e2\u0006\u0010\"\u001a\u00020!H\u0016¢\u0006\u0004\b#\u0010$J\u000f\u0010%\u001a\u00020\u0006H\u0016¢\u0006\u0004\b%\u0010\u0005J\u0019\u0010'\u001a\u00020\u00062\b\u0010&\u001a\u0004\u0018\u00010\rH\u0014¢\u0006\u0004\b'\u0010(J/\u0010/\u001a\u00020\u00062\u0006\u0010*\u001a\u00020)2\u0006\u0010+\u001a\u00020\r2\u000e\u0010.\u001a\n\u0018\u00010,j\u0004\u0018\u0001`-H\u0016¢\u0006\u0004\b/\u00100J\u001f\u00103\u001a\u00020\u00062\u0006\u0010*\u001a\u00020)2\u0006\u00102\u001a\u000201H\u0016¢\u0006\u0004\b3\u00104J\u000f\u00105\u001a\u00020\u0006H\u0016¢\u0006\u0004\b5\u0010\u0005J\u0017\u00107\u001a\u00020\u00062\u0006\u00106\u001a\u00020)H\u0016¢\u0006\u0004\b7\u00108J\u0017\u0010;\u001a\u00020\u00062\u0006\u0010:\u001a\u000209H\u0016¢\u0006\u0004\b;\u0010<J1\u0010>\u001a\u00020\u00062\b\u0010+\u001a\u0004\u0018\u00010\r2\u000e\u0010.\u001a\n\u0018\u00010,j\u0004\u0018\u0001`-2\u0006\u0010=\u001a\u000209H\u0016¢\u0006\u0004\b>\u0010?J\u000f\u0010@\u001a\u00020\u0006H\u0016¢\u0006\u0004\b@\u0010\u0005J1\u0010B\u001a\u00020A2\b\u0010+\u001a\u0004\u0018\u00010\r2\u000e\u0010.\u001a\n\u0018\u00010,j\u0004\u0018\u0001`-2\u0006\u0010=\u001a\u000209H\u0016¢\u0006\u0004\bB\u0010CJ'\u0010F\u001a\u00020\u00062\u0006\u0010\u001d\u001a\u00020\u001c2\u0006\u0010D\u001a\u0002092\u0006\u0010E\u001a\u000209H\u0016¢\u0006\u0004\bF\u0010GR\u0018\u0010J\u001a\u0004\u0018\u00010\r8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bH\u0010IR\u0016\u0010N\u001a\u00020K8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\bL\u0010MR\u0018\u00106\u001a\u0004\u0018\u00010)8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bO\u0010PR\u0016\u0010T\u001a\u00020Q8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\bR\u0010SR\u0018\u0010V\u001a\u0004\u0018\u00010\r8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bU\u0010IR\"\u0010\\\u001a\u0010\u0012\f\u0012\n Y*\u0004\u0018\u00010X0X0W8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bZ\u0010[R\"\u0010^\u001a\u0010\u0012\f\u0012\n Y*\u0004\u0018\u00010\r0\r0W8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b]\u0010[¨\u0006`"}, d2 = {"Lcom/canhub/cropper/CropImageActivity;", "Landroidx/appcompat/app/d;", "Lcom/canhub/cropper/CropImageView$j;", "Lcom/canhub/cropper/CropImageView$f;", "<init>", "()V", "LSh/J;", "q0", "Lcom/canhub/cropper/CropImageActivity$b;", "source", "i0", "(Lcom/canhub/cropper/CropImageActivity$b;)V", "h0", "Landroid/net/Uri;", "f0", "()Landroid/net/Uri;", "Landroid/os/Bundle;", "savedInstanceState", "onCreate", "(Landroid/os/Bundle;)V", "Lkotlin/Function1;", "openSource", "o0", "(Lgi/l;)V", "onStart", "onStop", "outState", "onSaveInstanceState", "Landroid/view/Menu;", "menu", "", "onCreateOptionsMenu", "(Landroid/view/Menu;)Z", "Landroid/view/MenuItem;", "item", "onOptionsItemSelected", "(Landroid/view/MenuItem;)Z", "onBackPressed", "resultUri", "g0", "(Landroid/net/Uri;)V", "Lcom/canhub/cropper/CropImageView;", "view", "uri", "Ljava/lang/Exception;", "Lkotlin/Exception;", LogEvent.LEVEL_ERROR, "x", "(Lcom/canhub/cropper/CropImageView;Landroid/net/Uri;Ljava/lang/Exception;)V", "Lcom/canhub/cropper/CropImageView$c;", "result", "m", "(Lcom/canhub/cropper/CropImageView;Lcom/canhub/cropper/CropImageView$c;)V", "d0", "cropImageView", "l0", "(Lcom/canhub/cropper/CropImageView;)V", "", "degrees", "k0", "(I)V", "sampleSize", "m0", "(Landroid/net/Uri;Ljava/lang/Exception;I)V", "n0", "Landroid/content/Intent;", "e0", "(Landroid/net/Uri;Ljava/lang/Exception;I)Landroid/content/Intent;", "itemId", "color", "s0", "(Landroid/view/Menu;II)V", "a", "Landroid/net/Uri;", "cropImageUri", "LN2/l;", "b", "LN2/l;", "cropImageOptions", "c", "Lcom/canhub/cropper/CropImageView;", "LP2/a;", "d", "LP2/a;", "binding", "e", "latestTmpUri", "Lf/c;", "", "kotlin.jvm.PlatformType", "f", "Lf/c;", "pickImageGallery", "o", "takePicture", "p", "cropper_release"}, k = 1, mv = {1, 7, 1}, xi = 48)
public class CropImageActivity extends androidx.appcompat.app.d implements CropImageView.j, CropImageView.f {
private static final a f13048p = new a(null);
private Uri cropImageUri;
private l cropImageOptions;
private CropImageView cropImageView;
private P2.a binding;
private Uri latestTmpUri;
private final AbstractC1142c pickImageGallery;
private final AbstractC1142c takePicture;
private static final class a {
public a(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private a() {
}
}
public enum b {
CAMERA,
GALLERY
}
public class c {
public static final int[] f13059a;
static {
int[] iArr = new int[b.values().length];
iArr[b.CAMERA.ordinal()] = 1;
iArr[b.GALLERY.ordinal()] = 2;
f13059a = iArr;
}
}
class d extends o implements gi.l {
d(Object obj) {
super(1, obj, CropImageActivity.class, "openSource", "openSource(Lcom/canhub/cropper/CropImageActivity$Source;)V", 0);
}
public final void a(b bVar) {
r.f(bVar, "p0");
((CropImageActivity) ((kotlin.jvm.internal.e) this).receiver).i0(bVar);
}
public Object invoke(Object obj) {
a((b) obj);
return J.a;
}
}
public static final class e implements k.b {
e() {
}
@Override
public void a(Uri uri) {
CropImageActivity.this.g0(uri);
}
@Override
public void b() {
CropImageActivity.this.n0();
}
}
public CropImageActivity() {
AbstractC1142c registerForActivityResult = registerForActivityResult(new C1172b(), new InterfaceC1141b() {
@Override
public final void a(Object obj) {
CropImageActivity.j0(CropImageActivity.this, (Uri) obj);
}
});
r.e(registerForActivityResult, "registerForActivityResul…mageResult(uri)\n }");
this.pickImageGallery = registerForActivityResult;
AbstractC1142c registerForActivityResult2 = registerForActivityResult(new g.k(), new InterfaceC1141b() {
@Override
public final void a(Object obj) {
CropImageActivity.r0(CropImageActivity.this, (Boolean) obj);
}
});
r.e(registerForActivityResult2, "registerForActivityResul…ckImageResult(null)\n }");
this.takePicture = registerForActivityResult2;
}
private final Uri f0() {
File createTempFile = File.createTempFile("tmp_image_file", ".png", getCacheDir());
createTempFile.createNewFile();
createTempFile.deleteOnExit();
r.e(createTempFile, "tmpFile");
return Q2.c.a(this, createTempFile);
}
private final void h0() {
Uri f02 = f0();
this.latestTmpUri = f02;
this.takePicture.b(f02);
}
public final void i0(b source) {
int i7 = c.f13059a[source.ordinal()];
if (i7 == 1) {
h0();
} else {
if (i7 != 2) {
return;
}
this.pickImageGallery.b("image/*");
}
}
public static final void j0(CropImageActivity cropImageActivity, Uri uri) {
r.f(cropImageActivity, "this$0");
cropImageActivity.g0(uri);
}
public static final void p0(gi.l lVar, DialogInterface dialogInterface, int i7) {
r.f(lVar, "$openSource");
lVar.invoke(i7 == 0 ? b.CAMERA : b.GALLERY);
}
private final void q0() {
k kVar = new k(this, new e());
l lVar = this.cropImageOptions;
if (lVar == null) {
r.t("cropImageOptions");
lVar = null;
}
String str = lVar.f3310o0;
if (str != null) {
if (Aj.o.x(str)) {
str = null;
}
if (str != null) {
kVar.g(str);
}
}
List list = lVar.f3312p0;
if (list != null) {
if (list.isEmpty()) {
list = null;
}
if (list != null) {
kVar.h(list);
}
}
kVar.i(lVar.f3291b, lVar.f3289a, lVar.f3291b ? f0() : null);
}
public static final void r0(CropImageActivity cropImageActivity, Boolean bool) {
r.f(cropImageActivity, "this$0");
r.e(bool, "it");
cropImageActivity.g0(bool.booleanValue() ? cropImageActivity.latestTmpUri : null);
}
public void d0() {
l lVar = this.cropImageOptions;
l lVar2 = null;
if (lVar == null) {
r.t("cropImageOptions");
lVar = null;
}
if (lVar.f3292b0) {
m0(null, null, 1);
return;
}
CropImageView cropImageView = this.cropImageView;
if (cropImageView != null) {
l lVar3 = this.cropImageOptions;
if (lVar3 == null) {
r.t("cropImageOptions");
lVar3 = null;
}
Bitmap.CompressFormat compressFormat = lVar3.f3285W;
l lVar4 = this.cropImageOptions;
if (lVar4 == null) {
r.t("cropImageOptions");
lVar4 = null;
}
int i7 = lVar4.f3286X;
l lVar5 = this.cropImageOptions;
if (lVar5 == null) {
r.t("cropImageOptions");
lVar5 = null;
}
int i8 = lVar5.f3287Y;
l lVar6 = this.cropImageOptions;
if (lVar6 == null) {
r.t("cropImageOptions");
lVar6 = null;
}
int i9 = lVar6.f3288Z;
l lVar7 = this.cropImageOptions;
if (lVar7 == null) {
r.t("cropImageOptions");
lVar7 = null;
}
CropImageView.k kVar = lVar7.f3290a0;
l lVar8 = this.cropImageOptions;
if (lVar8 == null) {
r.t("cropImageOptions");
} else {
lVar2 = lVar8;
}
cropImageView.d(compressFormat, i7, i8, i9, kVar, lVar2.f3284V);
}
}
public Intent e0(Uri uri, Exception error, int sampleSize) {
CropImageView cropImageView = this.cropImageView;
Uri imageUri = cropImageView != null ? cropImageView.getImageUri() : null;
CropImageView cropImageView2 = this.cropImageView;
float[] cropPoints = cropImageView2 != null ? cropImageView2.getCropPoints() : null;
CropImageView cropImageView3 = this.cropImageView;
Rect cropRect = cropImageView3 != null ? cropImageView3.getCropRect() : null;
CropImageView cropImageView4 = this.cropImageView;
int mDegreesRotated = cropImageView4 != null ? cropImageView4.getMDegreesRotated() : 0;
CropImageView cropImageView5 = this.cropImageView;
N2.e eVar = new N2.e(imageUri, uri, error, cropPoints, cropRect, mDegreesRotated, cropImageView5 != null ? cropImageView5.getWholeImageRect() : null, sampleSize);
Intent intent = new Intent();
intent.putExtras(getIntent());
intent.putExtra("CROP_IMAGE_EXTRA_RESULT", eVar);
return intent;
}
protected void g0(Uri resultUri) {
if (resultUri == null) {
n0();
return;
}
this.cropImageUri = resultUri;
CropImageView cropImageView = this.cropImageView;
if (cropImageView != null) {
cropImageView.setImageUriAsync(resultUri);
}
}
public void k0(int degrees) {
CropImageView cropImageView = this.cropImageView;
if (cropImageView != null) {
cropImageView.l(degrees);
}
}
public void l0(CropImageView cropImageView) {
r.f(cropImageView, "cropImageView");
this.cropImageView = cropImageView;
}
@Override
public void m(CropImageView view, CropImageView.c result) {
r.f(view, "view");
r.f(result, "result");
m0(result.j(), result.c(), result.g());
}
public void m0(Uri uri, Exception error, int sampleSize) {
setResult(error != null ? 204 : -1, e0(uri, error, sampleSize));
finish();
}
public void n0() {
setResult(0);
finish();
}
public void o0(final gi.l openSource) {
r.f(openSource, "openSource");
new DialogInterfaceC0646c.a(this).b(false).l(t.f3372c).e(new String[]{getString(t.f3371b), getString(t.f3373d)}, new DialogInterface.OnClickListener() {
@Override
public final void onClick(DialogInterface dialogInterface, int i7) {
CropImageActivity.p0(openSource, dialogInterface, i7);
}
}).m();
}
@Override
public void onBackPressed() {
super.onBackPressed();
n0();
}
@Override
public void onCreate(Bundle savedInstanceState) {
Uri uri;
CharSequence string;
super.onCreate(savedInstanceState);
P2.a c7 = P2.a.c(getLayoutInflater());
r.e(c7, "inflate(layoutInflater)");
this.binding = c7;
l lVar = null;
if (c7 == null) {
r.t("binding");
c7 = null;
}
setContentView(c7.b());
P2.a aVar = this.binding;
if (aVar == null) {
r.t("binding");
aVar = null;
}
CropImageView cropImageView = aVar.f3821b;
r.e(cropImageView, "binding.cropImageView");
l0(cropImageView);
Bundle bundleExtra = getIntent().getBundleExtra("CROP_IMAGE_EXTRA_BUNDLE");
this.cropImageUri = bundleExtra != null ? (Uri) bundleExtra.getParcelable("CROP_IMAGE_EXTRA_SOURCE") : null;
l lVar2 = bundleExtra != null ? (l) bundleExtra.getParcelable("CROP_IMAGE_EXTRA_OPTIONS") : null;
if (lVar2 == null) {
lVar2 = new l();
}
this.cropImageOptions = lVar2;
if (savedInstanceState == null) {
Uri uri2 = this.cropImageUri;
if (uri2 == null || r.b(uri2, Uri.EMPTY)) {
l lVar3 = this.cropImageOptions;
if (lVar3 == null) {
r.t("cropImageOptions");
lVar3 = null;
}
if (lVar3.f3308n0) {
q0();
} else {
l lVar4 = this.cropImageOptions;
if (lVar4 == null) {
r.t("cropImageOptions");
lVar4 = null;
}
if (lVar4.f3289a) {
l lVar5 = this.cropImageOptions;
if (lVar5 == null) {
r.t("cropImageOptions");
lVar5 = null;
}
if (lVar5.f3291b) {
o0(new d(this));
}
}
l lVar6 = this.cropImageOptions;
if (lVar6 == null) {
r.t("cropImageOptions");
lVar6 = null;
}
if (lVar6.f3289a) {
this.pickImageGallery.b("image/*");
} else {
l lVar7 = this.cropImageOptions;
if (lVar7 == null) {
r.t("cropImageOptions");
lVar7 = null;
}
if (lVar7.f3291b) {
h0();
} else {
finish();
}
}
}
} else {
CropImageView cropImageView2 = this.cropImageView;
if (cropImageView2 != null) {
cropImageView2.setImageUriAsync(this.cropImageUri);
}
}
} else {
String string2 = savedInstanceState.getString("bundle_key_tmp_uri");
if (string2 != null) {
uri = Uri.parse(string2);
r.e(uri, "parse(this)");
} else {
uri = null;
}
this.latestTmpUri = uri;
}
AbstractC0644a supportActionBar = getSupportActionBar();
if (supportActionBar != null) {
l lVar8 = this.cropImageOptions;
if (lVar8 == null) {
r.t("cropImageOptions");
lVar8 = null;
}
if (lVar8.f3282T.length() > 0) {
l lVar9 = this.cropImageOptions;
if (lVar9 == null) {
r.t("cropImageOptions");
} else {
lVar = lVar9;
}
string = lVar.f3282T;
} else {
string = getResources().getString(t.f3370a);
}
setTitle(string);
supportActionBar.s(true);
}
}
@Override
public boolean onCreateOptionsMenu(android.view.Menu r9) {
throw new UnsupportedOperationException("Method not decompiled: com.canhub.cropper.CropImageActivity.onCreateOptionsMenu(android.view.Menu):boolean");
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
r.f(item, "item");
int itemId = item.getItemId();
if (itemId == q.f3361d) {
d0();
return true;
}
l lVar = null;
if (itemId == q.f3365h) {
l lVar2 = this.cropImageOptions;
if (lVar2 == null) {
r.t("cropImageOptions");
} else {
lVar = lVar2;
}
k0(-lVar.f3302h0);
return true;
}
if (itemId == q.f3366i) {
l lVar3 = this.cropImageOptions;
if (lVar3 == null) {
r.t("cropImageOptions");
} else {
lVar = lVar3;
}
k0(lVar.f3302h0);
return true;
}
if (itemId == q.f3363f) {
CropImageView cropImageView = this.cropImageView;
if (cropImageView == null) {
return true;
}
cropImageView.e();
return true;
}
if (itemId != q.f3364g) {
if (itemId != 16908332) {
return super.onOptionsItemSelected(item);
}
n0();
return true;
}
CropImageView cropImageView2 = this.cropImageView;
if (cropImageView2 == null) {
return true;
}
cropImageView2.f();
return true;
}
@Override
protected void onSaveInstanceState(Bundle outState) {
r.f(outState, "outState");
super.onSaveInstanceState(outState);
outState.putString("bundle_key_tmp_uri", String.valueOf(this.latestTmpUri));
}
@Override
public void onStart() {
super.onStart();
CropImageView cropImageView = this.cropImageView;
if (cropImageView != null) {
cropImageView.setOnSetImageUriCompleteListener(this);
}
CropImageView cropImageView2 = this.cropImageView;
if (cropImageView2 != null) {
cropImageView2.setOnCropImageCompleteListener(this);
}
}
@Override
public void onStop() {
super.onStop();
CropImageView cropImageView = this.cropImageView;
if (cropImageView != null) {
cropImageView.setOnSetImageUriCompleteListener(null);
}
CropImageView cropImageView2 = this.cropImageView;
if (cropImageView2 != null) {
cropImageView2.setOnCropImageCompleteListener(null);
}
}
public void s0(Menu menu, int itemId, int color) {
Drawable icon;
r.f(menu, "menu");
MenuItem findItem = menu.findItem(itemId);
if (findItem == null || (icon = findItem.getIcon()) == null) {
return;
}
try {
icon.mutate();
icon.setColorFilter(androidx.core.graphics.a.a(color, androidx.core.graphics.b.SRC_ATOP));
findItem.setIcon(icon);
} catch (Exception e7) {
Log.w("AIC", "Failed to update menu item color", e7);
}
}
@Override
public void x(CropImageView view, Uri uri, Exception error) {
CropImageView cropImageView;
CropImageView cropImageView2;
r.f(view, "view");
r.f(uri, "uri");
l lVar = null;
if (error != null) {
m0(null, error, 1);
return;
}
l lVar2 = this.cropImageOptions;
if (lVar2 == null) {
r.t("cropImageOptions");
lVar2 = null;
}
if (lVar2.f3294c0 != null && (cropImageView2 = this.cropImageView) != null) {
l lVar3 = this.cropImageOptions;
if (lVar3 == null) {
r.t("cropImageOptions");
lVar3 = null;
}
cropImageView2.setCropRect(lVar3.f3294c0);
}
l lVar4 = this.cropImageOptions;
if (lVar4 == null) {
r.t("cropImageOptions");
lVar4 = null;
}
if (lVar4.f3296d0 > 0 && (cropImageView = this.cropImageView) != null) {
l lVar5 = this.cropImageOptions;
if (lVar5 == null) {
r.t("cropImageOptions");
lVar5 = null;
}
cropImageView.setRotatedDegrees(lVar5.f3296d0);
}
l lVar6 = this.cropImageOptions;
if (lVar6 == null) {
r.t("cropImageOptions");
} else {
lVar = lVar6;
}
if (lVar.f3307m0) {
d0();
}
}
}