Pdf Converter v5.0版本的 MD5 值为:258149214e8277c73fa6b365aba312ef
以下内容为反编译后的 NewMainScreen.java 源代码,内容仅作参考
package com.ca.pdf.editor.converter.tools.newUi;
import android.animation.ObjectAnimator;
import android.animation.TimeInterpolator;
import android.app.Activity;
import android.app.Dialog;
import android.content.ActivityNotFoundException;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.os.RemoteException;
import android.preference.PreferenceManager;
import android.provider.MediaStore;
import android.util.DisplayMetrics;
import android.util.Log;
import android.view.Display;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.MimeTypeMap;
import android.widget.Button;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.core.content.FileProvider;
import com.ca.pdf.editor.converter.tools.NewSubSactivity;
import com.ca.pdf.editor.converter.tools.R;
import com.ca.pdf.editor.converter.tools.newUi.NewMainScreen;
import com.ca.pdf.editor.converter.tools.newUi.NewUploadingScreen;
import com.google.android.gms.ads.AdView;
import com.google.android.gms.internal.ads.b30;
import com.google.android.gms.internal.ads.cu;
import com.google.android.gms.internal.ads.hs2;
import com.google.android.gms.internal.ads.i30;
import com.google.android.gms.internal.ads.lk;
import com.google.android.gms.internal.ads.mt;
import com.google.android.gms.internal.ads.ug;
import com.google.android.gms.internal.ads.wl;
import com.google.android.material.bottomnavigation.BottomNavigationView;
import com.google.android.material.tabs.TabLayout;
import d4.e;
import d4.q;
import d4.s;
import d4.z;
import d7.f1;
import d7.k1;
import d7.t;
import dd.p;
import e4.k;
import e7.y;
import ed.j;
import f.g;
import h4.o;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Locale;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.atomic.AtomicBoolean;
import ke.b;
import kotlinx.coroutines.internal.l;
import l4.b4;
import l4.c3;
import l4.d3;
import l4.e3;
import l4.e4;
import l4.g3;
import l4.k0;
import l4.n;
import l4.t2;
import l4.v3;
import l4.w2;
import l4.w3;
import l4.x1;
import l4.x3;
import l4.y3;
import ld.m;
import md.e1;
import md.i0;
import md.x;
import md.x0;
import n5.e;
import n5.f;
import okhttp3.HttpUrl;
import pub.devrel.easypermissions.a;
import s.f2;
import s.h0;
import s.m1;
import system.security.Dialogue;
import tc.i;
import u5.p2;
import u5.q2;
import u5.r;
import u5.r2;
import u5.s2;
import w8.e;
import yc.h;
public final class NewMainScreen extends g implements b.a, i4.b {
public static final int f3737q0 = 0;
public e P;
public s R;
public q S;
public z T;
public final ExecutorService V;
public t3.c W;
public ArrayList<j4.c> X;
public k Y;
public List<String> Z;
public boolean f3738a0;
public FrameLayout f3739b0;
public Dialog f3740c0;
public File f3741d0;
public File f3742e0;
public kotlinx.coroutines.internal.d f3743f0;
public final String[] f3744g0;
public m4.g f3745h0;
public String[] f3746i0;
public String f3747j0;
public String f3748k0;
public final androidx.activity.result.e f3749l0;
public final androidx.activity.result.e f3750m0;
public boolean f3751n0;
public f1 f3752o0;
public final AtomicBoolean f3753p0;
public final String O = "NewMainScreenTag";
public final tc.g Q = new tc.g(new a());
public final Handler U = new Handler(Looper.getMainLooper());
public static final class a extends j implements dd.a<NewMainScreen> {
public a() {
super(0);
}
@Override
public final NewMainScreen invoke() {
return NewMainScreen.this;
}
}
@yc.e(c = "com.ca.pdf.editor.converter.tools.newUi.NewMainScreen$onBackPressed$1", f = "NewMainScreen.kt", l = {1154}, m = "invokeSuspend")
public static final class b extends h implements p<x, wc.d<? super i>, Object> {
public int f3755v;
public b(wc.d<? super b> dVar) {
super(dVar);
}
@Override
public final wc.d<i> a(Object obj, wc.d<?> dVar) {
return new b(dVar);
}
@Override
public final Object b(x xVar, wc.d<? super i> dVar) {
return ((b) a(xVar, dVar)).f(i.f25483a);
}
@Override
public final Object f(Object obj) {
xc.a aVar = xc.a.COROUTINE_SUSPENDED;
int i10 = this.f3755v;
if (i10 == 0) {
ug.c(obj);
this.f3755v = 1;
if (NewMainScreen.V(NewMainScreen.this, this) == aVar) {
return aVar;
}
} else if (i10 != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
} else {
ug.c(obj);
}
return i.f25483a;
}
}
@yc.e(c = "com.ca.pdf.editor.converter.tools.newUi.NewMainScreen$onRecyclerItemClick$1", f = "NewMainScreen.kt", l = {2678}, m = "invokeSuspend")
public static final class c extends h implements p<x, wc.d<? super i>, Object> {
public int f3757v;
public final File f3759x;
@yc.e(c = "com.ca.pdf.editor.converter.tools.newUi.NewMainScreen$onRecyclerItemClick$1$2", f = "NewMainScreen.kt", l = {}, m = "invokeSuspend")
public static final class a extends h implements p<x, wc.d<? super i>, Object> {
public final NewMainScreen f3760v;
public static final class C0053a<T> implements Comparator {
@Override
public final int compare(T t10, T t11) {
return mt.j(Long.valueOf(((j4.c) t11).f19388f), Long.valueOf(((j4.c) t10).f19388f));
}
}
public a(NewMainScreen newMainScreen, wc.d<? super a> dVar) {
super(dVar);
this.f3760v = newMainScreen;
}
@Override
public final wc.d<i> a(Object obj, wc.d<?> dVar) {
return new a(this.f3760v, dVar);
}
@Override
public final Object b(x xVar, wc.d<? super i> dVar) {
return ((a) a(xVar, dVar)).f(i.f25483a);
}
@Override
public final Object f(Object obj) {
xc.a aVar = xc.a.COROUTINE_SUSPENDED;
ug.c(obj);
NewMainScreen newMainScreen = this.f3760v;
ArrayList<j4.c> arrayList = newMainScreen.X;
if (arrayList == null) {
ed.i.l("filesList");
throw null;
}
uc.j.t(arrayList, new C0053a());
k kVar = newMainScreen.Y;
if (kVar == null) {
ed.i.l("adapter");
throw null;
}
ArrayList<j4.c> arrayList2 = newMainScreen.X;
if (arrayList2 == null) {
ed.i.l("filesList");
throw null;
}
kVar.h(arrayList2);
q qVar = newMainScreen.S;
if (qVar == null) {
ed.i.l("convertedLayoutRootBinding");
throw null;
}
LinearLayout linearLayout = qVar.f16204b;
ed.i.e("convertedLayoutRootBinding.containerBack", linearLayout);
linearLayout.setVisibility(0);
return i.f25483a;
}
}
public c(File file, wc.d<? super c> dVar) {
super(dVar);
this.f3759x = file;
}
@Override
public final wc.d<i> a(Object obj, wc.d<?> dVar) {
return new c(this.f3759x, dVar);
}
@Override
public final Object b(x xVar, wc.d<? super i> dVar) {
return ((c) a(xVar, dVar)).f(i.f25483a);
}
@Override
public final Object f(Object obj) {
xc.a aVar = xc.a.COROUTINE_SUSPENDED;
int i10 = this.f3757v;
if (i10 == 0) {
ug.c(obj);
NewMainScreen newMainScreen = NewMainScreen.this;
File file = this.f3759x;
newMainScreen.f3741d0 = file;
ArrayList<j4.c> arrayList = newMainScreen.X;
if (arrayList == null) {
ed.i.l("filesList");
throw null;
}
arrayList.clear();
File[] listFiles = file.listFiles();
if (listFiles != null) {
for (File file2 : listFiles) {
ArrayList<j4.c> arrayList2 = newMainScreen.X;
if (arrayList2 == null) {
ed.i.l("filesList");
throw null;
}
String name = file2.getName();
ed.i.e("it.name", name);
String d10 = h4.p.d(file2);
String L = cd.c.L(file2);
String absolutePath = file2.getAbsolutePath();
ed.i.e("it.absolutePath", absolutePath);
arrayList2.add(0, new j4.c(name, d10, L, absolutePath, h4.p.b(cd.c.L(file2)), file2.lastModified(), file2.isDirectory()));
}
}
kotlinx.coroutines.scheduling.c cVar = i0.f22027a;
e1 e1Var = l.f20071a;
a aVar2 = new a(newMainScreen, null);
this.f3757v = 1;
if (y.A(e1Var, aVar2, this) == aVar) {
return aVar;
}
} else if (i10 != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
} else {
ug.c(obj);
}
return i.f25483a;
}
}
public static final class d extends j implements dd.l<com.google.android.material.bottomsheet.b, i> {
public final ArrayList<j4.c> f3761r;
public final int f3762s;
public final NewMainScreen f3763t;
public d(int i10, NewMainScreen newMainScreen, ArrayList arrayList) {
super(1);
this.f3761r = arrayList;
this.f3762s = i10;
this.f3763t = newMainScreen;
}
@Override
public final i invoke(com.google.android.material.bottomsheet.b bVar) {
RelativeLayout relativeLayout;
RelativeLayout relativeLayout2;
d dVar;
RelativeLayout relativeLayout3;
final com.google.android.material.bottomsheet.b bVar2;
RelativeLayout relativeLayout4;
RelativeLayout relativeLayout5;
RelativeLayout relativeLayout6;
RelativeLayout relativeLayout7;
final NewMainScreen newMainScreen;
RelativeLayout relativeLayout8;
com.google.android.material.bottomsheet.b bVar3 = bVar;
ed.i.f("$this$createSheet", bVar3);
TextView textView = (TextView) bVar3.findViewById(R.id.filename);
TextView textView2 = (TextView) bVar3.findViewById(R.id.filetype);
TextView textView3 = (TextView) bVar3.findViewById(R.id.file_size);
ImageView imageView = (ImageView) bVar3.findViewById(R.id.file_Image);
ImageView imageView2 = (ImageView) bVar3.findViewById(R.id.cancel);
RelativeLayout relativeLayout9 = (RelativeLayout) bVar3.findViewById(R.id.btnConvert);
RelativeLayout relativeLayout10 = (RelativeLayout) bVar3.findViewById(R.id.btnUnzip);
RelativeLayout relativeLayout11 = (RelativeLayout) bVar3.findViewById(R.id.btnShare);
RelativeLayout relativeLayout12 = (RelativeLayout) bVar3.findViewById(R.id.btnRename);
RelativeLayout relativeLayout13 = (RelativeLayout) bVar3.findViewById(R.id.btnSplitPdf);
RelativeLayout relativeLayout14 = (RelativeLayout) bVar3.findViewById(R.id.btnMergePdf);
RelativeLayout relativeLayout15 = (RelativeLayout) bVar3.findViewById(R.id.btnWatermarkPdf);
RelativeLayout relativeLayout16 = (RelativeLayout) bVar3.findViewById(R.id.btnLockPdf);
RelativeLayout relativeLayout17 = (RelativeLayout) bVar3.findViewById(R.id.btnRotatePdf);
RelativeLayout relativeLayout18 = (RelativeLayout) bVar3.findViewById(R.id.btnDelete);
RelativeLayout relativeLayout19 = (RelativeLayout) bVar3.findViewById(R.id.btnGotoPath);
final ArrayList<j4.c> arrayList = this.f3761r;
final int i10 = this.f3762s;
final String str = arrayList.get(i10).f19385c;
if (textView == null) {
relativeLayout = relativeLayout12;
} else {
relativeLayout = relativeLayout12;
textView.setText(arrayList.get(i10).f19383a);
}
if (textView2 != null) {
textView2.setText(str);
}
if (textView3 != null) {
textView3.setText(arrayList.get(i10).f19384b);
}
if (imageView != null) {
imageView.setImageResource(h4.p.b(str));
}
int hashCode = str.hashCode();
if (hashCode != 0) {
if (hashCode != 110834) {
if (hashCode == 120609 && str.equals("zip")) {
if (relativeLayout10 != null) {
relativeLayout10.setVisibility(0);
}
if (relativeLayout9 != null) {
relativeLayout9.setVisibility(8);
}
}
} else if (str.equals("pdf")) {
if (relativeLayout13 != null) {
relativeLayout13.setVisibility(0);
}
if (relativeLayout14 != null) {
relativeLayout14.setVisibility(0);
}
if (relativeLayout15 != null) {
relativeLayout15.setVisibility(0);
}
if (relativeLayout16 != null) {
relativeLayout16.setVisibility(0);
}
if (relativeLayout17 != null) {
relativeLayout17.setVisibility(0);
}
}
} else if (str.equals(HttpUrl.FRAGMENT_ENCODE_SET)) {
if (relativeLayout13 != null) {
relativeLayout13.setVisibility(8);
}
if (relativeLayout14 != null) {
relativeLayout14.setVisibility(8);
}
if (relativeLayout15 != null) {
relativeLayout15.setVisibility(8);
}
if (relativeLayout16 != null) {
relativeLayout16.setVisibility(8);
}
if (relativeLayout17 != null) {
relativeLayout17.setVisibility(8);
}
if (relativeLayout10 != null) {
relativeLayout10.setVisibility(8);
}
if (relativeLayout9 != null) {
relativeLayout9.setVisibility(8);
}
if (relativeLayout11 != null) {
relativeLayout11.setVisibility(8);
}
if (relativeLayout != null) {
relativeLayout2 = relativeLayout;
relativeLayout2.setVisibility(8);
dVar = this;
NewMainScreen newMainScreen2 = dVar.f3763t;
if (relativeLayout19 == null) {
relativeLayout3 = relativeLayout15;
bVar2 = bVar3;
relativeLayout19.setOnClickListener(new n(2, newMainScreen2, bVar2));
} else {
relativeLayout3 = relativeLayout15;
bVar2 = bVar3;
}
if (relativeLayout9 == null) {
final NewMainScreen newMainScreen3 = dVar.f3763t;
final ArrayList<j4.c> arrayList2 = dVar.f3761r;
final int i11 = dVar.f3762s;
relativeLayout7 = relativeLayout14;
relativeLayout6 = relativeLayout13;
newMainScreen = newMainScreen2;
relativeLayout4 = relativeLayout17;
relativeLayout5 = relativeLayout16;
final com.google.android.material.bottomsheet.b bVar4 = bVar2;
relativeLayout9.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
NewMainScreen newMainScreen4 = NewMainScreen.this;
ed.i.f("this$0", newMainScreen4);
ArrayList arrayList3 = arrayList2;
ed.i.f("$list", arrayList3);
String str2 = str;
ed.i.f("$fileExtension", str2);
com.google.android.material.bottomsheet.b bVar5 = bVar4;
ed.i.f("$this_createSheet", bVar5);
int i12 = NewMainScreen.f3737q0;
NewMainScreen.o0(i11, arrayList3);
a0.a.D = ed.i.a(str2, "pdf") ? "pdfToOther" : "convertFromOther";
int hashCode2 = str2.hashCode();
String[] strArr = a0.a.L;
String[] strArr2 = a0.a.K;
String[] strArr3 = a0.a.P;
String[] strArr4 = a0.a.H;
switch (hashCode2) {
case 99640:
if (str2.equals("doc")) {
a0.a.E = strArr4;
break;
}
break;
case 105441:
if (str2.equals("jpg")) {
a0.a.E = strArr3;
break;
}
break;
case 110834:
if (str2.equals("pdf")) {
a0.a.E = a0.a.I;
break;
}
break;
case 111145:
if (str2.equals("png")) {
a0.a.E = a0.a.O;
break;
}
break;
case 111220:
if (str2.equals("ppt")) {
a0.a.E = strArr2;
break;
}
break;
case 115312:
if (str2.equals("txt")) {
a0.a.E = a0.a.N;
break;
}
break;
case 118783:
if (str2.equals("xls")) {
a0.a.E = strArr;
break;
}
break;
case 120609:
if (str2.equals("zip")) {
a0.a.E = a0.a.J;
break;
}
break;
case 3088960:
if (str2.equals("docx")) {
a0.a.E = strArr4;
break;
}
break;
case 3213227:
if (str2.equals("html")) {
a0.a.E = a0.a.M;
break;
}
break;
case 3268712:
if (str2.equals("jpeg")) {
a0.a.E = strArr3;
break;
}
break;
case 3447940:
if (str2.equals("pptx")) {
a0.a.E = strArr2;
break;
}
break;
case 3559925:
if (str2.equals("tiff")) {
a0.a.E = a0.a.Q;
break;
}
break;
case 3682393:
if (str2.equals("xlsx")) {
a0.a.E = strArr;
break;
}
break;
}
h4.o.j(newMainScreen4, NewUploadingScreen.class, HttpUrl.FRAGMENT_ENCODE_SET, 0);
bVar5.dismiss();
}
});
} else {
relativeLayout4 = relativeLayout17;
relativeLayout5 = relativeLayout16;
relativeLayout6 = relativeLayout13;
relativeLayout7 = relativeLayout14;
newMainScreen = newMainScreen2;
}
if (relativeLayout10 != null) {
relativeLayout10.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
NewMainScreen newMainScreen4 = newMainScreen;
ed.i.f("this$0", newMainScreen4);
ArrayList arrayList3 = arrayList;
ed.i.f("$list", arrayList3);
com.google.android.material.bottomsheet.b bVar5 = bVar2;
ed.i.f("$this_createSheet", bVar5);
int i12 = NewMainScreen.f3737q0;
h4.o.q(new File(((j4.c) arrayList3.get(i10)).f19386d), new c4(newMainScreen4));
bVar5.dismiss();
}
});
}
if (relativeLayout11 != null) {
relativeLayout11.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
com.google.android.material.bottomsheet.b bVar5 = bVar2;
ed.i.f("$this_createSheet", bVar5);
ArrayList arrayList3 = arrayList;
ed.i.f("$list", arrayList3);
NewMainScreen newMainScreen4 = newMainScreen;
ed.i.f("this$0", newMainScreen4);
bVar5.dismiss();
h4.p.f(newMainScreen4, ((j4.c) arrayList3.get(i10)).f19386d);
}
});
}
if (relativeLayout18 != null) {
relativeLayout18.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
com.google.android.material.bottomsheet.b bVar5 = bVar2;
ed.i.f("$this_createSheet", bVar5);
NewMainScreen newMainScreen4 = newMainScreen;
ed.i.f("this$0", newMainScreen4);
ArrayList arrayList3 = arrayList;
ed.i.f("$list", arrayList3);
bVar5.dismiss();
int i12 = NewMainScreen.f3737q0;
h4.o.e(newMainScreen4, R.layout.delete_file_dialog, false, false, new a3(i10, newMainScreen4, arrayList3));
}
});
}
if (relativeLayout2 != null) {
relativeLayout2.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
NewMainScreen newMainScreen4 = newMainScreen;
ed.i.f("this$0", newMainScreen4);
ArrayList arrayList3 = arrayList;
ed.i.f("$list", arrayList3);
com.google.android.material.bottomsheet.b bVar5 = bVar2;
ed.i.f("$this_createSheet", bVar5);
int i12 = NewMainScreen.f3737q0;
h4.o.f(newMainScreen4, R.layout.rename_dialog, false, new u3(i10, newMainScreen4, arrayList3), 4);
bVar5.dismiss();
}
});
}
relativeLayout8 = relativeLayout4;
if (relativeLayout8 != null) {
relativeLayout8.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
NewMainScreen newMainScreen4 = newMainScreen;
ed.i.f("this$0", newMainScreen4);
ArrayList arrayList3 = arrayList;
ed.i.f("$list", arrayList3);
com.google.android.material.bottomsheet.b bVar5 = bVar2;
ed.i.f("$this_createSheet", bVar5);
int i12 = NewMainScreen.f3737q0;
NewMainScreen.o0(i10, arrayList3);
a0.a.D = null;
a0.a.C = "rotatepdf";
a0.a.B = "RotatedPdf";
h4.o.j(newMainScreen4, NewUploadingScreen.class, HttpUrl.FRAGMENT_ENCODE_SET, 0);
bVar5.dismiss();
}
});
}
if (relativeLayout6 != null) {
relativeLayout6.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
NewMainScreen newMainScreen4 = newMainScreen;
ed.i.f("this$0", newMainScreen4);
ArrayList arrayList3 = arrayList;
ed.i.f("$list", arrayList3);
com.google.android.material.bottomsheet.b bVar5 = bVar2;
ed.i.f("$this_createSheet", bVar5);
int i12 = NewMainScreen.f3737q0;
NewMainScreen.o0(i10, arrayList3);
a0.a.D = null;
a0.a.C = "splitpdf";
a0.a.B = "SplitPdf";
h4.o.j(newMainScreen4, NewUploadingScreen.class, HttpUrl.FRAGMENT_ENCODE_SET, 0);
bVar5.dismiss();
}
});
}
if (relativeLayout5 != null) {
relativeLayout5.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
NewMainScreen newMainScreen4 = newMainScreen;
ed.i.f("this$0", newMainScreen4);
ArrayList arrayList3 = arrayList;
ed.i.f("$list", arrayList3);
com.google.android.material.bottomsheet.b bVar5 = bVar2;
ed.i.f("$this_createSheet", bVar5);
int i12 = NewMainScreen.f3737q0;
NewMainScreen.o0(i10, arrayList3);
a0.a.D = null;
a0.a.C = "lockpdf";
a0.a.B = "LockedPdfs";
h4.o.j(newMainScreen4, NewUploadingScreen.class, HttpUrl.FRAGMENT_ENCODE_SET, 0);
bVar5.dismiss();
}
});
}
if (relativeLayout7 != null) {
relativeLayout7.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
NewMainScreen newMainScreen4 = newMainScreen;
ed.i.f("this$0", newMainScreen4);
ArrayList arrayList3 = arrayList;
ed.i.f("$list", arrayList3);
com.google.android.material.bottomsheet.b bVar5 = bVar2;
ed.i.f("$this_createSheet", bVar5);
int i12 = NewMainScreen.f3737q0;
NewMainScreen.o0(i10, arrayList3);
a0.a.D = null;
a0.a.C = "mergepdf";
a0.a.E = a0.a.I;
a0.a.B = "MergedPdf";
h4.o.j(newMainScreen4, NewUploadingScreen.class, HttpUrl.FRAGMENT_ENCODE_SET, 0);
bVar5.dismiss();
}
});
}
if (relativeLayout3 != null) {
relativeLayout3.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
NewMainScreen newMainScreen4 = newMainScreen;
ed.i.f("this$0", newMainScreen4);
ArrayList arrayList3 = arrayList;
ed.i.f("$list", arrayList3);
com.google.android.material.bottomsheet.b bVar5 = bVar2;
ed.i.f("$this_createSheet", bVar5);
int i12 = NewMainScreen.f3737q0;
NewMainScreen.o0(i10, arrayList3);
a0.a.D = null;
a0.a.C = "addwm";
a0.a.B = "WatermarkedPdf";
h4.o.j(newMainScreen4, NewUploadingScreen.class, HttpUrl.FRAGMENT_ENCODE_SET, 0);
bVar5.dismiss();
}
});
}
if (imageView2 != null) {
imageView2.setOnClickListener(new h4.s(bVar2, 1));
}
return i.f25483a;
}
}
dVar = this;
relativeLayout2 = relativeLayout;
NewMainScreen newMainScreen22 = dVar.f3763t;
if (relativeLayout19 == null) {
}
if (relativeLayout9 == null) {
}
if (relativeLayout10 != null) {
}
if (relativeLayout11 != null) {
}
if (relativeLayout18 != null) {
}
if (relativeLayout2 != null) {
}
relativeLayout8 = relativeLayout4;
if (relativeLayout8 != null) {
}
if (relativeLayout6 != null) {
}
if (relativeLayout5 != null) {
}
if (relativeLayout7 != null) {
}
if (relativeLayout3 != null) {
}
if (imageView2 != null) {
}
return i.f25483a;
}
}
public NewMainScreen() {
ExecutorService newCachedThreadPool = Executors.newCachedThreadPool();
ed.i.e("newCachedThreadPool()", newCachedThreadPool);
this.V = newCachedThreadPool;
this.f3738a0 = true;
int i10 = Build.VERSION.SDK_INT;
this.f3744g0 = i10 >= 33 ? new String[]{"android.permission.READ_MEDIA_IMAGES", "android.permission.CAMERA"} : i10 >= 29 ? new String[]{"android.permission.READ_EXTERNAL_STORAGE", "android.permission.CAMERA"} : new String[]{"android.permission.WRITE_EXTERNAL_STORAGE", "android.permission.READ_EXTERNAL_STORAGE", "android.permission.CAMERA"};
this.f3746i0 = new String[]{HttpUrl.FRAGMENT_ENCODE_SET};
this.f3747j0 = HttpUrl.FRAGMENT_ENCODE_SET;
this.f3748k0 = HttpUrl.FRAGMENT_ENCODE_SET;
this.f3749l0 = Q(new w2(this), new e.d());
this.f3750m0 = Q(new f2(this), new e.d());
this.f3753p0 = new AtomicBoolean(false);
}
public static final Object V(NewMainScreen newMainScreen, wc.d dVar) {
ArrayList<j4.c> arrayList = newMainScreen.X;
if (arrayList == null) {
ed.i.l("filesList");
throw null;
}
arrayList.clear();
File file = newMainScreen.f3741d0;
if (file == null) {
return i.f25483a;
}
Log.d(newMainScreen.O, "fetchAllFiles: " + file);
File[] listFiles = file.listFiles();
if (listFiles != null) {
for (File file2 : listFiles) {
ArrayList<j4.c> arrayList2 = newMainScreen.X;
if (arrayList2 == null) {
ed.i.l("filesList");
throw null;
}
String name = file2.getName();
ed.i.e("it.name", name);
String d10 = h4.p.d(file2);
String L = cd.c.L(file2);
String absolutePath = file2.getAbsolutePath();
ed.i.e("it.absolutePath", absolutePath);
arrayList2.add(0, new j4.c(name, d10, L, absolutePath, h4.p.b(cd.c.L(file2)), file2.lastModified(), file2.isDirectory()));
}
}
String path = file.getPath();
File file3 = newMainScreen.f3741d0;
if (!path.equals(file3 != null ? file3.getPath() : null)) {
newMainScreen.f3741d0 = file;
}
kotlinx.coroutines.scheduling.c cVar = i0.f22027a;
Object A = y.A(l.f20071a, new d3(newMainScreen, null), dVar);
return A == xc.a.COROUTINE_SUSPENDED ? A : i.f25483a;
}
public static final void c0(LinkedHashMap linkedHashMap, String str, ArrayList arrayList, File file) {
File[] listFiles = file.listFiles();
if (listFiles != null) {
for (File file2 : listFiles) {
ed.i.e("file", file2);
String lowerCase = cd.c.L(file2).toLowerCase(Locale.ROOT);
ed.i.e("this as java.lang.String).toLowerCase(Locale.ROOT)", lowerCase);
boolean z10 = true;
if (file2.isDirectory()) {
List list = (List) linkedHashMap.get(str);
if ((list == null || !list.contains(HttpUrl.FRAGMENT_ENCODE_SET)) ? false : false) {
String name = file2.getName();
ed.i.e("file.name", name);
String absolutePath = file2.getAbsolutePath();
ed.i.e("file.absolutePath", absolutePath);
arrayList.add(new j4.c(name, HttpUrl.FRAGMENT_ENCODE_SET, HttpUrl.FRAGMENT_ENCODE_SET, absolutePath, h4.p.b(HttpUrl.FRAGMENT_ENCODE_SET), file2.lastModified(), true));
}
c0(linkedHashMap, str, arrayList, file2);
} else {
List list2 = (List) linkedHashMap.get(str);
if ((list2 == null || !list2.contains(lowerCase)) ? false : false) {
String name2 = file2.getName();
ed.i.e("file.name", name2);
String d10 = h4.p.d(file2);
String absolutePath2 = file2.getAbsolutePath();
ed.i.e("file.absolutePath", absolutePath2);
arrayList.add(new j4.c(name2, d10, lowerCase, absolutePath2, h4.p.b(lowerCase), file2.lastModified(), false));
}
}
}
}
}
public static void o0(int i10, ArrayList arrayList) {
ArrayList<File> arrayList2 = k4.e.f19831w;
if (!arrayList2.isEmpty()) {
arrayList2.clear();
}
arrayList2.add(new File(((j4.c) arrayList.get(i10)).f19386d));
}
@Override
public final void D(int i10, ArrayList<j4.c> arrayList) {
ed.i.f("list", arrayList);
File file = new File(arrayList.get(i10).f19386d);
String concat = "onRecyclerItemClick: ".concat(cd.c.L(file));
String str = this.O;
Log.d(str, concat);
Log.d(str, "path: " + file.getPath());
Log.d(str, "absolutePath: " + file.getName());
if (ed.i.a(cd.c.L(file), "pdf")) {
Intent intent = new Intent(this, PdfViewActivity.class);
intent.putExtra("PATH_OF_FILE", Uri.fromFile(file).toString());
intent.putExtra(k4.c.f19806f, file.getName());
startActivity(intent);
} else if (ed.i.a(cd.c.L(file), "zip")) {
h0(i10, arrayList);
} else {
if (file.isDirectory()) {
q qVar = this.S;
if (qVar == null) {
ed.i.l("convertedLayoutRootBinding");
throw null;
}
qVar.f16207e.setVisibility(8);
kotlinx.coroutines.internal.d dVar = this.f3743f0;
if (dVar == null) {
ed.i.l("customScope");
throw null;
}
y.t(dVar, null, new c(file, null), 3);
} else {
Uri b10 = FileProvider.a(this, "com.ca.pdf.editor.converter.tools.fileprovider").b(file);
String absolutePath = file.getAbsolutePath();
String fileExtensionFromUrl = MimeTypeMap.getFileExtensionFromUrl(absolutePath);
String mimeTypeFromExtension = fileExtensionFromUrl != null ? MimeTypeMap.getSingleton().getMimeTypeFromExtension(fileExtensionFromUrl) : null;
if (mimeTypeFromExtension == null) {
ed.i.c(absolutePath);
String substring = absolutePath.substring(m.e0(absolutePath, ".", 6) + 1);
ed.i.e("this as java.lang.String).substring(startIndex)", substring);
mimeTypeFromExtension = ".".concat(substring);
}
Intent intent2 = new Intent("android.intent.action.VIEW");
intent2.setDataAndType(b10, mimeTypeFromExtension);
intent2.addFlags(1);
List<ResolveInfo> queryIntentActivities = getPackageManager().queryIntentActivities(intent2, 0);
ed.i.e("packageManager.queryIntentActivities(intent, 0)", queryIntentActivities);
if (!queryIntentActivities.isEmpty()) {
intent2.addFlags(268435456);
startActivity(intent2);
k4.c.f19802b = false;
} else {
String string = getResources().getString(R.string.no_application_to_open_file);
ed.i.e("this.resources.getString…application_to_open_file)", string);
o.n(string, this);
}
}
}
SharedPreferences defaultSharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);
ed.i.e("getDefaultSharedPreferences(context)", defaultSharedPreferences);
defaultSharedPreferences.edit().remove("LatestFile").apply();
}
@Override
public final void I(ArrayList arrayList) {
Log.d("myPermission", "allow next working");
}
public final boolean W() {
boolean z10;
if (Build.VERSION.SDK_INT >= 23) {
String[] strArr = this.f3744g0;
int length = strArr.length;
int i10 = 0;
while (true) {
if (i10 >= length) {
z10 = true;
break;
}
if (x0.a.a(d0(), strArr[i10]) != 0) {
z10 = false;
break;
}
i10++;
}
if (z10) {
return true;
}
v0.a.d(this, strArr, 1122);
return false;
}
return true;
}
public final void X(String[] strArr, String str, boolean z10, String str2) {
ed.i.f("<set-?>", strArr);
a0.a.E = strArr;
ed.i.f("<set-?>", str);
a0.a.C = str;
String[] strArr2 = a0.a.E;
k4.c.f19802b = false;
if (W()) {
if (!z10) {
i0(str2, strArr2);
return;
}
e3 e3Var = new e3(this, str2, strArr2);
if (!k4.a.a()) {
e3Var.a();
return;
}
this.f3738a0 = false;
k4.a.c(this, new y3(this, e3Var));
}
}
public final File Y(String str) {
if (str == null) {
return null;
}
String valueOf = String.valueOf(System.currentTimeMillis());
File file = new File(String.valueOf(getExternalCacheDir()));
try {
return File.createTempFile("File_" + valueOf, ".".concat(str), file);
} catch (IOException e10) {
e10.printStackTrace();
return null;
}
}
public final void Z(Dialog dialog) {
try {
if (dialog.isShowing()) {
dialog.dismiss();
}
} catch (Exception unused) {
Log.d(this.O, "showBackDialog: ");
}
}
public final void a0(ConstraintLayout constraintLayout) {
TimeInterpolator timeInterpolator = new TimeInterpolator() {
@Override
public final float getInterpolation(float f10) {
int i10 = NewMainScreen.f3737q0;
ed.i.f("this$0", NewMainScreen.this);
double d10 = 1;
return (float) (d10 - Math.pow(d10 - f10, 3.0d));
}
};
ObjectAnimator ofFloat = ObjectAnimator.ofFloat(constraintLayout, "translationY", 0.0f, 25.0f, 0.0f);
ofFloat.setInterpolator(timeInterpolator);
ofFloat.setStartDelay(200L);
ofFloat.setDuration(1600L);
ofFloat.setRepeatCount(10000);
ofFloat.start();
}
public final void b0(String str, boolean z10) {
m4.n.d(this, this.f3748k0);
X(this.f3746i0, this.f3747j0, z10, str);
}
public final NewMainScreen d0() {
return (NewMainScreen) this.Q.getValue();
}
public final void e0() {
this.U.post(new m1.d(2, this));
}
public final void f0() {
if (this.f3753p0.getAndSet(true)) {
return;
}
s2 b10 = s2.b();
synchronized (b10.f25787a) {
if (b10.f25789c) {
return;
}
if (b10.f25790d) {
return;
}
b10.f25789c = true;
synchronized (b10.f25791e) {
try {
b10.a(this);
b10.f25792f.G0(new r2(b10));
b10.f25792f.S0(new cu());
b10.f25793g.getClass();
b10.f25793g.getClass();
} catch (RemoteException e10) {
i30.h("MobileAdsSettingManager initialization failed", e10);
}
lk.a(this);
if (((Boolean) wl.f12679a.d()).booleanValue()) {
if (((Boolean) r.f25780d.f25783c.a(lk.J8)).booleanValue()) {
i30.b("Initializing on bg thread");
b30.f4372a.execute(new p2(b10, this));
}
}
if (((Boolean) wl.f12680b.d()).booleanValue()) {
if (((Boolean) r.f25780d.f25783c.a(lk.J8)).booleanValue()) {
b30.f4373b.execute(new q2(b10, this));
}
}
i30.b("Initializing on calling thread");
b10.d(this);
}
}
}
public final void g0() {
d9.a.f("0");
e eVar = this.P;
if (eVar == null) {
ed.i.l("mainBinding");
throw null;
}
RelativeLayout relativeLayout = eVar.f16046d;
ed.i.e("mainBinding.bannerAdRl", relativeLayout);
dd.a<i> aVar = o.f18870a;
relativeLayout.setVisibility(0);
e eVar2 = this.P;
if (eVar2 == null) {
ed.i.l("mainBinding");
throw null;
}
ImageView imageView = eVar2.f16045c;
ed.i.e("mainBinding.bannerAdRemoveImg", imageView);
imageView.setVisibility(0);
e eVar3 = this.P;
if (eVar3 == null) {
ed.i.l("mainBinding");
throw null;
}
View view = eVar3.f16043a;
ed.i.e("mainBinding.CrossImgView", view);
view.setVisibility(0);
s sVar = this.R;
if (sVar == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar.f16217h.setVisibility(0);
q qVar = this.S;
if (qVar == null) {
ed.i.l("convertedLayoutRootBinding");
throw null;
}
qVar.f16206d.setVisibility(0);
FrameLayout frameLayout = this.f3739b0;
if (frameLayout != null) {
frameLayout.setVisibility(0);
}
z zVar = this.T;
if (zVar == null) {
ed.i.l("moreLayoutRootBinding");
throw null;
}
zVar.f16264c.setVisibility(0);
k4.a.b();
e eVar4 = this.P;
if (eVar4 == null) {
ed.i.l("mainBinding");
throw null;
}
eVar4.f16044b.setVisibility(0);
AdView adView = new AdView(this);
if (d9.a.c("bannerAdIdShift")) {
adView.setAdUnitId("ca-app-pub-3005749278400559/8824299932");
} else {
adView.setAdUnitId("ca-app-pub-3005749278400559/4557751864");
}
d9.a.e("bannerAdIdShift", !d9.a.c("bannerAdIdShift"));
e eVar5 = this.P;
if (eVar5 == null) {
ed.i.l("mainBinding");
throw null;
}
eVar5.f16044b.removeAllViews();
e eVar6 = this.P;
if (eVar6 == null) {
ed.i.l("mainBinding");
throw null;
}
eVar6.f16044b.addView(adView);
Display defaultDisplay = getWindowManager().getDefaultDisplay();
DisplayMetrics displayMetrics = new DisplayMetrics();
defaultDisplay.getMetrics(displayMetrics);
float f10 = displayMetrics.density;
e eVar7 = this.P;
if (eVar7 == null) {
ed.i.l("mainBinding");
throw null;
}
float width = eVar7.f16044b.getWidth();
if (width == 0.0f) {
width = displayMetrics.widthPixels;
}
adView.setAdSize(f.a(this, (int) (width / f10)));
adView.a(new n5.e(new e.a()));
if (b4.c.f3079d == null) {
b4.c.f3079d = new b4.c();
}
b4.c cVar = b4.c.f3079d;
if (cVar != null) {
cVar.f3081b = this;
}
FrameLayout frameLayout2 = this.f3739b0;
if (frameLayout2 != null) {
frameLayout2.setVisibility(0);
String str = d9.a.c("bannerAdIdShift") ? "ca-app-pub-3005749278400559/7934597047" : "ca-app-pub-3005749278400559/7002068918";
d9.a.e("bannerAdIdShift", !d9.a.c("bannerAdIdShift"));
if (b4.c.f3079d == null) {
b4.c.f3079d = new b4.c();
}
b4.c cVar2 = b4.c.f3079d;
if (cVar2 != null) {
LayoutInflater layoutInflater = getLayoutInflater();
ed.i.e("layoutInflater", layoutInflater);
cVar2.b(frameLayout2, layoutInflater, R.layout.native_ad_layout, str);
}
}
}
public final void h0(int i10, ArrayList<j4.c> arrayList) {
d dVar = new d(i10, this, arrayList);
dd.a<i> aVar = o.f18870a;
com.google.android.material.bottomsheet.b bVar = new com.google.android.material.bottomsheet.b(this);
bVar.setContentView(R.layout.item_dialog_layout);
dVar.invoke(bVar);
bVar.setCancelable(false);
bVar.create();
bVar.show();
}
public final void i0(String str, String[] strArr) {
Intent intent = new Intent();
if (m.W(strArr[0], "image")) {
if (Build.VERSION.SDK_INT == 29) {
intent.setAction("android.intent.action.OPEN_DOCUMENT");
} else {
intent.setAction("android.intent.action.PICK");
}
intent.setDataAndType(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, "image/*");
} else {
intent.setType("*/*");
intent.setAction("android.intent.action.GET_CONTENT");
}
List<String> list = this.Z;
if (list == null) {
ed.i.l("actionList");
throw null;
}
if (!list.contains(a0.a.C) && ed.i.a(str, "multiSelection")) {
intent.putExtra("android.intent.extra.ALLOW_MULTIPLE", true);
}
intent.putExtra("android.intent.extra.MIME_TYPES", strArr);
if (intent.resolveActivity(getPackageManager()) != null) {
this.f3750m0.l(intent);
return;
}
String string = getString(R.string.something_went_wrong);
ed.i.e("getString(R.string.something_went_wrong)", string);
m4.n.e(this, string);
}
public final void k0() {
Object systemService = getSystemService("connectivity");
ed.i.d("null cannot be cast to non-null type android.net.ConnectivityManager", systemService);
NetworkInfo activeNetworkInfo = ((ConnectivityManager) systemService).getActiveNetworkInfo();
if (activeNetworkInfo != null && activeNetworkInfo.isConnected()) {
o.j(this, NewSubSactivity.class, HttpUrl.FRAGMENT_ENCODE_SET, 0);
return;
}
String string = getString(R.string.nointer_toast);
ed.i.e("getString(R.string.nointer_toast)", string);
o.n(string, this);
}
public final void l0() {
d9.a.f("1");
s sVar = this.R;
if (sVar == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar.f16217h.setVisibility(8);
q qVar = this.S;
if (qVar == null) {
ed.i.l("convertedLayoutRootBinding");
throw null;
}
qVar.f16206d.setVisibility(8);
d4.e eVar = this.P;
if (eVar == null) {
ed.i.l("mainBinding");
throw null;
}
RelativeLayout relativeLayout = eVar.f16046d;
ed.i.e("mainBinding.bannerAdRl", relativeLayout);
o.h(relativeLayout);
d4.e eVar2 = this.P;
if (eVar2 == null) {
ed.i.l("mainBinding");
throw null;
}
View view = eVar2.f16043a;
ed.i.e("mainBinding.CrossImgView", view);
o.h(view);
d4.e eVar3 = this.P;
if (eVar3 == null) {
ed.i.l("mainBinding");
throw null;
}
ImageView imageView = eVar3.f16045c;
ed.i.e("mainBinding.bannerAdRemoveImg", imageView);
o.h(imageView);
FrameLayout frameLayout = this.f3739b0;
if (frameLayout != null) {
frameLayout.setVisibility(8);
}
z zVar = this.T;
if (zVar != null) {
zVar.f16264c.setVisibility(8);
} else {
ed.i.l("moreLayoutRootBinding");
throw null;
}
}
public final void m0(boolean z10, String[] strArr) {
k4.c.f19802b = false;
if (!z10) {
a0.a.E = strArr;
a0.a.C = "scan";
startActivity(new Intent(this, CameraXActivity.class));
return;
}
v3 v3Var = new v3(this, strArr);
if (!k4.a.a()) {
v3Var.a();
return;
}
this.f3738a0 = false;
k4.a.c(this, new y3(this, v3Var));
}
@Override
public final void n(int i10, ArrayList<j4.c> arrayList) {
ed.i.f("list", arrayList);
h0(i10, arrayList);
}
public final void n0() {
if (Build.VERSION.SDK_INT >= 23) {
d4.e eVar = this.P;
if (eVar != null) {
androidx.transition.i.a(eVar.f16051i, null);
} else {
ed.i.l("mainBinding");
throw null;
}
}
}
@Override
public final void onBackPressed() {
File file = this.f3741d0;
String path = file != null ? file.getPath() : null;
File file2 = this.f3742e0;
if (ed.i.a(path, file2 != null ? file2.getPath() : null)) {
d4.e eVar = this.P;
if (eVar == null) {
ed.i.l("mainBinding");
throw null;
} else if (eVar.f16047e.getVisibility() == 0) {
d4.e eVar2 = this.P;
if (eVar2 == null) {
ed.i.l("mainBinding");
throw null;
}
eVar2.f16054l.setSelectedItemId(R.id.action_item1);
} else {
d4.e eVar3 = this.P;
if (eVar3 == null) {
ed.i.l("mainBinding");
throw null;
} else if (eVar3.f16053k.getVisibility() == 0) {
d4.e eVar4 = this.P;
if (eVar4 == null) {
ed.i.l("mainBinding");
throw null;
}
eVar4.f16054l.setSelectedItemId(R.id.action_item1);
} else {
final Dialog dialog = this.f3740c0;
if (dialog != null) {
Button button = (Button) dialog.findViewById(R.id.btnCancel);
Button button2 = (Button) dialog.findViewById(R.id.btnExit);
Button button3 = (Button) dialog.findViewById(R.id.btnRateUS);
try {
if (!dialog.isShowing() && !isFinishing()) {
dialog.show();
}
} catch (Exception e10) {
Log.d(this.O, "showBackDialog: " + e10.getMessage());
}
button2.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
int i10 = NewMainScreen.f3737q0;
NewMainScreen newMainScreen = NewMainScreen.this;
ed.i.f("this$0", newMainScreen);
Dialog dialog2 = dialog;
ed.i.f("$dialog", dialog2);
newMainScreen.Z(dialog2);
newMainScreen.finish();
}
});
button.setOnClickListener(new x1(this, dialog, 0));
button3.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
int i10 = NewMainScreen.f3737q0;
NewMainScreen newMainScreen = NewMainScreen.this;
ed.i.f("this$0", newMainScreen);
Dialog dialog2 = dialog;
ed.i.f("$dialog", dialog2);
m4.l.b(newMainScreen);
newMainScreen.Z(dialog2);
}
});
}
}
}
} else {
File file3 = this.f3741d0;
this.f3741d0 = file3 != null ? file3.getParentFile() : null;
kotlinx.coroutines.internal.d dVar = this.f3743f0;
if (dVar == null) {
ed.i.l("customScope");
throw null;
}
y.t(dVar, null, new b(null), 3);
}
File file4 = this.f3741d0;
if (file4 != null) {
if (!ed.i.a(file4, this.f3742e0)) {
q qVar = this.S;
if (qVar == null) {
ed.i.l("convertedLayoutRootBinding");
throw null;
}
LinearLayout linearLayout = qVar.f16204b;
ed.i.e("convertedLayoutRootBinding.containerBack", linearLayout);
linearLayout.setVisibility(0);
i iVar = i.f25483a;
return;
}
q qVar2 = this.S;
if (qVar2 == null) {
ed.i.l("convertedLayoutRootBinding");
throw null;
}
TabLayout tabLayout = qVar2.f16207e;
tabLayout.l(tabLayout.h(0), true);
q qVar3 = this.S;
if (qVar3 == null) {
ed.i.l("convertedLayoutRootBinding");
throw null;
}
LinearLayout linearLayout2 = qVar3.f16204b;
ed.i.e("convertedLayoutRootBinding.containerBack", linearLayout2);
linearLayout2.setVisibility(8);
tabLayout.setVisibility(0);
}
}
@Override
public final void onCreate(Bundle bundle) {
super.onCreate(bundle);
View inflate = getLayoutInflater().inflate(R.layout.activity_new_main_screen, (ViewGroup) null, false);
int i10 = R.id.CrossImgView;
View e10 = ba.j.e(R.id.CrossImgView, inflate);
if (e10 != null) {
i10 = R.id.adLayout;
FrameLayout frameLayout = (FrameLayout) ba.j.e(R.id.adLayout, inflate);
if (frameLayout != null) {
i10 = R.id.bannerAdRemoveImg;
ImageView imageView = (ImageView) ba.j.e(R.id.bannerAdRemoveImg, inflate);
if (imageView != null) {
i10 = R.id.bannerAdRl;
RelativeLayout relativeLayout = (RelativeLayout) ba.j.e(R.id.bannerAdRl, inflate);
if (relativeLayout != null) {
i10 = R.id.convertRoot;
ConstraintLayout constraintLayout = (ConstraintLayout) ba.j.e(R.id.convertRoot, inflate);
if (constraintLayout != null) {
i10 = R.id.convertedLayout;
View e11 = ba.j.e(R.id.convertedLayout, inflate);
if (e11 != null) {
q a10 = q.a(e11);
i10 = R.id.homeLayout;
View e12 = ba.j.e(R.id.homeLayout, inflate);
if (e12 != null) {
s a11 = s.a(e12);
i10 = R.id.homeRoot;
ConstraintLayout constraintLayout2 = (ConstraintLayout) ba.j.e(R.id.homeRoot, inflate);
if (constraintLayout2 != null) {
ConstraintLayout constraintLayout3 = (ConstraintLayout) inflate;
View e13 = ba.j.e(R.id.moreLayoutRoot, inflate);
if (e13 != null) {
z a12 = z.a(e13);
ConstraintLayout constraintLayout4 = (ConstraintLayout) ba.j.e(R.id.moreRoot, inflate);
if (constraintLayout4 != null) {
BottomNavigationView bottomNavigationView = (BottomNavigationView) ba.j.e(R.id.navigation, inflate);
if (bottomNavigationView == null) {
i10 = R.id.navigation;
} else if (((TextView) ba.j.e(R.id.textView9, inflate)) != null) {
this.P = new d4.e(constraintLayout3, e10, frameLayout, imageView, relativeLayout, constraintLayout, a10, a11, constraintLayout2, constraintLayout3, a12, constraintLayout4, bottomNavigationView);
setContentView(constraintLayout3);
e.a aVar = new e.a();
aVar.f27333a = false;
final w8.e eVar = new w8.e(aVar);
f1 b10 = t.a(this).b();
this.f3752o0 = b10;
if (b10 != null) {
final f9.a aVar2 = new f9.a(this);
final androidx.appcompat.widget.a aVar3 = new androidx.appcompat.widget.a();
synchronized (b10.f16337c) {
b10.f16338d = true;
}
final k1 k1Var = b10.f16336b;
k1Var.getClass();
k1Var.f16374c.execute(new Runnable() {
@Override
public final void run() {
Activity activity = this;
w8.e eVar2 = eVar;
w8.c cVar = aVar2;
w8.b bVar = aVar3;
k1 k1Var2 = k1.this;
i iVar = k1Var2.f16375d;
Handler handler = k1Var2.f16373b;
try {
eVar2.getClass();
String a13 = d0.a(k1Var2.f16372a);
Log.i("UserMessagingPlatform", "Use new ConsentDebugSettings.Builder().addTestDeviceHashedId(\"" + a13 + "\") to set this as a debug device.");
b a14 = new m1(k1Var2.f16378g, k1Var2.a(k1Var2.f16377f.a(activity, eVar2))).a();
iVar.f16357b.edit().putInt("consent_status", a14.f16308a).apply();
iVar.f16357b.edit().putString("privacy_options_requirement_status", a14.f16309b.name()).apply();
n nVar = k1Var2.f16376e;
nVar.f16412c.set(a14.f16310c);
k1Var2.f16379h.f16324a.execute(new i1(k1Var2, cVar, a14));
} catch (e1 e14) {
handler.post(new hs2(1, bVar, e14));
} catch (RuntimeException e15) {
handler.post(new p(bVar, new e1(1, "Caught exception when trying to request consent info update: ".concat(String.valueOf(Log.getStackTraceString(e15)))), 1));
}
}
});
}
f1 f1Var = this.f3752o0;
Boolean valueOf = f1Var != null ? Boolean.valueOf(f1Var.a()) : null;
ed.i.c(valueOf);
if (valueOf.booleanValue()) {
f0();
}
this.f3745h0 = new m4.g(this);
d4.e eVar2 = this.P;
if (eVar2 == null) {
ed.i.l("mainBinding");
throw null;
}
this.R = s.a(eVar2.f16049g.f16210a);
d4.e eVar3 = this.P;
if (eVar3 == null) {
ed.i.l("mainBinding");
throw null;
}
this.S = q.a(eVar3.f16048f.f16203a);
d4.e eVar4 = this.P;
if (eVar4 == null) {
ed.i.l("mainBinding");
throw null;
}
this.T = z.a(eVar4.f16052j.f16262a);
NewMainScreen d02 = d0();
ed.i.f("context", d02);
SharedPreferences defaultSharedPreferences = PreferenceManager.getDefaultSharedPreferences(d02);
ed.i.e("getDefaultSharedPreferences(context)", defaultSharedPreferences);
if (!defaultSharedPreferences.getBoolean("FontsUnzipFilePath", false)) {
m4.b.a("Font/fonts.zip", d0(), new c3(this), null);
}
ArrayList<j4.c> arrayList = new ArrayList<>();
this.X = arrayList;
k kVar = new k(arrayList, this);
this.Y = kVar;
q qVar = this.S;
if (qVar == null) {
ed.i.l("convertedLayoutRootBinding");
throw null;
}
qVar.f16205c.setAdapter(kVar);
this.Z = androidx.lifecycle.n.f("htp", "htd", "rotatepdf", "delblankpage", "compress", "delpage", "addpagenum", "splitpdf", "imageToText", "addwm", "addtoc", "addlink");
g3 g3Var = new g3(this);
dd.a<i> aVar4 = o.f18870a;
Dialog dialog = new Dialog(this);
dialog.setContentView(R.layout.app_exit_dialog);
g3Var.invoke(dialog);
dialog.setCancelable(false);
dialog.create();
this.f3740c0 = dialog;
File file = new File(m4.n.a(this, true), "PdfConverterNew");
this.f3742e0 = file;
this.f3741d0 = file;
this.f3743f0 = ba.b.a(i0.f22028b);
this.W = new t3.c(this);
d4.e eVar5 = this.P;
if (eVar5 == null) {
ed.i.l("mainBinding");
throw null;
}
eVar5.f16054l.setOnItemSelectedListener(new m1(this));
s sVar = this.R;
if (sVar == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar.f16211b.f16175e.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20350s;
{
this.f20350s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20350s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
ArrayList<File> arrayList2 = k4.e.f19831w;
if (!arrayList2.isEmpty()) {
arrayList2.clear();
}
File[] listFiles = new File(newMainScreen.getExternalCacheDir(), "pdf-converters").listFiles(new r2());
if (listFiles != null) {
for (File file2 : listFiles) {
file2.delete();
}
}
a0.a.B = "SCAN_IMAGE_TO_PDF";
a0.a.A = null;
m4.n.d(newMainScreen, "CAMERA_X_OPENED");
a0.a.T = "ImageToPdfClicked";
if (newMainScreen.W()) {
boolean z10 = p4.c.f23837a;
boolean h10 = p4.c.h();
String[] strArr = a0.a.G;
if (h10 || !d9.a.d()) {
newMainScreen.m0(false, strArr);
return;
} else {
newMainScreen.m0(true, strArr);
return;
}
}
return;
default:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.pdf_to_image);
ed.i.e("getString(R.string.pdf_to_image)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "PdfToImage";
a0.a.A = null;
a0.a.T = "PdfToImageClicked";
newMainScreen.f3748k0 = "PDFtImage_clicked";
newMainScreen.f3746i0 = a0.a.I;
newMainScreen.f3747j0 = "ptj";
return;
}
}
});
s sVar2 = this.R;
if (sVar2 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar2.f16211b.f16171a.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20495s;
{
this.f20495s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20495s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.image_to_pdf);
ed.i.e("getString(R.string.image_to_pdf)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "ImageToPdf";
a0.a.A = null;
newMainScreen.f3746i0 = a0.a.F;
newMainScreen.f3748k0 = "ImagetPDF_clicked";
newMainScreen.f3747j0 = "jtp";
return;
default:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
a0.a.B = "UnlockedPdfs";
a0.a.A = null;
m4.n.d(newMainScreen, "UnlockPdf_clicked");
if (newMainScreen.f3738a0) {
boolean z10 = p4.c.f23837a;
boolean h10 = p4.c.h();
String[] strArr = a0.a.I;
if (h10) {
newMainScreen.X(strArr, "unlockpdf", false, HttpUrl.FRAGMENT_ENCODE_SET);
return;
} else {
newMainScreen.X(strArr, "unlockpdf", true, HttpUrl.FRAGMENT_ENCODE_SET);
return;
}
}
return;
}
}
});
s sVar3 = this.R;
if (sVar3 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar3.f16211b.f16172b.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20676s;
{
this.f20676s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20676s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.n.d(newMainScreen, "Premiumbtn_clicked");
newMainScreen.k0();
return;
default:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.pdf_to_word);
ed.i.e("getString(R.string.pdf_to_word)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "PdfToWord";
a0.a.A = null;
newMainScreen.f3748k0 = "PDFtDOC_clicked";
newMainScreen.f3746i0 = a0.a.I;
newMainScreen.f3747j0 = "ptd";
return;
}
}
});
s sVar4 = this.R;
if (sVar4 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar4.f16211b.f16176f.setOnClickListener(new a4.b(this, 1));
s sVar5 = this.R;
if (sVar5 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar5.f16211b.f16173c.setOnClickListener(new a4.c(this, 1));
s sVar6 = this.R;
if (sVar6 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar6.f16211b.f16174d.setOnClickListener(new a4.d(3, this));
s sVar7 = this.R;
if (sVar7 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar7.f16212c.f16177a.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20350s;
{
this.f20350s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20350s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
ArrayList<File> arrayList2 = k4.e.f19831w;
if (!arrayList2.isEmpty()) {
arrayList2.clear();
}
File[] listFiles = new File(newMainScreen.getExternalCacheDir(), "pdf-converters").listFiles(new r2());
if (listFiles != null) {
for (File file2 : listFiles) {
file2.delete();
}
}
a0.a.B = "SCAN_IMAGE_TO_PDF";
a0.a.A = null;
m4.n.d(newMainScreen, "CAMERA_X_OPENED");
a0.a.T = "ImageToPdfClicked";
if (newMainScreen.W()) {
boolean z10 = p4.c.f23837a;
boolean h10 = p4.c.h();
String[] strArr = a0.a.G;
if (h10 || !d9.a.d()) {
newMainScreen.m0(false, strArr);
return;
} else {
newMainScreen.m0(true, strArr);
return;
}
}
return;
default:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.pdf_to_image);
ed.i.e("getString(R.string.pdf_to_image)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "PdfToImage";
a0.a.A = null;
a0.a.T = "PdfToImageClicked";
newMainScreen.f3748k0 = "PDFtImage_clicked";
newMainScreen.f3746i0 = a0.a.I;
newMainScreen.f3747j0 = "ptj";
return;
}
}
});
s sVar8 = this.R;
if (sVar8 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar8.f16212c.f16179c.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20363s;
{
this.f20363s = this;
}
@Override
public final void onClick(View view) {
String[] strArr = a0.a.I;
int i11 = r2;
NewMainScreen newMainScreen = this.f20363s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.pdf_to_bmp);
ed.i.e("getString(R.string.pdf_to_bmp)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "PdfToBmp";
a0.a.A = "pdfToBmp";
newMainScreen.f3748k0 = "PDFtBMP_clicked";
newMainScreen.f3746i0 = strArr;
newMainScreen.f3747j0 = "ptj";
return;
default:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar3 = newMainScreen.f3745h0;
if (gVar3 == null) {
ed.i.l("batchFileCon");
throw null;
}
String string2 = newMainScreen.getString(R.string.pdf_to_html);
ed.i.e("getString(R.string.pdf_to_html)", string2);
gVar3.f21151u = string2;
if (newMainScreen.W()) {
m4.g gVar4 = newMainScreen.f3745h0;
if (gVar4 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar4.a();
}
a0.a.B = "PdfToHtml";
a0.a.A = null;
newMainScreen.f3748k0 = "PDFtHTML_clicked";
newMainScreen.f3746i0 = strArr;
newMainScreen.f3747j0 = "pth";
return;
}
}
});
s sVar9 = this.R;
if (sVar9 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar9.f16212c.f16181e.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20394s;
{
this.f20394s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20394s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.ppt_to_pdf);
ed.i.e("getString(R.string.ppt_to_pdf)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "PptToPdf";
a0.a.A = null;
newMainScreen.f3748k0 = "PPTtPDF_clicked";
newMainScreen.f3746i0 = a0.a.K;
newMainScreen.f3747j0 = "ptp";
return;
default:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar3 = newMainScreen.f3745h0;
if (gVar3 == null) {
ed.i.l("batchFileCon");
throw null;
}
String string2 = newMainScreen.getString(R.string.pdf_to_zip);
ed.i.e("getString(R.string.pdf_to_zip)", string2);
gVar3.f21151u = string2;
if (newMainScreen.W()) {
m4.g gVar4 = newMainScreen.f3745h0;
if (gVar4 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar4.a();
}
a0.a.B = "PdfToZip";
a0.a.A = null;
newMainScreen.f3748k0 = "PDFtZIP_clicked";
newMainScreen.f3746i0 = a0.a.I;
newMainScreen.f3747j0 = "zip";
return;
}
}
});
s sVar10 = this.R;
if (sVar10 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar10.f16212c.f16180d.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20408s;
{
this.f20408s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20408s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.excel_to_pdf);
ed.i.e("getString(R.string.excel_to_pdf)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "ExcelToPdf";
a0.a.A = null;
newMainScreen.f3748k0 = "XLCtPDF_clicked";
newMainScreen.f3746i0 = a0.a.L;
newMainScreen.f3747j0 = "etp";
return;
default:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar3 = newMainScreen.f3745h0;
if (gVar3 == null) {
ed.i.l("batchFileCon");
throw null;
}
String string2 = newMainScreen.getString(R.string.pdf_to_png);
ed.i.e("getString(R.string.pdf_to_png)", string2);
gVar3.f21151u = string2;
if (newMainScreen.W()) {
m4.g gVar4 = newMainScreen.f3745h0;
if (gVar4 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar4.a();
}
a0.a.B = "PdfToPng";
a0.a.A = null;
newMainScreen.f3748k0 = "PDFtPNG_clicked";
newMainScreen.f3746i0 = a0.a.I;
newMainScreen.f3747j0 = "ptj";
return;
}
}
});
s sVar11 = this.R;
if (sVar11 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar11.f16212c.f16178b.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20363s;
{
this.f20363s = this;
}
@Override
public final void onClick(View view) {
String[] strArr = a0.a.I;
int i11 = r2;
NewMainScreen newMainScreen = this.f20363s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.pdf_to_bmp);
ed.i.e("getString(R.string.pdf_to_bmp)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "PdfToBmp";
a0.a.A = "pdfToBmp";
newMainScreen.f3748k0 = "PDFtBMP_clicked";
newMainScreen.f3746i0 = strArr;
newMainScreen.f3747j0 = "ptj";
return;
default:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar3 = newMainScreen.f3745h0;
if (gVar3 == null) {
ed.i.l("batchFileCon");
throw null;
}
String string2 = newMainScreen.getString(R.string.pdf_to_html);
ed.i.e("getString(R.string.pdf_to_html)", string2);
gVar3.f21151u = string2;
if (newMainScreen.W()) {
m4.g gVar4 = newMainScreen.f3745h0;
if (gVar4 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar4.a();
}
a0.a.B = "PdfToHtml";
a0.a.A = null;
newMainScreen.f3748k0 = "PDFtHTML_clicked";
newMainScreen.f3746i0 = strArr;
newMainScreen.f3747j0 = "pth";
return;
}
}
});
s sVar12 = this.R;
if (sVar12 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar12.f16213d.f16186e.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20394s;
{
this.f20394s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20394s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.ppt_to_pdf);
ed.i.e("getString(R.string.ppt_to_pdf)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "PptToPdf";
a0.a.A = null;
newMainScreen.f3748k0 = "PPTtPDF_clicked";
newMainScreen.f3746i0 = a0.a.K;
newMainScreen.f3747j0 = "ptp";
return;
default:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar3 = newMainScreen.f3745h0;
if (gVar3 == null) {
ed.i.l("batchFileCon");
throw null;
}
String string2 = newMainScreen.getString(R.string.pdf_to_zip);
ed.i.e("getString(R.string.pdf_to_zip)", string2);
gVar3.f21151u = string2;
if (newMainScreen.W()) {
m4.g gVar4 = newMainScreen.f3745h0;
if (gVar4 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar4.a();
}
a0.a.B = "PdfToZip";
a0.a.A = null;
newMainScreen.f3748k0 = "PDFtZIP_clicked";
newMainScreen.f3746i0 = a0.a.I;
newMainScreen.f3747j0 = "zip";
return;
}
}
});
s sVar13 = this.R;
if (sVar13 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar13.f16213d.f16182a.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20408s;
{
this.f20408s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20408s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.excel_to_pdf);
ed.i.e("getString(R.string.excel_to_pdf)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "ExcelToPdf";
a0.a.A = null;
newMainScreen.f3748k0 = "XLCtPDF_clicked";
newMainScreen.f3746i0 = a0.a.L;
newMainScreen.f3747j0 = "etp";
return;
default:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar3 = newMainScreen.f3745h0;
if (gVar3 == null) {
ed.i.l("batchFileCon");
throw null;
}
String string2 = newMainScreen.getString(R.string.pdf_to_png);
ed.i.e("getString(R.string.pdf_to_png)", string2);
gVar3.f21151u = string2;
if (newMainScreen.W()) {
m4.g gVar4 = newMainScreen.f3745h0;
if (gVar4 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar4.a();
}
a0.a.B = "PdfToPng";
a0.a.A = null;
newMainScreen.f3748k0 = "PDFtPNG_clicked";
newMainScreen.f3746i0 = a0.a.I;
newMainScreen.f3747j0 = "ptj";
return;
}
}
});
s sVar14 = this.R;
if (sVar14 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar14.f16213d.f16183b.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20607s;
{
this.f20607s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20607s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.n.d(newMainScreen, "RemoveAdsbtn_clicked");
newMainScreen.k0();
return;
default:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.html_to_pdf);
ed.i.e("getString(R.string.html_to_pdf)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "HtmlToPdf";
a0.a.A = null;
newMainScreen.f3748k0 = "HTMLtPDF_clicked";
newMainScreen.f3746i0 = a0.a.M;
newMainScreen.f3747j0 = "htp";
return;
}
}
});
s sVar15 = this.R;
if (sVar15 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar15.f16213d.f16187f.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20376s;
{
this.f20376s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20376s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.n.d(newMainScreen, "RemoveAdsbtn_clicked");
newMainScreen.k0();
return;
default:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.text_to_pdf);
ed.i.e("getString(R.string.text_to_pdf)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "TextToPdf";
a0.a.A = null;
newMainScreen.f3748k0 = "TXTtPDF_clicked";
newMainScreen.f3746i0 = a0.a.N;
newMainScreen.f3747j0 = "ttp";
return;
}
}
});
s sVar16 = this.R;
if (sVar16 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar16.f16213d.f16184c.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20423s;
{
this.f20423s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20423s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.jpg_to_pdf);
ed.i.e("getString(R.string.jpg_to_pdf)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "JpgToPdf";
a0.a.A = null;
a0.a.T = "JpgToPdfClicked";
newMainScreen.f3748k0 = "JPGtPDF_clicked";
newMainScreen.f3746i0 = a0.a.P;
newMainScreen.f3747j0 = "jtp";
return;
default:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
a0.a.B = "LockedPdfs";
a0.a.A = null;
m4.n.d(newMainScreen, "LockPdf_clicked");
if (newMainScreen.f3738a0) {
boolean z10 = p4.c.f23837a;
boolean h10 = p4.c.h();
String[] strArr = a0.a.I;
if (h10) {
newMainScreen.X(strArr, "lockpdf", false, HttpUrl.FRAGMENT_ENCODE_SET);
return;
} else {
newMainScreen.X(strArr, "lockpdf", true, HttpUrl.FRAGMENT_ENCODE_SET);
return;
}
}
return;
}
}
});
s sVar17 = this.R;
if (sVar17 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar17.f16213d.f16185d.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20435s;
{
this.f20435s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20435s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.png_to_pdf);
ed.i.e("getString(R.string.png_to_pdf)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "PngToPdf";
a0.a.A = null;
a0.a.T = "PngToPdfClicked";
newMainScreen.f3748k0 = "PNGtPDF_clicked";
newMainScreen.f3746i0 = a0.a.O;
newMainScreen.f3747j0 = "jtp";
return;
default:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
a0.a.B = "WatermarkedPdf";
a0.a.A = null;
m4.n.d(newMainScreen, "WatermarkPdf_clicked");
if (newMainScreen.f3738a0) {
boolean z10 = p4.c.f23837a;
boolean h10 = p4.c.h();
String[] strArr = a0.a.I;
if (h10) {
newMainScreen.X(strArr, "addwm", false, HttpUrl.FRAGMENT_ENCODE_SET);
return;
} else {
newMainScreen.X(strArr, "addwm", true, HttpUrl.FRAGMENT_ENCODE_SET);
return;
}
}
return;
}
}
});
s sVar18 = this.R;
if (sVar18 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar18.f16214e.f16188a.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20450s;
{
this.f20450s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20450s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.bmp_to_pdf);
ed.i.e("getString(R.string.bmp_to_pdf)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "BmpToPdf";
a0.a.A = null;
a0.a.T = "BmpToPdfClicked";
m4.n.d(newMainScreen, "BMPtPDF_clicked");
newMainScreen.f3748k0 = "BMPtPDF_clicked";
newMainScreen.f3746i0 = a0.a.S;
newMainScreen.f3747j0 = "jtp";
return;
default:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
a0.a.B = "HeaderFooterPdfs";
a0.a.A = null;
m4.n.d(newMainScreen, "Headerfooter_clicked");
if (newMainScreen.f3738a0) {
boolean z10 = p4.c.f23837a;
boolean h10 = p4.c.h();
String[] strArr = a0.a.I;
if (h10) {
newMainScreen.X(strArr, "addhf", false, HttpUrl.FRAGMENT_ENCODE_SET);
return;
} else {
newMainScreen.X(strArr, "addhf", true, HttpUrl.FRAGMENT_ENCODE_SET);
return;
}
}
return;
}
}
});
s sVar19 = this.R;
if (sVar19 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar19.f16214e.f16194g.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20465s;
{
this.f20465s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20465s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.image_to_zip);
ed.i.e("getString(R.string.image_to_zip)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "ImageToZip";
a0.a.A = null;
m4.n.d(newMainScreen, "ImagetZIP_clicked");
newMainScreen.f3748k0 = "ImagetZIP_clicked";
newMainScreen.f3746i0 = a0.a.F;
newMainScreen.f3747j0 = "zip";
return;
default:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
a0.a.B = "TableOfContent";
a0.a.A = null;
m4.n.d(newMainScreen, "Tableofcontent_clicked");
if (newMainScreen.f3738a0) {
boolean z10 = p4.c.f23837a;
boolean h10 = p4.c.h();
String[] strArr = a0.a.I;
if (h10) {
newMainScreen.X(strArr, "addtoc", false, HttpUrl.FRAGMENT_ENCODE_SET);
return;
} else {
newMainScreen.X(strArr, "addtoc", true, HttpUrl.FRAGMENT_ENCODE_SET);
return;
}
}
return;
}
}
});
s sVar20 = this.R;
if (sVar20 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar20.f16214e.f16189b.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20480s;
{
this.f20480s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20480s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.excel_to_zip);
ed.i.e("getString(R.string.excel_to_zip)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "ExcelToZip";
a0.a.A = null;
newMainScreen.f3748k0 = "XLCtZIP_clicked";
newMainScreen.f3746i0 = a0.a.L;
newMainScreen.f3747j0 = "zip";
return;
default:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
a0.a.B = "AddLinkPdf";
a0.a.A = null;
m4.n.d(newMainScreen, "Addlink_clicked");
if (newMainScreen.f3738a0) {
boolean z10 = p4.c.f23837a;
boolean h10 = p4.c.h();
String[] strArr = a0.a.I;
if (h10) {
newMainScreen.X(strArr, "addlink", false, HttpUrl.FRAGMENT_ENCODE_SET);
return;
} else {
newMainScreen.X(strArr, "addlink", true, HttpUrl.FRAGMENT_ENCODE_SET);
return;
}
}
return;
}
}
});
s sVar21 = this.R;
if (sVar21 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar21.f16214e.f16202o.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20661s;
{
this.f20661s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20661s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.n.d(newMainScreen, "RemoveAdsbtn_clicked");
newMainScreen.k0();
return;
case 1:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.word_to_zip);
ed.i.e("getString(R.string.word_to_zip)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "WordToZip";
a0.a.A = null;
newMainScreen.f3748k0 = "DOCtZIP_clicked";
newMainScreen.f3746i0 = a0.a.H;
newMainScreen.f3747j0 = "zip";
return;
default:
int i14 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
a0.a.B = "RotatedPdf";
a0.a.A = null;
m4.n.d(newMainScreen, "RotatePdf_clicked");
if (newMainScreen.f3738a0) {
boolean z10 = p4.c.f23837a;
boolean h10 = p4.c.h();
String[] strArr = a0.a.I;
if (h10) {
newMainScreen.X(strArr, "rotatepdf", false, HttpUrl.FRAGMENT_ENCODE_SET);
return;
} else {
newMainScreen.X(strArr, "rotatepdf", true, HttpUrl.FRAGMENT_ENCODE_SET);
return;
}
}
return;
}
}
});
s sVar22 = this.R;
if (sVar22 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar22.f16214e.f16193f.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20510s;
{
this.f20510s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20510s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.html_to_zip);
ed.i.e("getString(R.string.html_to_zip)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "HtmlToZip";
a0.a.A = null;
newMainScreen.f3748k0 = "HTMLtZIP_clicked";
newMainScreen.f3746i0 = a0.a.M;
newMainScreen.f3747j0 = "zip";
return;
default:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
a0.a.B = "DeletedBlankPages";
a0.a.A = null;
m4.n.d(newMainScreen, "DeleteBlankPages_clicked");
if (newMainScreen.f3738a0) {
boolean z10 = p4.c.f23837a;
boolean h10 = p4.c.h();
String[] strArr = a0.a.I;
if (h10) {
newMainScreen.X(strArr, "delblankpage", false, HttpUrl.FRAGMENT_ENCODE_SET);
return;
} else {
newMainScreen.X(strArr, "delblankpage", true, HttpUrl.FRAGMENT_ENCODE_SET);
return;
}
}
return;
}
}
});
s sVar23 = this.R;
if (sVar23 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar23.f16214e.f16198k.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20678s;
{
this.f20678s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20678s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
if (!ed.i.a(newMainScreen.f3741d0, newMainScreen.f3742e0)) {
File file2 = newMainScreen.f3741d0;
newMainScreen.f3741d0 = file2 != null ? file2.getParentFile() : null;
kotlinx.coroutines.internal.d dVar = newMainScreen.f3743f0;
if (dVar == null) {
ed.i.l("customScope");
throw null;
}
e7.y.t(dVar, null, new b3(newMainScreen, null), 3);
}
File file3 = newMainScreen.f3741d0;
if (file3 != null) {
if (!ed.i.a(file3, newMainScreen.f3742e0)) {
d4.q qVar2 = newMainScreen.S;
if (qVar2 == null) {
ed.i.l("convertedLayoutRootBinding");
throw null;
}
LinearLayout linearLayout = qVar2.f16204b;
ed.i.e("convertedLayoutRootBinding.containerBack", linearLayout);
linearLayout.setVisibility(0);
return;
}
d4.q qVar3 = newMainScreen.S;
if (qVar3 == null) {
ed.i.l("convertedLayoutRootBinding");
throw null;
}
TabLayout tabLayout = qVar3.f16207e;
tabLayout.l(tabLayout.h(0), true);
d4.q qVar4 = newMainScreen.S;
if (qVar4 == null) {
ed.i.l("convertedLayoutRootBinding");
throw null;
}
LinearLayout linearLayout2 = qVar4.f16204b;
ed.i.e("convertedLayoutRootBinding.containerBack", linearLayout2);
linearLayout2.setVisibility(8);
tabLayout.setVisibility(0);
return;
}
return;
case 1:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.text_to_zip);
ed.i.e("getString(R.string.text_to_zip)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "TextToZip";
a0.a.A = null;
m4.n.d(newMainScreen, "TXTtZIP_clicked");
newMainScreen.f3748k0 = "TXTtZIP_clicked";
newMainScreen.f3746i0 = a0.a.N;
newMainScreen.f3747j0 = "zip";
return;
default:
int i14 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
a0.a.B = "CompressPdf";
a0.a.A = null;
m4.n.d(newMainScreen, "Compress_clicked");
if (newMainScreen.f3738a0) {
boolean z10 = p4.c.f23837a;
boolean h10 = p4.c.h();
String[] strArr = a0.a.I;
if (h10) {
newMainScreen.X(strArr, "compress", false, HttpUrl.FRAGMENT_ENCODE_SET);
return;
} else {
newMainScreen.X(strArr, "compress", true, HttpUrl.FRAGMENT_ENCODE_SET);
return;
}
}
return;
}
}
});
s sVar24 = this.R;
if (sVar24 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar24.f16214e.f16197j.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20525s;
{
this.f20525s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20525s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.ppt_to_zip);
ed.i.e("getString(R.string.ppt_to_zip)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "PptToZip";
a0.a.A = null;
newMainScreen.f3748k0 = "PPTtZIP_clicked";
newMainScreen.f3746i0 = a0.a.K;
newMainScreen.f3747j0 = "zip";
return;
default:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
a0.a.B = "DeletePdfPage";
a0.a.A = null;
m4.n.d(newMainScreen, "DeletePage_clicked");
if (newMainScreen.f3738a0) {
boolean z10 = p4.c.f23837a;
boolean h10 = p4.c.h();
String[] strArr = a0.a.I;
if (h10) {
newMainScreen.X(strArr, "delpage", false, HttpUrl.FRAGMENT_ENCODE_SET);
return;
} else {
newMainScreen.X(strArr, "delpage", true, HttpUrl.FRAGMENT_ENCODE_SET);
return;
}
}
return;
}
}
});
s sVar25 = this.R;
if (sVar25 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar25.f16214e.f16195h.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20558s;
{
this.f20558s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20558s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.jpg_to_png);
ed.i.e("getString(R.string.jpg_to_png)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "JpgToPng";
a0.a.A = null;
newMainScreen.f3748k0 = "JPGtPNG_clicked";
newMainScreen.f3746i0 = a0.a.P;
newMainScreen.f3747j0 = "topng";
return;
default:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
a0.a.B = "PageNumberPdf";
a0.a.A = null;
m4.n.d(newMainScreen, "Addpage_clicked");
if (newMainScreen.f3738a0) {
boolean z10 = p4.c.f23837a;
boolean h10 = p4.c.h();
String[] strArr = a0.a.I;
if (h10) {
newMainScreen.X(strArr, "addpagenum", false, HttpUrl.FRAGMENT_ENCODE_SET);
return;
} else {
newMainScreen.X(strArr, "addpagenum", true, HttpUrl.FRAGMENT_ENCODE_SET);
return;
}
}
return;
}
}
});
s sVar26 = this.R;
if (sVar26 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar26.f16214e.f16196i.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20714s;
{
this.f20714s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20714s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.n.d(newMainScreen, "Moreapps_clicked");
k4.c.f19802b = false;
try {
newMainScreen.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("market://search?q=pub:CA+Publishing")));
return;
} catch (ActivityNotFoundException unused) {
String string = newMainScreen.getString(R.string.googleplay_toast);
ed.i.e("getString(R.string.googleplay_toast)", string);
h4.o.n(string, newMainScreen);
return;
}
case 1:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string2 = newMainScreen.getString(R.string.png_to_jpg);
ed.i.e("getString(R.string.png_to_jpg)", string2);
gVar.f21151u = string2;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "PngToJpg";
a0.a.A = null;
newMainScreen.f3748k0 = "PNGtJPG_clicked";
newMainScreen.f3746i0 = a0.a.O;
newMainScreen.f3747j0 = "tojpg";
return;
default:
int i14 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
a0.a.B = "MergedPdf";
a0.a.A = null;
m4.n.d(newMainScreen, "MergePdf_clicked");
if (newMainScreen.f3738a0) {
boolean z10 = p4.c.f23837a;
boolean h10 = p4.c.h();
String[] strArr = a0.a.I;
if (h10 || !d9.a.d()) {
newMainScreen.X(strArr, "mergepdf", false, HttpUrl.FRAGMENT_ENCODE_SET);
return;
} else {
newMainScreen.X(strArr, "mergepdf", true, HttpUrl.FRAGMENT_ENCODE_SET);
return;
}
}
return;
}
}
});
s sVar27 = this.R;
if (sVar27 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar27.f16214e.f16201n.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20733s;
{
this.f20733s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20733s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.n.d(newMainScreen, "Term&Condition_clicked");
k4.c.f19802b = false;
try {
newMainScreen.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("https://www.contentarcade.com/usageterms")));
return;
} catch (Exception e14) {
e14.printStackTrace();
return;
}
case 1:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.tiff_to_png);
ed.i.e("getString(R.string.tiff_to_png)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "TiffToPng";
a0.a.A = null;
newMainScreen.f3748k0 = "TIFFtPNG_clicked";
newMainScreen.f3746i0 = a0.a.Q;
newMainScreen.f3747j0 = "topng";
return;
default:
int i14 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
a0.a.B = "SplitPdf";
a0.a.A = null;
m4.n.d(newMainScreen, "SplitPdf_clicked");
if (newMainScreen.f3738a0) {
boolean z10 = p4.c.f23837a;
boolean h10 = p4.c.h();
String[] strArr = a0.a.I;
if (h10) {
newMainScreen.X(strArr, "splitpdf", false, HttpUrl.FRAGMENT_ENCODE_SET);
return;
} else {
newMainScreen.X(strArr, "splitpdf", true, HttpUrl.FRAGMENT_ENCODE_SET);
return;
}
}
return;
}
}
});
s sVar28 = this.R;
if (sVar28 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar28.f16214e.f16199l.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20622s;
{
this.f20622s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20622s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.n.d(newMainScreen, "Rateus_clicked");
try {
newMainScreen.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("market://details?id=" + newMainScreen.getPackageName())));
return;
} catch (Exception unused) {
newMainScreen.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("https://play.google.com/store/apps/details?id=" + newMainScreen.getPackageName())));
return;
}
case 1:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.tiff_to_jpg);
ed.i.e("getString(R.string.tiff_to_jpg)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "TiffToJpg";
a0.a.A = null;
newMainScreen.f3748k0 = "TIFFtJPG_clicked";
newMainScreen.f3746i0 = a0.a.Q;
newMainScreen.f3747j0 = "tojpg";
return;
default:
int i14 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
a0.a.B = "OCR";
a0.a.A = null;
m4.n.d(newMainScreen, "OCR_clicked");
if (newMainScreen.f3738a0) {
boolean z10 = p4.c.f23837a;
boolean h10 = p4.c.h();
String[] strArr = a0.a.F;
if (h10) {
newMainScreen.X(strArr, "imageToText", false, HttpUrl.FRAGMENT_ENCODE_SET);
return;
} else {
newMainScreen.X(strArr, "imageToText", true, HttpUrl.FRAGMENT_ENCODE_SET);
return;
}
}
return;
}
}
});
s sVar29 = this.R;
if (sVar29 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar29.f16214e.f16200m.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20637s;
{
this.f20637s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20637s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.n.d(newMainScreen, "Pravacypolicy_clicked");
k4.c.f19802b = false;
try {
newMainScreen.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("http://contentarcadepublishing.com/apps-privacy-policy.php")));
return;
} catch (Exception e14) {
e14.printStackTrace();
return;
}
default:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.tiff_to_pdf);
ed.i.e("getString(R.string.tiff_to_pdf)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "TiffToPdf";
a0.a.A = null;
newMainScreen.f3748k0 = "TIFFtPDF_clicked";
newMainScreen.f3746i0 = a0.a.Q;
newMainScreen.f3747j0 = "jtp";
return;
}
}
});
s sVar30 = this.R;
if (sVar30 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar30.f16214e.f16191d.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20659s;
{
this.f20659s = this;
}
@Override
public final void onClick(View view) {
String string;
String str;
String str2;
int i11 = r2;
NewMainScreen newMainScreen = this.f20659s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.n.d(newMainScreen, "Support_clicked");
k4.c.f19802b = false;
Intent intent = new Intent("android.intent.action.SENDTO");
intent.setData(Uri.parse("mailto:"));
intent.putExtra("android.intent.extra.EMAIL", new String[]{"apps@contentarcade.com"});
try {
string = "Pdf Converter - " + newMainScreen.getPackageManager().getPackageInfo(newMainScreen.getPackageName(), 0).versionName;
} catch (PackageManager.NameNotFoundException e14) {
e14.printStackTrace();
string = newMainScreen.getString(R.string.app_name);
ed.i.e("context.getString(R.string.app_name)", string);
}
intent.putExtra("android.intent.extra.SUBJECT", string);
StringBuilder sb2 = new StringBuilder("\n\n--Please write your question above this--\n");
int i13 = Build.VERSION.SDK_INT;
String str3 = Build.MODEL;
String str4 = Build.BRAND;
if (i13 >= 24) {
newMainScreen.getResources().getConfiguration().getLocales().get(0).getCountry();
} else {
String country = Locale.getDefault().getCountry();
ed.i.e("getDefault().country", country);
Locale locale = Locale.ROOT;
ed.i.e("ROOT", locale);
ed.i.e("this as java.lang.String).toLowerCase(locale)", country.toLowerCase(locale));
}
try {
str = "Application Version: " + newMainScreen.getPackageManager().getPackageInfo(newMainScreen.getPackageName(), 0).versionName + '\n';
} catch (PackageManager.NameNotFoundException e15) {
e15.printStackTrace();
str = HttpUrl.FRAGMENT_ENCODE_SET;
}
StringBuilder sb3 = new StringBuilder();
sb3.append(str);
sb3.append("Brand: ");
sb3.append(str4);
sb3.append(" (");
sb3.append(str3);
sb3.append(")\nAndroid API: ");
switch (i13) {
case 21:
case 22:
str2 = "Android 5";
break;
case 23:
str2 = "Android 6";
break;
case 24:
case 25:
str2 = "Android 7";
break;
case 26:
case 27:
str2 = "Android 8";
break;
case 28:
str2 = "Android 9";
break;
case 29:
str2 = "Android 10";
break;
case 30:
str2 = "Android 11";
break;
case 31:
str2 = "Android 12";
break;
case 32:
str2 = "Android 13";
break;
default:
str2 = "Android 14";
break;
}
sb3.append(str2);
sb2.append(sb3.toString());
intent.putExtra("android.intent.extra.TEXT", sb2.toString());
newMainScreen.startActivity(Intent.createChooser(intent, "Email via..."));
return;
default:
int i14 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string2 = newMainScreen.getString(R.string.gif_to_png);
ed.i.e("getString(R.string.gif_to_png)", string2);
gVar.f21151u = string2;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "GifToPng";
a0.a.A = null;
newMainScreen.f3748k0 = "GIFtPNG_clicked";
newMainScreen.f3746i0 = a0.a.R;
newMainScreen.f3747j0 = "topng";
return;
}
}
});
s sVar31 = this.R;
if (sVar31 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar31.f16214e.f16190c.setOnClickListener(new k0(this, 1));
s sVar32 = this.R;
if (sVar32 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar32.f16214e.f16192e.setOnClickListener(new l4.p2(this, 0));
s sVar33 = this.R;
if (sVar33 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar33.f16220k.f15994c.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20423s;
{
this.f20423s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20423s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.jpg_to_pdf);
ed.i.e("getString(R.string.jpg_to_pdf)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "JpgToPdf";
a0.a.A = null;
a0.a.T = "JpgToPdfClicked";
newMainScreen.f3748k0 = "JPGtPDF_clicked";
newMainScreen.f3746i0 = a0.a.P;
newMainScreen.f3747j0 = "jtp";
return;
default:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
a0.a.B = "LockedPdfs";
a0.a.A = null;
m4.n.d(newMainScreen, "LockPdf_clicked");
if (newMainScreen.f3738a0) {
boolean z10 = p4.c.f23837a;
boolean h10 = p4.c.h();
String[] strArr = a0.a.I;
if (h10) {
newMainScreen.X(strArr, "lockpdf", false, HttpUrl.FRAGMENT_ENCODE_SET);
return;
} else {
newMainScreen.X(strArr, "lockpdf", true, HttpUrl.FRAGMENT_ENCODE_SET);
return;
}
}
return;
}
}
});
s sVar34 = this.R;
if (sVar34 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar34.f16220k.f15996e.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20495s;
{
this.f20495s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20495s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.image_to_pdf);
ed.i.e("getString(R.string.image_to_pdf)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "ImageToPdf";
a0.a.A = null;
newMainScreen.f3746i0 = a0.a.F;
newMainScreen.f3748k0 = "ImagetPDF_clicked";
newMainScreen.f3747j0 = "jtp";
return;
default:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
a0.a.B = "UnlockedPdfs";
a0.a.A = null;
m4.n.d(newMainScreen, "UnlockPdf_clicked");
if (newMainScreen.f3738a0) {
boolean z10 = p4.c.f23837a;
boolean h10 = p4.c.h();
String[] strArr = a0.a.I;
if (h10) {
newMainScreen.X(strArr, "unlockpdf", false, HttpUrl.FRAGMENT_ENCODE_SET);
return;
} else {
newMainScreen.X(strArr, "unlockpdf", true, HttpUrl.FRAGMENT_ENCODE_SET);
return;
}
}
return;
}
}
});
s sVar35 = this.R;
if (sVar35 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar35.f16220k.f15995d.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20661s;
{
this.f20661s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20661s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.n.d(newMainScreen, "RemoveAdsbtn_clicked");
newMainScreen.k0();
return;
case 1:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.word_to_zip);
ed.i.e("getString(R.string.word_to_zip)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "WordToZip";
a0.a.A = null;
newMainScreen.f3748k0 = "DOCtZIP_clicked";
newMainScreen.f3746i0 = a0.a.H;
newMainScreen.f3747j0 = "zip";
return;
default:
int i14 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
a0.a.B = "RotatedPdf";
a0.a.A = null;
m4.n.d(newMainScreen, "RotatePdf_clicked");
if (newMainScreen.f3738a0) {
boolean z10 = p4.c.f23837a;
boolean h10 = p4.c.h();
String[] strArr = a0.a.I;
if (h10) {
newMainScreen.X(strArr, "rotatepdf", false, HttpUrl.FRAGMENT_ENCODE_SET);
return;
} else {
newMainScreen.X(strArr, "rotatepdf", true, HttpUrl.FRAGMENT_ENCODE_SET);
return;
}
}
return;
}
}
});
s sVar36 = this.R;
if (sVar36 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar36.f16220k.f15993b.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20510s;
{
this.f20510s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20510s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.html_to_zip);
ed.i.e("getString(R.string.html_to_zip)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "HtmlToZip";
a0.a.A = null;
newMainScreen.f3748k0 = "HTMLtZIP_clicked";
newMainScreen.f3746i0 = a0.a.M;
newMainScreen.f3747j0 = "zip";
return;
default:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
a0.a.B = "DeletedBlankPages";
a0.a.A = null;
m4.n.d(newMainScreen, "DeleteBlankPages_clicked");
if (newMainScreen.f3738a0) {
boolean z10 = p4.c.f23837a;
boolean h10 = p4.c.h();
String[] strArr = a0.a.I;
if (h10) {
newMainScreen.X(strArr, "delblankpage", false, HttpUrl.FRAGMENT_ENCODE_SET);
return;
} else {
newMainScreen.X(strArr, "delblankpage", true, HttpUrl.FRAGMENT_ENCODE_SET);
return;
}
}
return;
}
}
});
s sVar37 = this.R;
if (sVar37 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar37.f16219j.f15972c.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20678s;
{
this.f20678s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20678s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
if (!ed.i.a(newMainScreen.f3741d0, newMainScreen.f3742e0)) {
File file2 = newMainScreen.f3741d0;
newMainScreen.f3741d0 = file2 != null ? file2.getParentFile() : null;
kotlinx.coroutines.internal.d dVar = newMainScreen.f3743f0;
if (dVar == null) {
ed.i.l("customScope");
throw null;
}
e7.y.t(dVar, null, new b3(newMainScreen, null), 3);
}
File file3 = newMainScreen.f3741d0;
if (file3 != null) {
if (!ed.i.a(file3, newMainScreen.f3742e0)) {
d4.q qVar2 = newMainScreen.S;
if (qVar2 == null) {
ed.i.l("convertedLayoutRootBinding");
throw null;
}
LinearLayout linearLayout = qVar2.f16204b;
ed.i.e("convertedLayoutRootBinding.containerBack", linearLayout);
linearLayout.setVisibility(0);
return;
}
d4.q qVar3 = newMainScreen.S;
if (qVar3 == null) {
ed.i.l("convertedLayoutRootBinding");
throw null;
}
TabLayout tabLayout = qVar3.f16207e;
tabLayout.l(tabLayout.h(0), true);
d4.q qVar4 = newMainScreen.S;
if (qVar4 == null) {
ed.i.l("convertedLayoutRootBinding");
throw null;
}
LinearLayout linearLayout2 = qVar4.f16204b;
ed.i.e("convertedLayoutRootBinding.containerBack", linearLayout2);
linearLayout2.setVisibility(8);
tabLayout.setVisibility(0);
return;
}
return;
case 1:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.text_to_zip);
ed.i.e("getString(R.string.text_to_zip)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "TextToZip";
a0.a.A = null;
m4.n.d(newMainScreen, "TXTtZIP_clicked");
newMainScreen.f3748k0 = "TXTtZIP_clicked";
newMainScreen.f3746i0 = a0.a.N;
newMainScreen.f3747j0 = "zip";
return;
default:
int i14 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
a0.a.B = "CompressPdf";
a0.a.A = null;
m4.n.d(newMainScreen, "Compress_clicked");
if (newMainScreen.f3738a0) {
boolean z10 = p4.c.f23837a;
boolean h10 = p4.c.h();
String[] strArr = a0.a.I;
if (h10) {
newMainScreen.X(strArr, "compress", false, HttpUrl.FRAGMENT_ENCODE_SET);
return;
} else {
newMainScreen.X(strArr, "compress", true, HttpUrl.FRAGMENT_ENCODE_SET);
return;
}
}
return;
}
}
});
s sVar38 = this.R;
if (sVar38 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar38.f16219j.f15973d.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20525s;
{
this.f20525s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20525s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.ppt_to_zip);
ed.i.e("getString(R.string.ppt_to_zip)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "PptToZip";
a0.a.A = null;
newMainScreen.f3748k0 = "PPTtZIP_clicked";
newMainScreen.f3746i0 = a0.a.K;
newMainScreen.f3747j0 = "zip";
return;
default:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
a0.a.B = "DeletePdfPage";
a0.a.A = null;
m4.n.d(newMainScreen, "DeletePage_clicked");
if (newMainScreen.f3738a0) {
boolean z10 = p4.c.f23837a;
boolean h10 = p4.c.h();
String[] strArr = a0.a.I;
if (h10) {
newMainScreen.X(strArr, "delpage", false, HttpUrl.FRAGMENT_ENCODE_SET);
return;
} else {
newMainScreen.X(strArr, "delpage", true, HttpUrl.FRAGMENT_ENCODE_SET);
return;
}
}
return;
}
}
});
s sVar39 = this.R;
if (sVar39 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar39.f16219j.f15971b.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20558s;
{
this.f20558s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20558s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.jpg_to_png);
ed.i.e("getString(R.string.jpg_to_png)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "JpgToPng";
a0.a.A = null;
newMainScreen.f3748k0 = "JPGtPNG_clicked";
newMainScreen.f3746i0 = a0.a.P;
newMainScreen.f3747j0 = "topng";
return;
default:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
a0.a.B = "PageNumberPdf";
a0.a.A = null;
m4.n.d(newMainScreen, "Addpage_clicked");
if (newMainScreen.f3738a0) {
boolean z10 = p4.c.f23837a;
boolean h10 = p4.c.h();
String[] strArr = a0.a.I;
if (h10) {
newMainScreen.X(strArr, "addpagenum", false, HttpUrl.FRAGMENT_ENCODE_SET);
return;
} else {
newMainScreen.X(strArr, "addpagenum", true, HttpUrl.FRAGMENT_ENCODE_SET);
return;
}
}
return;
}
}
});
s sVar40 = this.R;
if (sVar40 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar40.f16219j.f15975f.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20714s;
{
this.f20714s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20714s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.n.d(newMainScreen, "Moreapps_clicked");
k4.c.f19802b = false;
try {
newMainScreen.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("market://search?q=pub:CA+Publishing")));
return;
} catch (ActivityNotFoundException unused) {
String string = newMainScreen.getString(R.string.googleplay_toast);
ed.i.e("getString(R.string.googleplay_toast)", string);
h4.o.n(string, newMainScreen);
return;
}
case 1:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string2 = newMainScreen.getString(R.string.png_to_jpg);
ed.i.e("getString(R.string.png_to_jpg)", string2);
gVar.f21151u = string2;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "PngToJpg";
a0.a.A = null;
newMainScreen.f3748k0 = "PNGtJPG_clicked";
newMainScreen.f3746i0 = a0.a.O;
newMainScreen.f3747j0 = "tojpg";
return;
default:
int i14 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
a0.a.B = "MergedPdf";
a0.a.A = null;
m4.n.d(newMainScreen, "MergePdf_clicked");
if (newMainScreen.f3738a0) {
boolean z10 = p4.c.f23837a;
boolean h10 = p4.c.h();
String[] strArr = a0.a.I;
if (h10 || !d9.a.d()) {
newMainScreen.X(strArr, "mergepdf", false, HttpUrl.FRAGMENT_ENCODE_SET);
return;
} else {
newMainScreen.X(strArr, "mergepdf", true, HttpUrl.FRAGMENT_ENCODE_SET);
return;
}
}
return;
}
}
});
s sVar41 = this.R;
if (sVar41 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar41.f16219j.f15976g.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20733s;
{
this.f20733s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20733s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.n.d(newMainScreen, "Term&Condition_clicked");
k4.c.f19802b = false;
try {
newMainScreen.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("https://www.contentarcade.com/usageterms")));
return;
} catch (Exception e14) {
e14.printStackTrace();
return;
}
case 1:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.tiff_to_png);
ed.i.e("getString(R.string.tiff_to_png)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "TiffToPng";
a0.a.A = null;
newMainScreen.f3748k0 = "TIFFtPNG_clicked";
newMainScreen.f3746i0 = a0.a.Q;
newMainScreen.f3747j0 = "topng";
return;
default:
int i14 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
a0.a.B = "SplitPdf";
a0.a.A = null;
m4.n.d(newMainScreen, "SplitPdf_clicked");
if (newMainScreen.f3738a0) {
boolean z10 = p4.c.f23837a;
boolean h10 = p4.c.h();
String[] strArr = a0.a.I;
if (h10) {
newMainScreen.X(strArr, "splitpdf", false, HttpUrl.FRAGMENT_ENCODE_SET);
return;
} else {
newMainScreen.X(strArr, "splitpdf", true, HttpUrl.FRAGMENT_ENCODE_SET);
return;
}
}
return;
}
}
});
s sVar42 = this.R;
if (sVar42 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar42.f16219j.f15974e.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20622s;
{
this.f20622s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20622s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.n.d(newMainScreen, "Rateus_clicked");
try {
newMainScreen.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("market://details?id=" + newMainScreen.getPackageName())));
return;
} catch (Exception unused) {
newMainScreen.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("https://play.google.com/store/apps/details?id=" + newMainScreen.getPackageName())));
return;
}
case 1:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.tiff_to_jpg);
ed.i.e("getString(R.string.tiff_to_jpg)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "TiffToJpg";
a0.a.A = null;
newMainScreen.f3748k0 = "TIFFtJPG_clicked";
newMainScreen.f3746i0 = a0.a.Q;
newMainScreen.f3747j0 = "tojpg";
return;
default:
int i14 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
a0.a.B = "OCR";
a0.a.A = null;
m4.n.d(newMainScreen, "OCR_clicked");
if (newMainScreen.f3738a0) {
boolean z10 = p4.c.f23837a;
boolean h10 = p4.c.h();
String[] strArr = a0.a.F;
if (h10) {
newMainScreen.X(strArr, "imageToText", false, HttpUrl.FRAGMENT_ENCODE_SET);
return;
} else {
newMainScreen.X(strArr, "imageToText", true, HttpUrl.FRAGMENT_ENCODE_SET);
return;
}
}
return;
}
}
});
s sVar43 = this.R;
if (sVar43 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar43.f16220k.f15998g.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20435s;
{
this.f20435s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20435s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.png_to_pdf);
ed.i.e("getString(R.string.png_to_pdf)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "PngToPdf";
a0.a.A = null;
a0.a.T = "PngToPdfClicked";
newMainScreen.f3748k0 = "PNGtPDF_clicked";
newMainScreen.f3746i0 = a0.a.O;
newMainScreen.f3747j0 = "jtp";
return;
default:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
a0.a.B = "WatermarkedPdf";
a0.a.A = null;
m4.n.d(newMainScreen, "WatermarkPdf_clicked");
if (newMainScreen.f3738a0) {
boolean z10 = p4.c.f23837a;
boolean h10 = p4.c.h();
String[] strArr = a0.a.I;
if (h10) {
newMainScreen.X(strArr, "addwm", false, HttpUrl.FRAGMENT_ENCODE_SET);
return;
} else {
newMainScreen.X(strArr, "addwm", true, HttpUrl.FRAGMENT_ENCODE_SET);
return;
}
}
return;
}
}
});
s sVar44 = this.R;
if (sVar44 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar44.f16220k.f15992a.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20450s;
{
this.f20450s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20450s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.bmp_to_pdf);
ed.i.e("getString(R.string.bmp_to_pdf)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "BmpToPdf";
a0.a.A = null;
a0.a.T = "BmpToPdfClicked";
m4.n.d(newMainScreen, "BMPtPDF_clicked");
newMainScreen.f3748k0 = "BMPtPDF_clicked";
newMainScreen.f3746i0 = a0.a.S;
newMainScreen.f3747j0 = "jtp";
return;
default:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
a0.a.B = "HeaderFooterPdfs";
a0.a.A = null;
m4.n.d(newMainScreen, "Headerfooter_clicked");
if (newMainScreen.f3738a0) {
boolean z10 = p4.c.f23837a;
boolean h10 = p4.c.h();
String[] strArr = a0.a.I;
if (h10) {
newMainScreen.X(strArr, "addhf", false, HttpUrl.FRAGMENT_ENCODE_SET);
return;
} else {
newMainScreen.X(strArr, "addhf", true, HttpUrl.FRAGMENT_ENCODE_SET);
return;
}
}
return;
}
}
});
s sVar45 = this.R;
if (sVar45 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar45.f16219j.f15977h.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20465s;
{
this.f20465s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20465s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.image_to_zip);
ed.i.e("getString(R.string.image_to_zip)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "ImageToZip";
a0.a.A = null;
m4.n.d(newMainScreen, "ImagetZIP_clicked");
newMainScreen.f3748k0 = "ImagetZIP_clicked";
newMainScreen.f3746i0 = a0.a.F;
newMainScreen.f3747j0 = "zip";
return;
default:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
a0.a.B = "TableOfContent";
a0.a.A = null;
m4.n.d(newMainScreen, "Tableofcontent_clicked");
if (newMainScreen.f3738a0) {
boolean z10 = p4.c.f23837a;
boolean h10 = p4.c.h();
String[] strArr = a0.a.I;
if (h10) {
newMainScreen.X(strArr, "addtoc", false, HttpUrl.FRAGMENT_ENCODE_SET);
return;
} else {
newMainScreen.X(strArr, "addtoc", true, HttpUrl.FRAGMENT_ENCODE_SET);
return;
}
}
return;
}
}
});
s sVar46 = this.R;
if (sVar46 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar46.f16219j.f15970a.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20480s;
{
this.f20480s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20480s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.excel_to_zip);
ed.i.e("getString(R.string.excel_to_zip)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "ExcelToZip";
a0.a.A = null;
newMainScreen.f3748k0 = "XLCtZIP_clicked";
newMainScreen.f3746i0 = a0.a.L;
newMainScreen.f3747j0 = "zip";
return;
default:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
a0.a.B = "AddLinkPdf";
a0.a.A = null;
m4.n.d(newMainScreen, "Addlink_clicked");
if (newMainScreen.f3738a0) {
boolean z10 = p4.c.f23837a;
boolean h10 = p4.c.h();
String[] strArr = a0.a.I;
if (h10) {
newMainScreen.X(strArr, "addlink", false, HttpUrl.FRAGMENT_ENCODE_SET);
return;
} else {
newMainScreen.X(strArr, "addlink", true, HttpUrl.FRAGMENT_ENCODE_SET);
return;
}
}
return;
}
}
});
s sVar47 = this.R;
if (sVar47 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar47.f16217h.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20607s;
{
this.f20607s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20607s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.n.d(newMainScreen, "RemoveAdsbtn_clicked");
newMainScreen.k0();
return;
default:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.html_to_pdf);
ed.i.e("getString(R.string.html_to_pdf)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "HtmlToPdf";
a0.a.A = null;
newMainScreen.f3748k0 = "HTMLtPDF_clicked";
newMainScreen.f3746i0 = a0.a.M;
newMainScreen.f3747j0 = "htp";
return;
}
}
});
d4.e eVar6 = this.P;
if (eVar6 == null) {
ed.i.l("mainBinding");
throw null;
}
eVar6.f16045c.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20376s;
{
this.f20376s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20376s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.n.d(newMainScreen, "RemoveAdsbtn_clicked");
newMainScreen.k0();
return;
default:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.text_to_pdf);
ed.i.e("getString(R.string.text_to_pdf)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "TextToPdf";
a0.a.A = null;
newMainScreen.f3748k0 = "TXTtPDF_clicked";
newMainScreen.f3746i0 = a0.a.N;
newMainScreen.f3747j0 = "ttp";
return;
}
}
});
s sVar48 = this.R;
if (sVar48 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
sVar48.f16218i.a(new e4(this));
z zVar = this.T;
if (zVar == null) {
ed.i.l("moreLayoutRootBinding");
throw null;
}
zVar.f16263b.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20714s;
{
this.f20714s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20714s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.n.d(newMainScreen, "Moreapps_clicked");
k4.c.f19802b = false;
try {
newMainScreen.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("market://search?q=pub:CA+Publishing")));
return;
} catch (ActivityNotFoundException unused) {
String string = newMainScreen.getString(R.string.googleplay_toast);
ed.i.e("getString(R.string.googleplay_toast)", string);
h4.o.n(string, newMainScreen);
return;
}
case 1:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string2 = newMainScreen.getString(R.string.png_to_jpg);
ed.i.e("getString(R.string.png_to_jpg)", string2);
gVar.f21151u = string2;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "PngToJpg";
a0.a.A = null;
newMainScreen.f3748k0 = "PNGtJPG_clicked";
newMainScreen.f3746i0 = a0.a.O;
newMainScreen.f3747j0 = "tojpg";
return;
default:
int i14 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
a0.a.B = "MergedPdf";
a0.a.A = null;
m4.n.d(newMainScreen, "MergePdf_clicked");
if (newMainScreen.f3738a0) {
boolean z10 = p4.c.f23837a;
boolean h10 = p4.c.h();
String[] strArr = a0.a.I;
if (h10 || !d9.a.d()) {
newMainScreen.X(strArr, "mergepdf", false, HttpUrl.FRAGMENT_ENCODE_SET);
return;
} else {
newMainScreen.X(strArr, "mergepdf", true, HttpUrl.FRAGMENT_ENCODE_SET);
return;
}
}
return;
}
}
});
zVar.f16268g.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20733s;
{
this.f20733s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20733s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.n.d(newMainScreen, "Term&Condition_clicked");
k4.c.f19802b = false;
try {
newMainScreen.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("https://www.contentarcade.com/usageterms")));
return;
} catch (Exception e14) {
e14.printStackTrace();
return;
}
case 1:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.tiff_to_png);
ed.i.e("getString(R.string.tiff_to_png)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "TiffToPng";
a0.a.A = null;
newMainScreen.f3748k0 = "TIFFtPNG_clicked";
newMainScreen.f3746i0 = a0.a.Q;
newMainScreen.f3747j0 = "topng";
return;
default:
int i14 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
a0.a.B = "SplitPdf";
a0.a.A = null;
m4.n.d(newMainScreen, "SplitPdf_clicked");
if (newMainScreen.f3738a0) {
boolean z10 = p4.c.f23837a;
boolean h10 = p4.c.h();
String[] strArr = a0.a.I;
if (h10) {
newMainScreen.X(strArr, "splitpdf", false, HttpUrl.FRAGMENT_ENCODE_SET);
return;
} else {
newMainScreen.X(strArr, "splitpdf", true, HttpUrl.FRAGMENT_ENCODE_SET);
return;
}
}
return;
}
}
});
zVar.f16266e.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20622s;
{
this.f20622s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20622s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.n.d(newMainScreen, "Rateus_clicked");
try {
newMainScreen.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("market://details?id=" + newMainScreen.getPackageName())));
return;
} catch (Exception unused) {
newMainScreen.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("https://play.google.com/store/apps/details?id=" + newMainScreen.getPackageName())));
return;
}
case 1:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.tiff_to_jpg);
ed.i.e("getString(R.string.tiff_to_jpg)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "TiffToJpg";
a0.a.A = null;
newMainScreen.f3748k0 = "TIFFtJPG_clicked";
newMainScreen.f3746i0 = a0.a.Q;
newMainScreen.f3747j0 = "tojpg";
return;
default:
int i14 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
a0.a.B = "OCR";
a0.a.A = null;
m4.n.d(newMainScreen, "OCR_clicked");
if (newMainScreen.f3738a0) {
boolean z10 = p4.c.f23837a;
boolean h10 = p4.c.h();
String[] strArr = a0.a.F;
if (h10) {
newMainScreen.X(strArr, "imageToText", false, HttpUrl.FRAGMENT_ENCODE_SET);
return;
} else {
newMainScreen.X(strArr, "imageToText", true, HttpUrl.FRAGMENT_ENCODE_SET);
return;
}
}
return;
}
}
});
zVar.f16265d.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20637s;
{
this.f20637s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20637s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.n.d(newMainScreen, "Pravacypolicy_clicked");
k4.c.f19802b = false;
try {
newMainScreen.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("http://contentarcadepublishing.com/apps-privacy-policy.php")));
return;
} catch (Exception e14) {
e14.printStackTrace();
return;
}
default:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.tiff_to_pdf);
ed.i.e("getString(R.string.tiff_to_pdf)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "TiffToPdf";
a0.a.A = null;
newMainScreen.f3748k0 = "TIFFtPDF_clicked";
newMainScreen.f3746i0 = a0.a.Q;
newMainScreen.f3747j0 = "jtp";
return;
}
}
});
zVar.f16267f.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20659s;
{
this.f20659s = this;
}
@Override
public final void onClick(View view) {
String string;
String str;
String str2;
int i11 = r2;
NewMainScreen newMainScreen = this.f20659s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.n.d(newMainScreen, "Support_clicked");
k4.c.f19802b = false;
Intent intent = new Intent("android.intent.action.SENDTO");
intent.setData(Uri.parse("mailto:"));
intent.putExtra("android.intent.extra.EMAIL", new String[]{"apps@contentarcade.com"});
try {
string = "Pdf Converter - " + newMainScreen.getPackageManager().getPackageInfo(newMainScreen.getPackageName(), 0).versionName;
} catch (PackageManager.NameNotFoundException e14) {
e14.printStackTrace();
string = newMainScreen.getString(R.string.app_name);
ed.i.e("context.getString(R.string.app_name)", string);
}
intent.putExtra("android.intent.extra.SUBJECT", string);
StringBuilder sb2 = new StringBuilder("\n\n--Please write your question above this--\n");
int i13 = Build.VERSION.SDK_INT;
String str3 = Build.MODEL;
String str4 = Build.BRAND;
if (i13 >= 24) {
newMainScreen.getResources().getConfiguration().getLocales().get(0).getCountry();
} else {
String country = Locale.getDefault().getCountry();
ed.i.e("getDefault().country", country);
Locale locale = Locale.ROOT;
ed.i.e("ROOT", locale);
ed.i.e("this as java.lang.String).toLowerCase(locale)", country.toLowerCase(locale));
}
try {
str = "Application Version: " + newMainScreen.getPackageManager().getPackageInfo(newMainScreen.getPackageName(), 0).versionName + '\n';
} catch (PackageManager.NameNotFoundException e15) {
e15.printStackTrace();
str = HttpUrl.FRAGMENT_ENCODE_SET;
}
StringBuilder sb3 = new StringBuilder();
sb3.append(str);
sb3.append("Brand: ");
sb3.append(str4);
sb3.append(" (");
sb3.append(str3);
sb3.append(")\nAndroid API: ");
switch (i13) {
case 21:
case 22:
str2 = "Android 5";
break;
case 23:
str2 = "Android 6";
break;
case 24:
case 25:
str2 = "Android 7";
break;
case 26:
case 27:
str2 = "Android 8";
break;
case 28:
str2 = "Android 9";
break;
case 29:
str2 = "Android 10";
break;
case 30:
str2 = "Android 11";
break;
case 31:
str2 = "Android 12";
break;
case 32:
str2 = "Android 13";
break;
default:
str2 = "Android 14";
break;
}
sb3.append(str2);
sb2.append(sb3.toString());
intent.putExtra("android.intent.extra.TEXT", sb2.toString());
newMainScreen.startActivity(Intent.createChooser(intent, "Email via..."));
return;
default:
int i14 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string2 = newMainScreen.getString(R.string.gif_to_png);
ed.i.e("getString(R.string.gif_to_png)", string2);
gVar.f21151u = string2;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "GifToPng";
a0.a.A = null;
newMainScreen.f3748k0 = "GIFtPNG_clicked";
newMainScreen.f3746i0 = a0.a.R;
newMainScreen.f3747j0 = "topng";
return;
}
}
});
zVar.f16264c.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20676s;
{
this.f20676s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20676s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.n.d(newMainScreen, "Premiumbtn_clicked");
newMainScreen.k0();
return;
default:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.pdf_to_word);
ed.i.e("getString(R.string.pdf_to_word)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "PdfToWord";
a0.a.A = null;
newMainScreen.f3748k0 = "PDFtDOC_clicked";
newMainScreen.f3746i0 = a0.a.I;
newMainScreen.f3747j0 = "ptd";
return;
}
}
});
q qVar2 = this.S;
if (qVar2 == null) {
ed.i.l("convertedLayoutRootBinding");
throw null;
}
qVar2.f16206d.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20661s;
{
this.f20661s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20661s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.n.d(newMainScreen, "RemoveAdsbtn_clicked");
newMainScreen.k0();
return;
case 1:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.word_to_zip);
ed.i.e("getString(R.string.word_to_zip)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "WordToZip";
a0.a.A = null;
newMainScreen.f3748k0 = "DOCtZIP_clicked";
newMainScreen.f3746i0 = a0.a.H;
newMainScreen.f3747j0 = "zip";
return;
default:
int i14 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
a0.a.B = "RotatedPdf";
a0.a.A = null;
m4.n.d(newMainScreen, "RotatePdf_clicked");
if (newMainScreen.f3738a0) {
boolean z10 = p4.c.f23837a;
boolean h10 = p4.c.h();
String[] strArr = a0.a.I;
if (h10) {
newMainScreen.X(strArr, "rotatepdf", false, HttpUrl.FRAGMENT_ENCODE_SET);
return;
} else {
newMainScreen.X(strArr, "rotatepdf", true, HttpUrl.FRAGMENT_ENCODE_SET);
return;
}
}
return;
}
}
});
q qVar3 = this.S;
if (qVar3 == null) {
ed.i.l("convertedLayoutRootBinding");
throw null;
}
qVar3.f16204b.setOnClickListener(new View.OnClickListener(this) {
public final NewMainScreen f20678s;
{
this.f20678s = this;
}
@Override
public final void onClick(View view) {
int i11 = r2;
NewMainScreen newMainScreen = this.f20678s;
switch (i11) {
case 0:
int i12 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
if (!ed.i.a(newMainScreen.f3741d0, newMainScreen.f3742e0)) {
File file2 = newMainScreen.f3741d0;
newMainScreen.f3741d0 = file2 != null ? file2.getParentFile() : null;
kotlinx.coroutines.internal.d dVar = newMainScreen.f3743f0;
if (dVar == null) {
ed.i.l("customScope");
throw null;
}
e7.y.t(dVar, null, new b3(newMainScreen, null), 3);
}
File file3 = newMainScreen.f3741d0;
if (file3 != null) {
if (!ed.i.a(file3, newMainScreen.f3742e0)) {
d4.q qVar22 = newMainScreen.S;
if (qVar22 == null) {
ed.i.l("convertedLayoutRootBinding");
throw null;
}
LinearLayout linearLayout = qVar22.f16204b;
ed.i.e("convertedLayoutRootBinding.containerBack", linearLayout);
linearLayout.setVisibility(0);
return;
}
d4.q qVar32 = newMainScreen.S;
if (qVar32 == null) {
ed.i.l("convertedLayoutRootBinding");
throw null;
}
TabLayout tabLayout = qVar32.f16207e;
tabLayout.l(tabLayout.h(0), true);
d4.q qVar4 = newMainScreen.S;
if (qVar4 == null) {
ed.i.l("convertedLayoutRootBinding");
throw null;
}
LinearLayout linearLayout2 = qVar4.f16204b;
ed.i.e("convertedLayoutRootBinding.containerBack", linearLayout2);
linearLayout2.setVisibility(8);
tabLayout.setVisibility(0);
return;
}
return;
case 1:
int i13 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
m4.g gVar = newMainScreen.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
String string = newMainScreen.getString(R.string.text_to_zip);
ed.i.e("getString(R.string.text_to_zip)", string);
gVar.f21151u = string;
if (newMainScreen.W()) {
m4.g gVar2 = newMainScreen.f3745h0;
if (gVar2 == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar2.a();
}
a0.a.B = "TextToZip";
a0.a.A = null;
m4.n.d(newMainScreen, "TXTtZIP_clicked");
newMainScreen.f3748k0 = "TXTtZIP_clicked";
newMainScreen.f3746i0 = a0.a.N;
newMainScreen.f3747j0 = "zip";
return;
default:
int i14 = NewMainScreen.f3737q0;
ed.i.f("this$0", newMainScreen);
a0.a.B = "CompressPdf";
a0.a.A = null;
m4.n.d(newMainScreen, "Compress_clicked");
if (newMainScreen.f3738a0) {
boolean z10 = p4.c.f23837a;
boolean h10 = p4.c.h();
String[] strArr = a0.a.I;
if (h10) {
newMainScreen.X(strArr, "compress", false, HttpUrl.FRAGMENT_ENCODE_SET);
return;
} else {
newMainScreen.X(strArr, "compress", true, HttpUrl.FRAGMENT_ENCODE_SET);
return;
}
}
return;
}
}
});
this.V.execute(new androidx.activity.b(5, this));
q qVar4 = this.S;
if (qVar4 == null) {
ed.i.l("convertedLayoutRootBinding");
throw null;
}
TabLayout tabLayout = qVar4.f16207e;
ed.i.e("convertedLayoutRootBinding.myTabConverted", tabLayout);
tabLayout.a(new b4(this));
p4.c.g(k4.c.f19805e, k4.c.f19804d, this, new androidx.lifecycle.t() {
@Override
public final void a(Object obj) {
Boolean bool = (Boolean) obj;
int i11 = NewMainScreen.f3737q0;
NewMainScreen newMainScreen = NewMainScreen.this;
ed.i.f("this$0", newMainScreen);
if (bool != null) {
if (bool.booleanValue() || !d9.a.d()) {
newMainScreen.l0();
Log.d("myBilling", "Billing is buy");
return;
}
newMainScreen.g0();
Log.d("myBilling", "Billing is not buy");
}
}
});
boolean z10 = p4.c.f23837a;
p4.c.k(this, new androidx.lifecycle.t() {
@Override
public final void a(Object obj) {
Integer num = (Integer) obj;
int i11 = NewMainScreen.f3737q0;
NewMainScreen newMainScreen = NewMainScreen.this;
ed.i.f("this$0", newMainScreen);
if (num == null || num.intValue() != 3) {
return;
}
newMainScreen.g0();
}
});
p4.c.l(this, new t2(this, 0));
s sVar49 = this.R;
if (sVar49 == null) {
ed.i.l("homeLayoutRootBinding");
throw null;
}
ConstraintLayout constraintLayout5 = sVar49.f16217h;
ed.i.e("homeLayoutRootBinding.layoutHomeProIcon", constraintLayout5);
a0(constraintLayout5);
q qVar5 = this.S;
if (qVar5 == null) {
ed.i.l("convertedLayoutRootBinding");
throw null;
}
ConstraintLayout constraintLayout6 = qVar5.f16206d;
ed.i.e("convertedLayoutRootBinding.layoutHomeProIcon", constraintLayout6);
a0(constraintLayout6);
m4.k kVar2 = new m4.k(this);
m4.g gVar = this.f3745h0;
if (gVar == null) {
ed.i.l("batchFileCon");
throw null;
}
gVar.f21150t = new w3(this, kVar2);
kVar2.f21164t = new x3(this);
if (!p4.c.h()) {
b4.e.a(this, this, false);
}
m4.l.a(this);
if (p4.c.h()) {
return;
}
new Handler(Looper.getMainLooper()).postDelayed(new androidx.appcompat.widget.b(3, this), 1000L);
return;
} else {
i10 = R.id.textView9;
}
} else {
i10 = R.id.moreRoot;
}
} else {
i10 = R.id.moreLayoutRoot;
}
}
}
}
}
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i10)));
}
@Override
public final void onDestroy() {
super.onDestroy();
kotlinx.coroutines.internal.d dVar = this.f3743f0;
if (dVar == null) {
ed.i.l("customScope");
throw null;
}
x0 x0Var = (x0) dVar.f20046r.s(x0.b.f22070r);
if (x0Var != null) {
x0Var.V(null);
return;
}
throw new IllegalStateException(("Scope cannot be cancelled because it does not have a job: " + dVar).toString());
}
@Override
public final void onRequestPermissionsResult(int i10, String[] strArr, int[] iArr) {
ed.i.f("permissions", strArr);
ed.i.f("grantResults", iArr);
super.onRequestPermissionsResult(i10, strArr, iArr);
ke.b.a(i10, strArr, iArr, this);
}
@Override
public final void onResume() {
Dialogue.SoundEnable(this);
super.onResume();
if (m4.n.f21173d) {
m4.n.f21173d = false;
this.f3751n0 = true;
d4.e eVar = this.P;
if (eVar == null) {
ed.i.l("mainBinding");
throw null;
}
eVar.f16054l.findViewById(R.id.action_item2).performClick();
m4.l.a(this);
SharedPreferences defaultSharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);
ed.i.e("getDefaultSharedPreferences(context)", defaultSharedPreferences);
SharedPreferences defaultSharedPreferences2 = PreferenceManager.getDefaultSharedPreferences(this);
ed.i.e("getDefaultSharedPreferences(context)", defaultSharedPreferences2);
defaultSharedPreferences2.edit().putInt("ANNOYING_DIALOGUE", defaultSharedPreferences.getInt("ANNOYING_DIALOGUE", 0) + 1).apply();
}
boolean z10 = p4.c.f23837a;
if (p4.c.h()) {
return;
}
b4.e.a(this, this, false);
}
public final void p0(ArrayList<Uri> arrayList) {
String str;
if (arrayList.size() > 30) {
m4.n.e(this, "Only 30 images are allowed");
e0();
return;
}
ArrayList arrayList2 = new ArrayList();
for (Uri uri : arrayList) {
try {
str = MimeTypeMap.getSingleton().getExtensionFromMimeType(getContentResolver().getType(uri));
} catch (RemoteException | Exception unused) {
str = null;
}
File Y = Y(str);
if (Y != null) {
try {
InputStream openInputStream = getContentResolver().openInputStream(uri);
String str2 = this.O;
if (openInputStream != null) {
InputStream openInputStream2 = getContentResolver().openInputStream(uri);
String file = Y.toString();
if (openInputStream2 != null && file != null) {
FileOutputStream fileOutputStream = new FileOutputStream(file);
byte[] bArr = new byte[1024];
while (true) {
int read = openInputStream2.read(bArr);
if (read == -1) {
break;
}
fileOutputStream.write(bArr, 0, read);
}
openInputStream2.close();
fileOutputStream.close();
}
arrayList2.add(Y);
Log.d(str2, "createCacheFile: " + Y(str));
Log.d(str2, "createCacheFile: " + uri);
} else {
Log.d(str2, "input stream is null");
}
if (openInputStream != null) {
openInputStream.close();
}
} catch (Exception e10) {
e10.printStackTrace();
}
}
}
if (arrayList2.isEmpty()) {
m4.n.e(this, "File not found");
e0();
return;
}
if (!arrayList2.isEmpty()) {
try {
new ae.a(new org.apache.poi.poifs.filesystem.r((File) arrayList2.get(0)));
throw new td.b("Unsupported version");
} catch (Exception e11) {
e11.printStackTrace();
}
}
Iterator it = arrayList2.iterator();
boolean z10 = false;
while (it.hasNext()) {
if (((File) it.next()).length() / 1048576 > 40) {
z10 = true;
}
}
if (z10) {
m4.n.e(this, "File Size is To Large Select File Under 40MB");
e0();
return;
}
ArrayList<File> arrayList3 = k4.e.f19831w;
if (!arrayList3.isEmpty()) {
arrayList3.clear();
}
arrayList3.addAll(arrayList2);
if (ed.i.a(a0.a.E[0], "image/png")) {
if (arrayList3.size() > 30) {
m4.n.e(this, "Only 30 images are allowed");
e0();
return;
}
} else if (ed.i.a(a0.a.C, "zip")) {
if (arrayList3.size() > 10) {
m4.n.e(this, "Only 10 files are allowed");
e0();
return;
}
} else if (arrayList3.size() > 3) {
m4.n.e(this, "Only 3 files are allowed");
e0();
return;
}
this.U.post(new g4.m(1, this));
new Handler(Looper.getMainLooper()).postDelayed(new h0(3, this), 200L);
}
@Override
public final void z(ArrayList arrayList) {
Log.d("myPermission", "not allow");
if (ke.b.b(this, arrayList)) {
new a.b(this).a().b();
}
}
}