导航菜单

页面标题

页面副标题

Minits v4.9.3.32 - XoneBaseActivity.java 源代码

正在查看: Minits v4.9.3.32 应用的 XoneBaseActivity.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.xone.android.framework.activities;

import C8.o;
import C9.h;
import F8.C0159v;
import F8.I;
import F8.K;
import F8.L;
import N0.B0;
import N0.Z;
import Q8.k;
import ab.AbstractC0399a;
import android.R;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.AppOpsManager;
import android.app.DatePickerDialog;
import android.app.Dialog;
import android.app.PictureInPictureParams;
import android.app.ProgressDialog;
import android.app.TimePickerDialog;
import android.content.BroadcastReceiver;
import android.content.ClipData;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.graphics.Color;
import android.graphics.Point;
import android.graphics.Typeface;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.GradientDrawable;
import android.graphics.drawable.LayerDrawable;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.os.Parcelable;
import android.os.Process;
import android.provider.Settings;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.util.DisplayMetrics;
import android.view.Display;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewParent;
import android.view.Window;
import android.view.animation.Animation;
import android.view.inputmethod.InputMethodManager;
import android.webkit.ValueCallback;
import android.widget.AdapterView;
import android.widget.BaseAdapter;
import android.widget.DatePicker;
import android.widget.EditText;
import android.widget.FrameLayout;
import android.widget.ImageButton;
import android.widget.LinearLayout;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widget.PopupWindow;
import android.widget.SimpleAdapter;
import android.widget.TextView;
import android.widget.TimePicker;
import androidx.activity.result.b;
import androidx.activity.result.c;
import androidx.coordinatorlayout.widget.CoordinatorLayout;
import androidx.drawerlayout.widget.DrawerLayout;
import androidx.fragment.app.j;
import androidx.fragment.app.w;
import androidx.lifecycle.G;
import b8.C1;
import b8.G2;
import b8.K1;
import b8.M1;
import b8.P1;
import bb.AbstractC0515a;
import c8.C0529g;
import cb.AbstractC0558a;
import com.google.android.material.bottomsheet.BottomSheetBehavior;
import com.google.android.material.snackbar.Snackbar;
import com.xone.android.browser.activities.XoneFileBrowser;
import com.xone.android.browser.activities.XoneFileBrowserLandscape;
import com.xone.android.browser.activities.XoneFileBrowserPortrait;
import com.xone.android.framework.AbstractC0564f;
import com.xone.android.framework.AbstractC0565g;
import com.xone.android.framework.AbstractC0568j;
import com.xone.android.framework.XoneGlobalUI;
import com.xone.android.framework.activities.XoneBaseActivity;
import com.xone.android.framework.mainEntry;
import com.xone.android.framework.views.EditFramePage;
import com.xone.android.framework.views.XOneDataObjectView;
import com.xone.android.framework.views.XOneEditText;
import com.xone.android.framework.views.XOneWebView;
import com.xone.android.framework.xoneApp;
import com.xone.android.javascript.XOneJavascript;
import com.xone.android.nfc.runtimeobjects.XoneNFCRuntime;
import com.xone.android.script.events.EventCallbackTask;
import com.xone.android.script.events.EventOnKeyDown;
import com.xone.android.utils.Utils;
import com.xone.annotations.ScriptAllowed;
import com.xone.interfaces.IBindable;
import com.xone.interfaces.IRuntimeObject;
import com.xone.interfaces.IXoneApp;
import com.xone.interfaces.IXoneCollection;
import com.xone.interfaces.IXoneObject;
import e8.C0602a;
import eb.AbstractC0665a;
import f8.C0673h;
import f8.C0674i;
import f8.C0676k;
import f8.C0679n;
import fa.h;
import fb.AbstractC0689b;
import fb.AbstractC0698k;
import fb.n;
import fb.o;
import fb.q;
import fb.t;
import fb.u;
import g8.DialogC0706f;
import g8.ProgressDialogC0704d;
import g8.ProgressDialogC0709i;
import ga.AbstractC0730b;
import h8.C0737b;
import h8.C0738c;
import ha.AbstractC0751f;
import ha.r;
import ha.v;
import hc.D;
import j8.C0785d;
import j8.C0786e;
import ja.C0789a;
import java.io.File;
import java.lang.ref.WeakReference;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import k8.HandlerC0813n;
import ka.C0819d;
import ka.EnumC0821f;
import l8.C0834e;
import m4.l;
import org.json.JSONObject;
import org.mozilla.javascript.C0893d0;
import org.mozilla.javascript.C0932x0;
import org.mozilla.javascript.JavaScriptException;
import org.mozilla.javascript.Q0;
import p7.m;
import p8.AnimationAnimationListenerC0942f;
import qa.EnumC0975b;
import ra.e;
import ra.f;
import ua.E;
import ua.F;
import ua.InterfaceC1032j0;
import ua.InterfaceC1034k0;
import ua.InterfaceC1036l0;
import ua.InterfaceC1046q0;
import ua.InterfaceC1049s0;
import ua.InterfaceC1056w;
import ua.InterfaceC1057x;
import ua.O0;
import ua.P;
import ua.U;
import ua.U0;
import ua.V;
import ua.W;
import ua.X;
import ua.x0;
import va.C1066a;
import va.d;
import w7.s;
import w8.C1071a;
import wa.g;
import xone.runtime.core.XoneApplication;
import xone.runtime.core.XoneDataObject;
import y8.RunnableC1097a;

@ScriptAllowed
public abstract class XoneBaseActivity extends j implements InterfaceC1036l0, F, InterfaceC1057x, IRuntimeObject, IBindable, DatePickerDialog.OnDateSetListener, TimePickerDialog.OnTimeSetListener {
    public static final IntentFilter A0 = d2();
    public static final Map B0 = f2();
    public static final Map C0 = new Hashtable();
    public int B;
    public CharSequence C;
    public CharSequence D;
    public String E;
    public String F;
    public int G;
    public int H;
    public int I;
    public boolean J;
    public boolean K;
    public boolean L;
    public K M;
    public K N;
    public int O;
    public int P;
    public int Q;
    public String R;
    public boolean S;
    public boolean T;
    public int U;
    public InterfaceC1032j0 V;
    public InterfaceC1032j0 W;
    public boolean X;
    public C0679n Y;
    public int Z;
    public IXoneObject a0;
    public C0674i b0;
    public String c0;
    public File d0;
    public Object e0;
    public Object f0;
    public IXoneObject g0;
    public int h0;
    public int i0;
    public int j0;
    public int k0;
    public String l0;
    public Object m0;
    public C0834e n;
    public d n0;
    public ProgressDialog o;
    public boolean o0;
    public boolean p0;
    public int q;
    public AlertDialog q0;
    public h r0;
    public ProgressDialogC0704d s;
    public C0786e s0;
    public String t;
    public String t0;
    public View u;
    public View v;
    public Integer v0;
    public IXoneObject w;
    public Snackbar w0;
    public IXoneCollection x;
    public int y;
    public b y0;
    public final HandlerC0813n l = new HandlerC0813n(this);
    public final C1071a m = new C1071a(this);
    public int p = -1;
    public final AtomicInteger r = new AtomicInteger(0);
    public int z = -1;
    public int A = 0;
    public final List u0 = new ArrayList();
    public final Map x0 = new HashMap();
    public final c z0 = registerForActivityResult(new e.d(), new b() {
        public final void a(Object obj) {
            XoneBaseActivity.this.f4((androidx.activity.result.a) obj);
        }
    });

    public class a implements TextWatcher {
        public final ListView l;

        public a(ListView listView) {
            this.l = listView;
        }

        @Override
        public void afterTextChanged(Editable editable) {
        }

        @Override
        public void beforeTextChanged(CharSequence charSequence, int i, int i2, int i3) {
        }

        @Override
        public void onTextChanged(CharSequence charSequence, int i, int i2, int i3) {
            try {
                String charSequence2 = charSequence.toString();
                if (TextUtils.isEmpty(charSequence2)) {
                    return;
                }
                String lowerCase = charSequence2.toLowerCase(Locale.getDefault());
                ListAdapter adapter = this.l.getAdapter();
                Object obj = null;
                for (int i4 = 0; i4 < adapter.getCount(); i4++) {
                    Object item = adapter.getItem(i4);
                    if (item instanceof Map) {
                        obj = ((Map) item).get("title");
                    } else if (item instanceof g) {
                        obj = ((g) item).k();
                    }
                    if ((obj instanceof CharSequence) && obj.toString().toLowerCase().startsWith(lowerCase)) {
                        this.l.setSelection(i4);
                        return;
                    }
                }
            } catch (Exception e) {
                XoneBaseActivity.this.b(e);
            }
        }
    }

    public static Point A2(int i, int i2, int i3) {
        if (i3 <= 1) {
            return new Point(i, i2);
        }
        if (i2 % i3 > 0) {
            i2 = (i2 / i3) * i3;
        }
        if (i2 >= 60) {
            i++;
            i2 = 0;
        }
        if (i >= 24) {
            i -= 24;
        }
        return new Point(i, i2);
    }

    public static IXoneCollection B1(String str) {
        IXoneApp c1 = xoneApp.c1();
        if (c1 == null) {
            return null;
        }
        try {
            return c1.GetCollection(str);
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
    }

    public static String C1(IXoneCollection iXoneCollection, String str, String str2, String str3) {
        if (iXoneCollection != null) {
            try {
                String GroupPropertyValue = iXoneCollection.GroupPropertyValue(str, str2);
                if (!TextUtils.isEmpty(GroupPropertyValue)) {
                    return GroupPropertyValue;
                }
            } catch (Exception e) {
                e.printStackTrace();
                return str3;
            }
        }
        return str3;
    }

    public static xoneApp C2() {
        return xoneApp.Z0();
    }

    public static void C4(Activity activity, boolean z, CharSequence charSequence) {
        if (activity == null || TextUtils.isEmpty(charSequence)) {
            return;
        }
        Intent intent = new Intent(z ? "android.intent.action.CALL" : "android.intent.action.DIAL", Uri.parse("tel:" + ((Object) charSequence)));
        intent.addFlags(268435456);
        activity.startActivity(intent);
        xoneApp.Y2(charSequence.toString());
    }

    public static int D1(IXoneObject iXoneObject, String str, String str2, int i) {
        if (iXoneObject != null && !TextUtils.isEmpty(str)) {
            try {
                String FieldPropertyValue = iXoneObject.FieldPropertyValue(str, str2);
                if (!TextUtils.isEmpty(FieldPropertyValue)) {
                    return q.p(FieldPropertyValue, i);
                }
            } catch (Exception unused) {
            }
        }
        return i;
    }

    public static IXoneApp D2() {
        return xoneApp.c1();
    }

    public static String E3(U0 u0) {
        StringBuilder sb2 = new StringBuilder();
        if (Utils.d3(C2())) {
            String message = u0.getMessage();
            if (TextUtils.isEmpty(message)) {
                message = Utils.M2(u0);
            }
            sb2.append("VBScript runtime exception.\n");
            sb2.append("Message: ");
            sb2.append(message);
        } else {
            sb2.append(C2().getText(w7.h.f));
        }
        return sb2.toString();
    }

    public static void K4(View view) {
        if (view.getBackground() != null && (view.getBackground() instanceof BitmapDrawable)) {
            view.setBackground(null);
        }
        if (view instanceof E) {
            ((E) view).n(false, true);
        }
    }

    public static void L4(ViewGroup viewGroup) {
        if (viewGroup == null) {
            return;
        }
        for (int i = 0; i < viewGroup.getChildCount(); i++) {
            if (viewGroup.getChildAt(i) instanceof ViewGroup) {
                try {
                    L4((ViewGroup) viewGroup.getChildAt(i));
                } catch (Exception e) {
                    e.printStackTrace();
                }
            } else {
                try {
                    K4(viewGroup.getChildAt(i));
                } catch (Exception e2) {
                    e2.printStackTrace();
                }
            }
        }
        if (!(viewGroup instanceof AdapterView)) {
            try {
                viewGroup.removeAllViews();
            } catch (Exception e3) {
                e3.printStackTrace();
            }
        }
        try {
            K4(viewGroup);
        } catch (Exception e4) {
            e4.printStackTrace();
        }
    }

    public static void O1(View view, IXoneObject iXoneObject, String str) {
        try {
            String FieldPropertyValue = iXoneObject.FieldPropertyValue(str, "accessibility-enabled");
            if (TextUtils.isEmpty(FieldPropertyValue)) {
                return;
            }
            boolean l = t.l(FieldPropertyValue, false);
            String f = AbstractC0665a.f(iXoneObject, str);
            view.setImportantForAccessibility(l ? 1 : 2);
            if (TextUtils.isEmpty(f)) {
                return;
            }
            view.setContentDescription(f);
        } catch (Exception e) {
            throw AbstractC0751f.e(e);
        }
    }

    public static AlertDialog O2(Activity activity, Throwable th, String str) {
        AlertDialog create = R2(activity, th, str, null).create();
        create.setOwnerActivity(activity);
        return create;
    }

    public static Integer O4(String str) {
        if (TextUtils.isEmpty(str)) {
            return null;
        }
        str.getClass();
        switch (str) {
        }
        return null;
    }

    public static void P0(DrawerLayout drawerLayout, View view) {
        if (drawerLayout.e0(view)) {
            drawerLayout.D(view);
        } else {
            drawerLayout.m0(view);
        }
    }

    public static void P1(Intent intent, IXoneCollection iXoneCollection) {
        String u1 = u1(iXoneCollection, "animation-in", null);
        String u12 = u1(iXoneCollection, "animation-out", null);
        if (!TextUtils.isEmpty(u1)) {
            intent.putExtra("animation-in", u1);
        }
        if (TextUtils.isEmpty(u12)) {
            return;
        }
        intent.putExtra("animation-out", u12);
    }

    public static int P4(IXoneObject iXoneObject, String str) {
        int p = iXoneObject != null ? q.p(iXoneObject.FieldPropertyValue(str, "date-mode"), 0) : 0;
        if (Build.VERSION.SDK_INT > 23) {
            return p != 0 ? p != 1 ? p != 2 ? R.style.Theme.DeviceDefault.Dialog.Alert : R.style.Theme.DeviceDefault.Light.Dialog.Alert : R.style.Theme.Holo.Dialog : p;
        }
        if (p == 1) {
            return 2;
        }
        if (p != 2) {
            return p != 3 ? 3 : 4;
        }
        return 5;
    }

    public static int Q4(int i) {
        if (Build.VERSION.SDK_INT > 23) {
            return i != 0 ? i != 1 ? i != 2 ? R.style.Theme.DeviceDefault.Dialog.Alert : R.style.Theme.DeviceDefault.Light.Dialog.Alert : R.style.Theme.Holo.Dialog : i;
        }
        if (i == 1) {
            return 2;
        }
        if (i != 2) {
            return i != 3 ? 3 : 4;
        }
        return 5;
    }

    public static String Q5(int i) {
        switch (i) {
            case 1:
                return "dragging";
            case 2:
                return "settling";
            case 3:
                return "expanded";
            case 4:
                return "collapsed";
            case 5:
                return "hidden";
            case 6:
                return "half_expanded";
            default:
                return "unknown";
        }
    }

    public static AlertDialog.Builder R2(Activity activity, Throwable th, final String str, DialogInterface.OnClickListener onClickListener) {
        AlertDialog.Builder g = AbstractC0665a.g(activity);
        if (th instanceof C0738c) {
            Throwable cause = th.getCause();
            if (cause instanceof ra.c) {
                th = cause;
            }
        }
        boolean z = false;
        final String str2 = null;
        if ((th instanceof JavaScriptException) || (th instanceof ra.c) || (th instanceof e) || (th instanceof D) || (th instanceof ha.q)) {
            if (TextUtils.isEmpty(str)) {
                str = th.getMessage();
            }
            g.setIcon(R.drawable.ic_dialog_alert);
            g.setTitle(AbstractC0568j.q);
            if (th instanceof ha.q) {
                g.setCancelable(false);
            }
        } else {
            if (th instanceof U0) {
                str = E3((U0) th);
                str2 = Utils.N2(th);
                g.setIcon(R.drawable.ic_dialog_alert);
                g.setTitle(AbstractC0568j.q);
            } else if (th instanceof f) {
                if (AbstractC0515a.c(((f) th).a())) {
                    if (TextUtils.isEmpty(str)) {
                        str = th.getMessage();
                    }
                    if (TextUtils.isEmpty(str)) {
                        str = Utils.M2(th);
                    }
                } else {
                    if (!Utils.d3(C2())) {
                        str = C2().getString(w7.h.f);
                    } else if (TextUtils.isEmpty(str)) {
                        str = Utils.M2(th);
                    }
                    str2 = Utils.N2(th);
                    g.setIcon(R.drawable.ic_dialog_alert);
                    g.setTitle(AbstractC0568j.q);
                }
            } else if (th instanceof InterfaceC1049s0) {
                InterfaceC1049s0 interfaceC1049s0 = (InterfaceC1049s0) th;
                if (interfaceC1049s0.a()) {
                    str = th.getMessage();
                } else if (TextUtils.isEmpty(str)) {
                    if (th instanceof C0738c) {
                        str = th.getMessage();
                        if (TextUtils.isEmpty(str)) {
                            str = "No details available";
                        }
                    } else {
                        str = Utils.M2(th);
                    }
                }
                str2 = Utils.N2(th);
                z = interfaceC1049s0.b();
                g.setIcon(R.drawable.ic_dialog_alert);
                g.setTitle(AbstractC0568j.q);
            } else if (th instanceof C0738c) {
                Throwable cause2 = th.getCause();
                boolean z2 = cause2 instanceof InterfaceC1049s0;
                if (z2 && ((InterfaceC1049s0) cause2).a()) {
                    str = cause2.getMessage();
                } else if (!Utils.d3(C2())) {
                    str = C2().getString(w7.h.f);
                } else if (TextUtils.isEmpty(str)) {
                    str = th.getMessage();
                    if (TextUtils.isEmpty(str)) {
                        str = "No details available";
                    }
                }
                String N2 = Utils.N2(th);
                z = z2 ? ((InterfaceC1049s0) cause2).b() : true;
                g.setIcon(R.drawable.ic_dialog_alert);
                g.setTitle(AbstractC0568j.q);
                str2 = N2;
            } else if (th != null) {
                if (!Utils.d3(C2())) {
                    str = C2().getString(w7.h.f);
                } else if (TextUtils.isEmpty(str)) {
                    str = Utils.M2(th);
                }
                str2 = Utils.N2(th);
                g.setIcon(R.drawable.ic_dialog_alert);
                g.setTitle(AbstractC0568j.q);
            } else {
                g.setIcon(R.drawable.ic_dialog_alert);
                g.setTitle(AbstractC0568j.q);
            }
            z = true;
        }
        if (TextUtils.isEmpty(str)) {
            str = C2().getString(w7.h.f);
        }
        g.setMessage(str);
        if (onClickListener == null) {
            onClickListener = new m();
        }
        g.setPositiveButton(AbstractC0568j.a, onClickListener);
        if (z) {
            final Context applicationContext = activity.getApplicationContext();
            final WeakReference weakReference = new WeakReference(activity.findViewById(R.id.content));
            g.setNeutralButton(w7.h.g, new DialogInterface.OnClickListener() {
                @Override
                public final void onClick(DialogInterface dialogInterface, int i) {
                    w7.s.r(applicationContext, weakReference, str, str2);
                }
            });
        }
        return g;
    }

    public static B0 T0(View view, B0 b0) {
        C0.b f = b0.f(B0.o.d());
        ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) view.getLayoutParams();
        marginLayoutParams.topMargin = f.b;
        marginLayoutParams.leftMargin = f.a;
        marginLayoutParams.bottomMargin = f.d;
        marginLayoutParams.rightMargin = f.c;
        view.setLayoutParams(marginLayoutParams);
        return B0.b;
    }

    public static void U0(View view, InputMethodManager inputMethodManager) {
        if (view.isFocused()) {
            inputMethodManager.showSoftInput(view, 2);
        } else if (view.requestFocus()) {
            inputMethodManager.showSoftInput(view, 2);
        } else {
            Utils.l("XOneAndroidFramework", "ShowSoftwareKeyboard(): Keyboard was explicitly ordered to be shown but the target view couldn't be focused");
        }
    }

    public static void V0(ProgressDialog progressDialog) {
        progressDialog.setMax(0);
        progressDialog.setProgress(0);
        progressDialog.show();
    }

    public static String W1(String str) {
        return TextUtils.isEmpty(str) ? str : ((str.startsWith("\"") && str.endsWith("\"")) || (str.startsWith("'") && str.endsWith("'"))) ? str.substring(1, str.length() - 1) : str;
    }

    public static void X5(WeakReference weakReference, IXoneObject iXoneObject, String str, Object[] objArr, boolean z, boolean z2) {
        Thread.currentThread().setName("UpdateDataObjectValueThreadV3");
        ?? r2 = (XoneBaseActivity) weakReference.get();
        if (r2 == 0 || r2.c()) {
            return;
        }
        try {
            if (AbstractC0558a.i(r2, iXoneObject, str, objArr) && !z2) {
                if (z) {
                    r2.I(null);
                } else {
                    r2.i2(iXoneObject, str);
                }
            }
        } catch (Exception e) {
            r2.b(e);
        }
    }

    public static Drawable Y2(View view, I7.f fVar, int[] iArr, int i, boolean z, Drawable drawable) {
        int i2 = fVar.v;
        if (i2 != 0 || fVar.w != 0 || fVar.x != 0 || fVar.y != 0) {
            int i3 = fVar.w;
            int i4 = fVar.y;
            int i5 = fVar.x;
            float[] fArr = {i2, i2, i3, i3, i4, i4, i5, i5};
            GradientDrawable gradientDrawable = new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, iArr);
            gradientDrawable.setCornerRadii(fArr);
            gradientDrawable.setShape(0);
            if (z) {
                gradientDrawable.setStroke((int) Utils.y4(view.getContext(), fVar.S), i);
            }
            return drawable != null ? new LayerDrawable(new Drawable[]{gradientDrawable, drawable}) : gradientDrawable;
        }
        int i6 = fVar.u;
        if (i6 == 0) {
            GradientDrawable gradientDrawable2 = new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, iArr);
            gradientDrawable2.setShape(0);
            if (z) {
                gradientDrawable2.setStroke((int) Utils.y4(view.getContext(), fVar.S), i);
            }
            return drawable != null ? new LayerDrawable(new Drawable[]{gradientDrawable2, drawable}) : gradientDrawable2;
        }
        float f = i6 * 2;
        GradientDrawable gradientDrawable3 = new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, iArr);
        gradientDrawable3.setCornerRadii(new float[]{f, f, f, f, f, f, f, f});
        gradientDrawable3.setShape(0);
        if (z) {
            gradientDrawable3.setStroke((int) Utils.y4(view.getContext(), fVar.S), i);
        }
        view.setOutlineProvider(new D8.d(f));
        view.setClipToOutline(true);
        return drawable != null ? new LayerDrawable(new Drawable[]{gradientDrawable3, drawable}) : gradientDrawable3;
    }

    public static void Z0(EditText editText) {
        editText.requestFocus();
        editText.selectAll();
    }

    private DatePickerDialog Z1() {
        View u3 = u3();
        IXoneObject dataObject = getDataObject();
        Calendar calendar = Calendar.getInstance();
        return new DatePickerDialog(this, P4(dataObject, (String) u3.getTag()), this, calendar.get(1), calendar.get(2), calendar.get(5));
    }

    public static IntentFilter d2() {
        IntentFilter intentFilter = new IntentFilter();
        intentFilter.addAction("com.xone.android.framework.FINISH_ALL_ACTIVITIES_ACTIVITY_ACTION");
        return intentFilter;
    }

    private TimePickerDialog e2() {
        int i;
        View u3 = u3();
        IXoneObject dataObject = getDataObject();
        Calendar calendar = Calendar.getInstance();
        int i2 = 0;
        if (u3 != null) {
            String str = (String) u3.getTag();
            if (dataObject == null) {
                throw new NullPointerException("dataObject == null");
            }
            i = q.p(dataObject.FieldPropertyValue(str, "time-interval"), 1);
            int p = q.p(dataObject.FieldPropertyValue(str, "time-mode"), 0);
            StringBuilder sb2 = new StringBuilder(((TextView) u3).getText());
            if (!TextUtils.isEmpty(sb2)) {
                String sb3 = sb2.toString();
                int O2 = Utils.O2(sb3, 0);
                int O22 = Utils.O2(sb3, 1);
                if (O2 >= 0 && O22 >= 0) {
                    calendar.set(11, O2);
                    calendar.set(12, O22);
                }
            }
            i2 = p;
        } else {
            i = 1;
        }
        int Q4 = Q4(i2);
        return i <= 1 ? new TimePickerDialog(this, Q4, this, calendar.get(10), calendar.get(12), true) : new TimePickerDialog(this, Q4, this, calendar.get(10), calendar.get(12) / i, true);
    }

    public static Map f2() {
        Hashtable hashtable = new Hashtable();
        Wa.d dVar = new Wa.d("Refresh", O0.a);
        dVar.c("PropName", 1, false);
        String name = dVar.getName();
        Locale locale = Locale.US;
        hashtable.put(name.toLowerCase(locale), dVar);
        Wa.d dVar2 = new Wa.d("RefreshAll", O0.a);
        dVar2.c("PropName", 1, false);
        hashtable.put(dVar2.getName().toLowerCase(locale), dVar2);
        Wa.d dVar3 = new Wa.d("bind", O0.a);
        dVar3.c("PropName", 1, false);
        dVar3.c("EventName", 1, false);
        dVar3.c("FunctionName", 255, false);
        hashtable.put(dVar3.getName().toLowerCase(locale), dVar3);
        Wa.d dVar4 = new Wa.d("setFocus", O0.a);
        dVar4.c("ControlName", 1, false);
        dVar4.c("ShowKeyboard", 6, true);
        hashtable.put(dVar4.getName().toLowerCase(locale), dVar4);
        Wa.d dVar5 = new Wa.d("GetPositionOnScreen", O0.a);
        dVar5.c("ControlName", 1, false);
        hashtable.put(dVar5.getName().toLowerCase(locale), dVar5);
        Wa.d dVar6 = new Wa.d("pickFile", O0.a);
        dVar6.c("PropName", 1, false);
        dVar6.c("Extension", 1, false);
        dVar6.c("PictureOnly", 1, false);
        hashtable.put(dVar6.getName().toLowerCase(locale), dVar6);
        Wa.d dVar7 = new Wa.d("InjectJavascript", O0.a);
        dVar7.c("WebPropName", 1, false);
        dVar7.c("Script", 1, false);
        hashtable.put(dVar7.getName().toLowerCase(locale), dVar7);
        Wa.d dVar8 = new Wa.d("InjectTouchEvent", O0.a);
        dVar8.c("Data", 8, false);
        hashtable.put(dVar8.getName().toLowerCase(locale), dVar8);
        Wa.d dVar9 = new Wa.d("RefreshContentRow", O0.a);
        dVar9.c("ContentPropName", 1, false);
        hashtable.put(dVar9.getName().toLowerCase(locale), dVar9);
        Wa.d dVar10 = new Wa.d("RefreshContentSelectedRow", O0.a);
        dVar10.c("ContentPropName", 1, false);
        hashtable.put(dVar10.getName().toLowerCase(locale), dVar10);
        Wa.d dVar11 = new Wa.d("DrawMapRoute", O0.a);
        dVar11.c("sMapPropName", 1, false);
        dVar11.c("nDestinationLatitude", 5, false);
        dVar11.c("nDestinationLongitude", 5, false);
        dVar11.c("sSourceLatitude", 5, false);
        dVar11.c("sSourceLongitude", 5, false);
        dVar11.c("sMode", 1, true);
        dVar11.c("sStrokeColor", 1, true);
        hashtable.put(dVar11.getName().toLowerCase(locale), dVar11);
        Wa.d dVar12 = new Wa.d("ShowGroup", O0.a);
        dVar12.c("GroupId", 1, false);
        dVar12.c("InAnimation", 1, false);
        dVar12.c("InAnimationDuration", 2, false);
        dVar12.c("OutAnimation", 1, false);
        dVar12.c("OutAnimationDuration", 2, false);
        hashtable.put(dVar12.getName().toLowerCase(locale), dVar12);
        Wa.d dVar13 = new Wa.d("HideGroup", O0.a);
        dVar13.c("GroupId", 1, false);
        hashtable.put(dVar13.getName().toLowerCase(locale), dVar13);
        Wa.d dVar14 = new Wa.d("ToggleGroup", O0.a);
        dVar14.c("GroupId", 1, false);
        hashtable.put(dVar14.getName().toLowerCase(locale), dVar14);
        Wa.d dVar15 = new Wa.d("LockGroup", O0.a);
        dVar15.c("GroupId", 1, false);
        hashtable.put(dVar15.getName().toLowerCase(locale), dVar15);
        Wa.d dVar16 = new Wa.d("UnlockGroup", O0.a);
        dVar16.c("GroupId", 1, false);
        hashtable.put(dVar16.getName().toLowerCase(locale), dVar16);
        Wa.d dVar17 = new Wa.d("GetCurrentOrientation", O0.a);
        hashtable.put(dVar17.getName().toLowerCase(locale), dVar17);
        Wa.d dVar18 = new Wa.d("SetOrientation", O0.a);
        dVar18.c("Orientation", 1, true);
        hashtable.put(dVar18.getName().toLowerCase(locale), dVar18);
        Wa.d dVar19 = new Wa.d("RefreshValue", O0.a);
        dVar19.c("propertiesandframes", 1, false);
        hashtable.put(dVar19.getName().toLowerCase(locale), dVar19);
        Wa.d dVar20 = new Wa.d("SetSelection", O0.a);
        dVar20.c("propertyName", 1, false);
        dVar20.c("position", 2, false);
        hashtable.put(dVar20.getName().toLowerCase(locale), dVar20);
        Wa.d dVar21 = new Wa.d("SelectAll", O0.a);
        dVar21.c("propertyName", 1, false);
        hashtable.put(dVar21.getName().toLowerCase(locale), dVar21);
        Wa.d dVar22 = new Wa.d("ClearFocus", O0.a);
        dVar22.c("propertyName", 1, false);
        hashtable.put(dVar22.getName().toLowerCase(locale), dVar22);
        Wa.d dVar23 = new Wa.d("SetBottomSheetState", O0.a);
        dVar23.c("propertyName", 1, false);
        dVar23.c("state", 1, false);
        hashtable.put(dVar23.getName().toLowerCase(locale), dVar23);
        Wa.d dVar24 = new Wa.d("GetBottomSheetState", O0.a);
        dVar24.c("propertyName", 1, false);
        hashtable.put(dVar24.getName().toLowerCase(locale), dVar24);
        Wa.d dVar25 = new Wa.d("Relayout", O0.a);
        hashtable.put(dVar25.getName().toLowerCase(locale), dVar25);
        Wa.d dVar26 = new Wa.d("GetControl", O0.a);
        dVar26.c("propertyName", 1, false);
        hashtable.put(dVar26.getName().toLowerCase(locale), dVar26);
        Wa.d dVar27 = new Wa.d("Exit", O0.a);
        hashtable.put(dVar27.getName().toLowerCase(locale), dVar27);
        Wa.d dVar28 = new Wa.d("EnterPipMode", O0.a);
        hashtable.put(dVar28.getName().toLowerCase(locale), dVar28);
        Wa.d dVar29 = new Wa.d("CaptureImage", O0.a);
        dVar29.c("TargetPropertyName", 1, false);
        dVar29.c("CapturePropertyName", 1, true);
        hashtable.put(dVar29.getName().toLowerCase(locale), dVar29);
        Wa.d dVar30 = new Wa.d("EnableFullScreen", O0.a);
        dVar30.c("IgnoreSafeArea", 6, true);
        hashtable.put(dVar30.getName().toLowerCase(locale), dVar30);
        Wa.d dVar31 = new Wa.d("DisableFullScreen", O0.a);
        hashtable.put(dVar31.getName().toLowerCase(locale), dVar31);
        Wa.d dVar32 = new Wa.d("IsDarkMode", O0.a);
        hashtable.put(dVar32.getName().toLowerCase(locale), dVar32);
        Wa.d dVar33 = new Wa.d("ExecuteActionAfterDelay", O0.a);
        dVar33.c("NodeName", 1, false);
        dVar33.c("Delay", 5, false);
        hashtable.put(dVar33.getName().toLowerCase(locale), dVar33);
        Wa.d dVar34 = new Wa.d("ShowSoftwareKeyboard", O0.a);
        dVar34.c("PropertyName", 1, false);
        hashtable.put(dVar34.getName().toLowerCase(locale), dVar34);
        Wa.d dVar35 = new Wa.d("HideSoftwareKeyboard", O0.a);
        hashtable.put(dVar35.getName().toLowerCase(locale), dVar35);
        Wa.d dVar36 = new Wa.d("RequestAppReview", O0.a);
        hashtable.put(dVar36.getName().toLowerCase(locale), dVar36);
        Wa.d dVar37 = new Wa.d("ShowSnackbar", O0.a);
        dVar37.c("Object", 8, false);
        hashtable.put(dVar37.getName().toLowerCase(locale), dVar37);
        Wa.d dVar38 = new Wa.d("HideSnackbar", O0.a);
        hashtable.put(dVar38.getName().toLowerCase(locale), dVar38);
        return hashtable;
    }

    private File q2(Uri uri) {
        File file = new File(xoneApp.Z0().getFilesPath());
        C0674i c0674i = this.b0;
        return u.c(this, uri, file, c0674i != null && c0674i.b(), "attach_");
    }

    public static String q3(IXoneObject iXoneObject) {
        try {
            int propertyCount = iXoneObject.getOwnerCollection().getPropertyCount();
            for (int i = 0; i < propertyCount; i++) {
                if (t.l(iXoneObject.FieldPropertyValue(iXoneObject.getOwnerCollection().PropertyName(i), "barcode"), false)) {
                    return iXoneObject.getOwnerCollection().PropertyName(i);
                }
            }
            return null;
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
    }

    public static void r0(InterfaceC1056w interfaceC1056w) {
        try {
            interfaceC1056w.O();
        } catch (Exception e) {
            interfaceC1056w.b(e);
        }
    }

    public static boolean s1(IXoneObject iXoneObject, String str, String str2, boolean z) {
        if (iXoneObject != null && !TextUtils.isEmpty(str)) {
            try {
                String FieldPropertyValue = iXoneObject.FieldPropertyValue(str, str2);
                if (!TextUtils.isEmpty(FieldPropertyValue)) {
                    return t.l(FieldPropertyValue, z);
                }
            } catch (Exception unused) {
            }
        }
        return z;
    }

    public static String t1(IXoneCollection iXoneCollection, String str) {
        return u1(iXoneCollection, str, "");
    }

    public static String u1(IXoneCollection iXoneCollection, String str, String str2) {
        if (iXoneCollection != null) {
            try {
                String CollPropertyValue = iXoneCollection.CollPropertyValue(str);
                if (!TextUtils.isEmpty(CollPropertyValue)) {
                    return CollPropertyValue;
                }
            } catch (Exception e) {
                e.printStackTrace();
                return str2;
            }
        }
        return str2;
    }

    public static x0 u2(View view) {
        if (view == null) {
            return null;
        }
        return v2(view.getParent());
    }

    public static void v1(Dialog dialog) {
        if (dialog == null) {
            return;
        }
        try {
            if (dialog.isShowing()) {
                dialog.dismiss();
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public static x0 v2(ViewParent viewParent) {
        if (viewParent == null) {
            return null;
        }
        return viewParent instanceof x0 ? (x0) viewParent : v2(viewParent.getParent());
    }

    public static String w1(IXoneObject iXoneObject, String str, String str2) {
        return x1(iXoneObject, str, str2, "");
    }

    public static IXoneObject w2(View view) {
        if (view == null) {
            return null;
        }
        return x2(view.getParent());
    }

    public static String x1(IXoneObject iXoneObject, String str, String str2, String str3) {
        if (iXoneObject != null && !TextUtils.isEmpty(str)) {
            try {
                String FieldPropertyValue = iXoneObject.FieldPropertyValue(str, str2);
                if (!TextUtils.isEmpty(FieldPropertyValue)) {
                    return FieldPropertyValue;
                }
            } catch (Exception unused) {
            }
        }
        return str3;
    }

    public static IXoneObject x2(ViewParent viewParent) {
        if (viewParent == null) {
            return null;
        }
        return viewParent instanceof x0 ? ((x0) viewParent).getDataObject() : x2(viewParent.getParent());
    }

    public static void x5(EditText editText, int i, int i2) {
        editText.setInputType(i);
        editText.setSelection(i2);
    }

    public static String y1(IXoneObject iXoneObject, String str, String str2) {
        return z1(iXoneObject, str, str2, null);
    }

    public static Object y2(View view) {
        x0 u2 = u2(view);
        if (u2 == null) {
            return null;
        }
        return u2.getObjectId();
    }

    public static Intent y3(IXoneCollection iXoneCollection) {
        xoneApp C2;
        Intent intent;
        C2 = C2();
        String t1 = t1(iXoneCollection, "bgcolor");
        String t12 = t1(iXoneCollection, "status-bar-color");
        String u1 = u1(iXoneCollection, "screen-orientation", C2.E1());
        String u12 = u1(iXoneCollection, "window-keyboard-behaviour", "");
        boolean e = q.e(t1(iXoneCollection, "fullscreen"));
        boolean e2 = q.e(t1(iXoneCollection, "ignore-safe-area"));
        u1.getClass();
        switch (u1) {
            case "sensorLandscape":
                intent = new Intent(C2, (Class<?>) EditViewHyperSensorLandscape.class);
                break;
            case "reverseLandscape":
                intent = new Intent(C2, (Class<?>) EditViewHyperReverseLandscape.class);
                break;
            case "reversePortrait":
                intent = new Intent(C2, (Class<?>) EditViewHyperReversePortrait.class);
                break;
            case "sensorPortrait":
                intent = new Intent(C2, (Class<?>) EditViewHyperSensorPortrait.class);
                break;
            case "portrait":
                intent = new Intent(C2, (Class<?>) EditViewHyperPortrait.class);
                break;
            case "landscape":
                intent = new Intent(C2, (Class<?>) EditViewHyperLandscape.class);
                break;
            default:
                intent = new Intent(C2, (Class<?>) EditViewHyper.class);
                break;
        }
        intent.putExtra("window-keyboard-behaviour", u12);
        intent.putExtra("bgcolor", t1);
        intent.putExtra("status-bar-color", t12);
        intent.putExtra("fullscreen", e);
        intent.putExtra("ignore-safe-area", e2);
        return intent;
    }

    public static String z1(IXoneObject iXoneObject, String str, String str2, String str3) {
        if (iXoneObject != null) {
            try {
                String NodePropertyValue = iXoneObject.NodePropertyValue("frame", str, str2);
                if (!TextUtils.isEmpty(NodePropertyValue)) {
                    return NodePropertyValue;
                }
            } catch (Exception unused) {
            }
        }
        return str3;
    }

    public static View z2(View view, String str) {
        if (view == null) {
            return null;
        }
        try {
            return view.findViewWithTag(str);
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
    }

    public static Intent z3(IXoneCollection iXoneCollection) {
        xoneApp C2;
        C2 = C2();
        String u1 = u1(iXoneCollection, "screen-orientation", C2.E1());
        u1.getClass();
        switch (u1) {
            case "sensorLandscape":
                return new Intent(C2, (Class<?>) MainListCollectionActivitySensorLandscape.class);
            case "reverseLandscape":
                return new Intent(C2, (Class<?>) MainListCollectionActivityReverseLandscape.class);
            case "reversePortrait":
                return new Intent(C2, (Class<?>) MainListCollectionActivityReversePortrait.class);
            case "sensorPortrait":
                return new Intent(C2, (Class<?>) MainListCollectionActivitySensorPortrait.class);
            case "portrait":
                return new Intent(C2, (Class<?>) MainListCollectionActivityPortrait.class);
            case "landscape":
                return new Intent(C2, (Class<?>) MainListCollectionActivityLandscape.class);
            default:
                return new Intent(C2, (Class<?>) MainListCollectionActivity.class);
        }
    }

    public final InterfaceC1046q0 A1() {
        IXoneApp c1 = xoneApp.c1();
        if (c1 != null && c1.ContainsError()) {
            return c1.getError();
        }
        return null;
    }

    public final View A3(String str) {
        View t2 = t2(R.id.content);
        if (t2 == null) {
            throw new NullPointerException("Cannot obtain root view");
        }
        View findViewWithTag = TextUtils.isEmpty(str) ? t2 : t2.findViewWithTag(str);
        if (findViewWithTag == null) {
            findViewWithTag = t2.findViewWithTag("##FRAME##" + str);
        }
        if (findViewWithTag != null) {
            return findViewWithTag;
        }
        throw new NullPointerException("Cannot obtain view " + str);
    }

    public void A4(String str, Boolean bool) {
        final DrawerLayout t2 = t2(AbstractC0564f.v0);
        int childCount = t2.getChildCount();
        for (int i = 0; i < childCount; i++) {
            final View childAt = t2.getChildAt(i);
            if ((childAt instanceof I) && str.equals(((I) childAt).getGroupId())) {
                if (bool == null) {
                    bool = Boolean.valueOf(!t2.e0(childAt));
                }
                final int i2 = bool.booleanValue() ? 1 : 2;
                fa.j.m(new Runnable() {
                    @Override
                    public final void run() {
                        t2.u0(i2, childAt);
                    }
                });
                return;
            }
        }
    }

    public void A5(ValueCallback valueCallback, Class cls) {
        this.Y = new C0679n(valueCallback, cls);
    }

    public List B2() {
        M4();
        ArrayList arrayList = new ArrayList();
        Iterator it = this.x0.entrySet().iterator();
        while (it.hasNext()) {
            PopupWindow popupWindow = (PopupWindow) ((WeakReference) ((Map.Entry) it.next()).getValue()).get();
            if (popupWindow != null) {
                View contentView = popupWindow.getContentView();
                if (contentView instanceof EditFramePage) {
                    arrayList.add((EditFramePage) contentView);
                }
            }
        }
        return arrayList;
    }

    public CharSequence B3() {
        return this.D;
    }

    public void B4(String str) {
        if (Utils.d3(C2())) {
            StringBuilder sb2 = new StringBuilder();
            if (TextUtils.isEmpty(this.t0)) {
                this.t0 = getClass().getSimpleName();
            }
            if (TextUtils.isEmpty(this.t0)) {
                this.t0 = "XoneBaseActivity";
            }
            sb2.append(this.t0);
            if (TextUtils.isEmpty(str)) {
                sb2.append(" unknown event fired.");
            } else {
                sb2.append(' ');
                sb2.append(str);
                sb2.append(" event fired.");
            }
            IXoneObject dataObject = getDataObject();
            if (dataObject == null) {
                sb2.append(" No data object set yet.");
            } else {
                IXoneCollection ownerCollection = dataObject.getOwnerCollection();
                if (ownerCollection != null) {
                    String name = ownerCollection.getName();
                    if (TextUtils.isEmpty(name)) {
                        sb2.append(" Collection: No owner collection found.");
                    } else {
                        sb2.append(" Collection: ");
                        sb2.append(name);
                    }
                }
                long id = dataObject.getId();
                sb2.append(" Object ID: ");
                sb2.append(id);
            }
            Utils.k("XOneAndroidFramework", sb2);
        }
    }

    public void B5(d dVar) {
        this.n0 = dVar;
    }

    public CharSequence C3() {
        return this.C;
    }

    public void C5(String str) {
        IXoneApp D2;
        if (TextUtils.isEmpty(str) || (D2 = D2()) == null) {
            return;
        }
        w supportFragmentManager = getSupportFragmentManager();
        IXoneCollection GetCollection = D2.GetCollection(str);
        IXoneObject CreateObject = GetCollection.CreateObject();
        GetCollection.AddItem(CreateObject);
        C0786e c0786e = new C0786e(getHandler(), CreateObject);
        this.s0 = c0786e;
        try {
            c0786e.G0(supportFragmentManager, "fragment_custom_dialog");
        } catch (IllegalStateException e) {
            if (!Utils.M2(e).contains("Can not perform this action after onSaveInstanceState")) {
                throw e;
            }
            androidx.fragment.app.E p = supportFragmentManager.p();
            p.d(this.s0, "fragment_custom_dialog");
            p.g();
        }
    }

    public final void w4(View view, n8.m mVar) {
        int width = view.getWidth();
        int height = view.getHeight();
        if (V3()) {
            height = K2().y;
        }
        if (width > 0) {
            m5(width);
        }
        if (height > 0) {
            l5(height);
        }
        if (mVar != null) {
            mVar.a();
        }
    }

    public final void l4(l lVar, g5.c cVar, final Object obj, final Object obj2) {
        if (lVar.p()) {
            l b = cVar.b(this, (g5.b) lVar.l());
            if (obj != null) {
                b.c(new m4.f() {
                    public final void a(m4.l lVar2) {
                        XoneBaseActivity.this.g4(obj, lVar2);
                    }
                });
            }
            if (obj2 != null) {
                b.e(new m4.g() {
                    public final void d(Exception exc) {
                        XoneBaseActivity.this.h4(obj2, exc);
                    }
                });
                return;
            }
            return;
        }
        Exception k = lVar.k();
        if (obj2 != null) {
            XOneJavascript.x(obj2, Utils.M2(k));
        } else if (k != null) {
            b(k);
        }
    }

    public void D5(IXoneObject iXoneObject) {
        if (iXoneObject == null || D2() == null) {
            return;
        }
        w supportFragmentManager = getSupportFragmentManager();
        C0786e c0786e = new C0786e(getHandler(), iXoneObject);
        this.s0 = c0786e;
        try {
            c0786e.G0(supportFragmentManager, "fragment_custom_dialog");
        } catch (IllegalStateException e) {
            if (!Utils.M2(e).contains("Can not perform this action after onSaveInstanceState")) {
                throw e;
            }
            androidx.fragment.app.E p = supportFragmentManager.p();
            p.d(this.s0, "fragment_custom_dialog");
            p.g();
        }
    }

    public final void E1(BroadcastReceiver broadcastReceiver) {
        if (broadcastReceiver == null) {
            return;
        }
        try {
            m1.a.b(this).e(broadcastReceiver);
        } catch (IllegalArgumentException unused) {
        }
    }

    public Object E2() {
        return this.f0;
    }

    public final void E4(DialogInterface dialogInterface) {
        if (dialogInterface != null) {
            dialogInterface.dismiss();
        }
        removeDialog(2002);
    }

    public void E5(String str, IXoneObject iXoneObject) {
        Bundle bundle = new Bundle();
        bundle.putString("name", str);
        bundle.putParcelable("O", (Parcelable) iXoneObject);
        C0785d c0785d = new C0785d();
        c0785d.setArguments(bundle);
        c0785d.Y0(this);
    }

    @Override
    public final int F0() {
        return this.Z;
    }

    public abstract void F1(String str, String str2, int i, String str3, int i2);

    public Object F2() {
        return this.e0;
    }

    public C0679n F3() {
        return this.Y;
    }

    public final void Z3(SimpleAdapter simpleAdapter, IXoneObject iXoneObject, String str, DialogInterface dialogInterface, int i) {
        try {
            k5(simpleAdapter, iXoneObject, str, i);
            if (dialogInterface != null) {
                dialogInterface.dismiss();
            }
            removeDialog(2002);
        } catch (Exception e) {
            b(e);
        }
    }

    public void F5(int i, int i2, CharSequence charSequence) {
        G5(i, getString(i2), charSequence);
    }

    public synchronized void G1(IXoneObject iXoneObject, String str, String str2, boolean z) {
        I1(iXoneObject, str, new String[]{str2}, z);
    }

    public IXoneObject G2() {
        return this.g0;
    }

    public d G3() {
        return this.n0;
    }

    public final void G4(lc.a aVar) {
        if (aVar == null) {
            return;
        }
        try {
            I(aVar.a());
        } catch (Exception e) {
            b(e);
        }
    }

    public void G5(int i, CharSequence charSequence, CharSequence charSequence2) {
        AlertDialog c3 = c3(i, charSequence, charSequence2);
        c3.show();
        TextView textView = (TextView) c3.findViewById(R.id.message);
        if (textView != null) {
            textView.setTypeface(J2());
        }
    }

    @Override
    public W GetTypeInfo(String str) {
        String lowerCase = str.toLowerCase(Locale.US);
        Map map = B0;
        if (map.containsKey(lowerCase)) {
            return (W) map.get(lowerCase);
        }
        return null;
    }

    @Override
    public Integer H0() {
        return Integer.valueOf(this.O);
    }

    public synchronized void H1(IXoneObject iXoneObject, String str, Object[] objArr) {
        I1(iXoneObject, str, objArr, false);
    }

    public int H2() {
        return this.A;
    }

    public final boolean H3(String str, InterfaceC1046q0 interfaceC1046q0) {
        if (str == null) {
            str = "";
        }
        if (str.contains("##EXIT##") || str.contains("##END##")) {
            if (str.contains("##STARTREPLICA##")) {
                z();
            }
            int intExtra = getIntent().getIntExtra("requestCode", -1);
            if (intExtra == 511 || intExtra == 502) {
                xoneApp.Z0().A(true);
                mainEntry S = xoneApp.Z0().S();
                if (S != null) {
                    S.U();
                }
            } else {
                k(F0());
            }
            if (interfaceC1046q0 != null) {
                interfaceC1046q0.Clear();
            }
            return true;
        }
        if (str.contains("##EXITAPP##")) {
            if (str.contains("##STARTREPLICA##")) {
                z();
            }
            xoneApp.Z0().A(true);
            k(14);
            if (interfaceC1046q0 != null) {
                interfaceC1046q0.Clear();
            }
            return true;
        }
        if (str.contains("##LOGIN_START##")) {
            if (interfaceC1046q0 != null) {
                interfaceC1046q0.Clear();
            }
            o.b(this.w, str, this);
            return true;
        }
        if (interfaceC1046q0 != null) {
            int number = interfaceC1046q0.getNumber();
            if (number == -11888 || number == -11822 || number == -11811 || number == -8100) {
                interfaceC1046q0.Clear();
            } else if (number == -666) {
                return true;
            }
        }
        return false;
    }

    public void H4(String str) {
        final DrawerLayout t2 = t2(AbstractC0564f.v0);
        int childCount = t2.getChildCount();
        for (int i = 0; i < childCount; i++) {
            final View childAt = t2.getChildAt(i);
            if ((childAt instanceof I) && str.equals(((I) childAt).getGroupId())) {
                fa.j.m(new Runnable() {
                    @Override
                    public final void run() {
                        t2.m0(childAt);
                    }
                });
                return;
            }
        }
    }

    public void H5(final String str) {
        if (this.s == null) {
            return;
        }
        if (Utils.s3()) {
            q4(str);
        } else {
            runOnUiThread(new Runnable() {
                @Override
                public final void run() {
                    XoneBaseActivity.this.q4(str);
                }
            });
        }
    }

    public synchronized void I1(IXoneObject iXoneObject, String str, Object[] objArr, boolean z) {
        try {
            try {
                new Thread(new y8.j(this, iXoneObject, str, objArr, z, null)).start();
            } catch (Throwable th) {
                th = th;
                throw th;
            }
        } catch (Throwable th2) {
            th = th2;
            throw th;
        }
    }

    public List I2(String str) {
        IXoneCollection ownerCollection;
        IXoneObject dataObject = getDataObject();
        if (dataObject == null || (ownerCollection = dataObject.getOwnerCollection()) == null) {
            return null;
        }
        return ownerCollection.getEventCallback(str);
    }

    public final boolean I3(Throwable th) {
        InterfaceC1046q0 A1 = A1();
        if (th instanceof e) {
            return H3(th.getMessage(), A1);
        }
        if (A1 != null) {
            return H3(A1.getDescription(), A1);
        }
        return false;
    }

    public final void I4(Intent intent) {
        Uri data = intent.getData();
        if (data != null) {
            if (this.b0 == null) {
                U5(data);
                return;
            }
            ArrayList arrayList = new ArrayList();
            arrayList.add(data);
            T5(arrayList);
            return;
        }
        ClipData clipData = intent.getClipData();
        if (clipData == null) {
            Utils.l("XOneAndroidFramework", "No data received from pick file");
            return;
        }
        ArrayList arrayList2 = new ArrayList();
        for (int i = 0; i < clipData.getItemCount(); i++) {
            Uri uri = clipData.getItemAt(i).getUri();
            if (uri == null) {
                Utils.l("XOneAndroidFramework", "Empty uri in ClipData item. Skipping file");
            } else {
                arrayList2.add(uri);
            }
        }
        T5(arrayList2);
    }

    public void q4(String str) {
        if (TextUtils.isEmpty(str)) {
            this.s.h(AbstractC0568j.F);
        } else {
            this.s.i(str);
        }
        if (this.s == null) {
            return;
        }
        this.r.incrementAndGet();
        this.s.show();
    }

    @Override
    public Object Invoke(String str, EnumC0975b enumC0975b, Object[] objArr) {
        char c;
        String lowerCase = str.toLowerCase(Locale.US);
        lowerCase.getClass();
        switch (lowerCase.hashCode()) {
            case -2118002306:
                if (lowerCase.equals("enablefullscreen")) {
                    c = 0;
                    break;
                }
                c = 65535;
                break;
            case -1989595510:
                if (lowerCase.equals("getpositiononscreen")) {
                    c = 1;
                    break;
                }
                c = 65535;
                break;
            case -1895992926:
                if (lowerCase.equals("showgroup")) {
                    c = 2;
                    break;
                }
                c = 65535;
                break;
            case -1790721185:
                if (lowerCase.equals("setbottomsheetstate")) {
                    c = 3;
                    break;
                }
                c = 65535;
                break;
            case -1715973339:
                if (lowerCase.equals("selectall")) {
                    c = 4;
                    break;
                }
                c = 65535;
                break;
            case -1224406994:
                if (lowerCase.equals("setorientation")) {
                    c = 5;
                    break;
                }
                c = 65535;
                break;
            case -1110513523:
                if (lowerCase.equals("getcurrentorientation")) {
                    c = 6;
                    break;
                }
                c = 65535;
                break;
            case -975039734:
                if (lowerCase.equals("requestappreview")) {
                    c = 7;
                    break;
                }
                c = 65535;
                break;
            case -922635212:
                if (lowerCase.equals("lockgroup")) {
                    c = '\b';
                    break;
                }
                c = 65535;
                break;
            case -854195781:
                if (lowerCase.equals("unlockgroup")) {
                    c = '\t';
                    break;
                }
                c = 65535;
                break;
            case -788572208:
                if (lowerCase.equals("hidesoftwarekeyboard")) {
                    c = '\n';
                    break;
                }
                c = 65535;
                break;
            case -753210612:
                if (lowerCase.equals("injecttouchevent")) {
                    c = 11;
                    break;
                }
                c = 65535;
                break;
            case -738886371:
                if (lowerCase.equals("pickfile")) {
                    c = '\f';
                    break;
                }
                c = 65535;
                break;
            case -726497621:
                if (lowerCase.equals("clearfocus")) {
                    c = '\r';
                    break;
                }
                c = 65535;
                break;
            case -721150638:
                if (lowerCase.equals("executeactionafterdelay")) {
                    c = 14;
                    break;
                }
                c = 65535;
                break;
            case -694833231:
                if (lowerCase.equals("drawmaproute")) {
                    c = 15;
                    break;
                }
                c = 65535;
                break;
            case -643991806:
                if (lowerCase.equals("showsnackbar")) {
                    c = 16;
                    break;
                }
                c = 65535;
                break;
            case -638177365:
                if (lowerCase.equals("togglegroup")) {
                    c = 17;
                    break;
                }
                c = 65535;
                break;
            case -554281187:
                if (lowerCase.equals("relayout")) {
                    c = 18;
                    break;
                }
                c = 65535;
                break;
            case -321833754:
                if (lowerCase.equals("refreshall")) {
                    c = 19;
                    break;
                }
                c = 65535;
                break;
            case -275918321:
                if (lowerCase.equals("startshowcase")) {
                    c = 20;
                    break;
                }
                c = 65535;
                break;
            case -246993325:
                if (lowerCase.equals("getbottomsheetstate")) {
                    c = 21;
                    break;
                }
                c = 65535;
                break;
            case -25522314:
                if (lowerCase.equals("refreshvalue")) {
                    c = 22;
                    break;
                }
                c = 65535;
                break;
            case 3023933:
                if (lowerCase.equals("bind")) {
                    c = 23;
                    break;
                }
                c = 65535;
                break;
            case 3127582:
                if (lowerCase.equals("exit")) {
                    c = 24;
                    break;
                }
                c = 65535;
                break;
            case 323750215:
                if (lowerCase.equals("getcontrol")) {
                    c = 25;
                    break;
                }
                c = 65535;
                break;
            case 360677259:
                if (lowerCase.equals("showsoftwarekeyboard")) {
                    c = 26;
                    break;
                }
                c = 65535;
                break;
            case 424682849:
                if (lowerCase.equals("refreshcontentselectedrow")) {
                    c = 27;
                    break;
                }
                c = 65535;
                break;
            case 770204743:
                if (lowerCase.equals("hidesnackbar")) {
                    c = 28;
                    break;
                }
                c = 65535;
                break;
            case 776109525:
                if (lowerCase.equals("captureimage")) {
                    c = 29;
                    break;
                }
                c = 65535;
                break;
            case 861016701:
                if (lowerCase.equals("hidegroup")) {
                    c = 30;
                    break;
                }
                c = 65535;
                break;
            case 883867971:
                if (lowerCase.equals("isdarkmode")) {
                    c = 31;
                    break;
                }
                c = 65535;
                break;
            case 1027244478:
                if (lowerCase.equals("injectjavascript")) {
                    c = ' ';
                    break;
                }
                c = 65535;
                break;
            case 1085444827:
                if (lowerCase.equals("refresh")) {
                    c = '!';
                    break;
                }
                c = 65535;
                break;
            case 1269636259:
                if (lowerCase.equals("disablefullscreen")) {
                    c = '\"';
                    break;
                }
                c = 65535;
                break;
            case 1412193762:
                if (lowerCase.equals("enterpipmode")) {
                    c = '#';
                    break;
                }
                c = 65535;
                break;
            case 1421870518:
                if (lowerCase.equals("setfocus")) {
                    c = '$';
                    break;
                }
                c = 65535;
                break;
            case 1737360348:
                if (lowerCase.equals("refreshcontentrow")) {
                    c = '%';
                    break;
                }
                c = 65535;
                break;
            case 1987241823:
                if (lowerCase.equals("isgroupopen")) {
                    c = '&';
                    break;
                }
                c = 65535;
                break;
            case 2114421610:
                if (lowerCase.equals("setselection")) {
                    c = '\'';
                    break;
                }
                c = 65535;
                break;
            default:
                c = 65535;
                break;
        }
        switch (c) {
            case 0:
                return Boolean.valueOf(enableFullScreen(objArr));
            case 1:
                return getPositionOnScreen(objArr);
            case 2:
                return Integer.valueOf(showGroup(objArr));
            case 3:
                return Boolean.valueOf(setBottomSheetState(objArr));
            case 4:
                return Integer.valueOf(selectAll(objArr));
            case 5:
                return Boolean.valueOf(setOrientation(objArr));
            case 6:
                return getCurrentOrientation(objArr);
            case org.mozilla.javascript.Context.FEATURE_DYNAMIC_SCOPE:
                return requestAppReview(objArr);
            case '\b':
                return Integer.valueOf(lockGroup(objArr));
            case org.mozilla.javascript.Context.FEATURE_STRICT_EVAL:
                return Integer.valueOf(unlockGroup(objArr));
            case org.mozilla.javascript.Context.FEATURE_LOCATION_INFORMATION_IN_ERROR:
                return Integer.valueOf(hideSoftwareKeyboard(objArr));
            case org.mozilla.javascript.Context.FEATURE_STRICT_MODE:
                return injectTouchEvent(objArr);
            case org.mozilla.javascript.Context.FEATURE_WARNING_AS_ERROR:
                return Integer.valueOf(pickFile(objArr));
            case '\r':
                return Integer.valueOf(clearFocus(objArr));
            case org.mozilla.javascript.Context.FEATURE_V8_EXTENSIONS:
                return Integer.valueOf(executeActionAfterDelay(objArr));
            case org.mozilla.javascript.Context.FEATURE_OLD_UNDEF_NULL_THIS:
                return Integer.valueOf(drawMapRoute(objArr));
            case org.mozilla.javascript.Context.FEATURE_ENUMERATE_IDS_FIRST:
                return Boolean.valueOf(showSnackbar(objArr));
            case org.mozilla.javascript.Context.FEATURE_THREAD_SAFE_OBJECTS:
                return Integer.valueOf(toggleGroup(objArr));
            case org.mozilla.javascript.Context.FEATURE_INTEGER_WITHOUT_DECIMAL_PLACE:
                return Integer.valueOf(relayout());
            case 19:
                return Integer.valueOf(refreshAll(objArr));
            case 20:
                return startShowcase(objArr);
            case 21:
                return getBottomSheetState(objArr);
            case 22:
                return Integer.valueOf(refreshValue(objArr));
            case 23:
                return Boolean.valueOf(N1(objArr));
            case 24:
                return Boolean.valueOf(exit());
            case 25:
                return getControl(objArr);
            case 26:
                return Integer.valueOf(showSoftwareKeyboard(objArr));
            case 27:
                return Integer.valueOf(refreshContentSelectedRow(objArr));
            case 28:
                return Boolean.valueOf(hideSnackbar());
            case 29:
                return captureImage(objArr);
            case 30:
                return Integer.valueOf(hideGroup(objArr));
            case 31:
                return Boolean.valueOf(isDarkMode());
            case ' ':
                return Integer.valueOf(injectJavascript(objArr));
            case '!':
                return Integer.valueOf(refresh(objArr));
            case '\"':
                return Boolean.valueOf(disableFullScreen(objArr));
            case '#':
                return Boolean.valueOf(enterPipMode());
            case '$':
                return Boolean.valueOf(setFocus(objArr));
            case '%':
                return Integer.valueOf(refreshContentRow(objArr));
            case '&':
                return Boolean.valueOf(isGroupOpen(objArr));
            case '\'':
                return Integer.valueOf(setSelection(objArr));
            default:
                throw new U0("Function/Method/Property '" + str + "' not implemented.", -1, s3().i());
        }
    }

    @Override
    public void J(final Throwable th, final DialogInterface.OnClickListener onClickListener) {
        th.printStackTrace();
        if (c()) {
            Utils.l("XOneAndroidFramework", "An error has happened while the activity was being destroyed");
        } else if (Utils.s3()) {
            e4(th, onClickListener);
        } else {
            runOnUiThread(new Runnable() {
                @Override
                public final void run() {
                    XoneBaseActivity.this.e4(th, onClickListener);
                }
            });
        }
    }

    public synchronized void J1(IXoneObject iXoneObject, String str, Object[] objArr, boolean z, String[] strArr) {
        try {
            try {
                new Thread(new y8.j(this, iXoneObject, str, objArr, z, strArr)).start();
            } catch (Throwable th) {
                th = th;
                throw th;
            }
        } catch (Throwable th2) {
            th = th2;
            throw th;
        }
    }

    public Typeface J2() {
        return B0.h.g(getApplicationContext(), ha.u.a);
    }

    public void J3(Throwable th, String str, Uri uri) {
        if (Build.VERSION.SDK_INT < 29 || !M1.a(th)) {
            throw AbstractC0751f.e(th);
        }
        Intent intent = new Intent();
        AbstractC0698k.z(intent, "command", str);
        AbstractC0698k.y(intent, "uri", uri);
        throw new C0737b(C1.a(th), intent);
    }

    public abstract void J4(Set set);

    public void J5(int i, String str, String str2, String str3, String str4, int i2) {
        o5(i);
        z5(str);
        y5(str2);
        q5(str3);
        r5(str4);
        p5(i2);
        if (Utils.s3()) {
            showDialog(2027);
        } else {
            runOnUiThread(new Runnable() {
                @Override
                public final void run() {
                    XoneBaseActivity.this.r4();
                }
            });
        }
    }

    public synchronized void K1(final IXoneObject iXoneObject, final String str, final Object[] objArr, final boolean z, final boolean z2) {
        final WeakReference weakReference = new WeakReference(this);
        new Thread(new Runnable() {
            @Override
            public final void run() {
                XoneBaseActivity.X5(weakReference, iXoneObject, str, objArr, z, z2);
            }
        }).start();
    }

    public Point K2() {
        Display defaultDisplay = getWindowManager().getDefaultDisplay();
        DisplayMetrics displayMetrics = new DisplayMetrics();
        defaultDisplay.getRealMetrics(displayMetrics);
        Point point = new Point();
        point.x = displayMetrics.widthPixels;
        point.y = displayMetrics.heightPixels;
        return point;
    }

    public final void c4(Throwable th) {
        try {
            if (c()) {
                Utils.l("XOneAndroidFramework", "An exception has happened while the activity was being destroyed");
                return;
            }
            AlertDialog Q2 = Q2(th);
            this.q0 = Q2;
            Q2.show();
            TextView textView = (TextView) this.q0.findViewById(R.id.message);
            if (textView != null) {
                textView.setTypeface(J2());
            }
        } catch (Exception e) {
            e.printStackTrace();
            new s(getApplicationContext(), th).t();
        }
    }

    public synchronized void K5() {
        try {
            if (this.o == null) {
                this.o = ProgressDialogC0709i.c(this);
            }
            this.o.setMax(0);
            this.o.setProgress(0);
            this.o.show();
        } catch (Throwable th) {
            throw th;
        }
    }

    public synchronized void L1(IXoneObject iXoneObject, String str, Object[] objArr, boolean z, boolean z2) {
        if (AbstractC0558a.i(this, iXoneObject, str, objArr)) {
            if (!z2) {
                if (z) {
                    I(null);
                    return;
                }
                i2(iXoneObject, str);
            }
        }
    }

    @Override
    public C0834e B0() {
        return this.n;
    }

    public void e4(Throwable th, DialogInterface.OnClickListener onClickListener) {
        AlertDialog create = R2(this, th, null, onClickListener).create();
        d5(create);
        create.show();
        TextView textView = (TextView) create.findViewById(R.id.message);
        if (textView != null) {
            textView.setTypeface(J2());
        }
    }

    public abstract void L5(boolean z, String str, int i, String str2, int i2);

    public synchronized void M1(IXoneObject iXoneObject, String str, Object[] objArr, boolean z) {
        try {
            try {
                new y8.j(this, iXoneObject, str, objArr, z, null).run();
            } catch (Throwable th) {
                th = th;
                throw th;
            }
        } catch (Throwable th2) {
            th = th2;
            throw th;
        }
    }

    public int M2() {
        return this.U;
    }

    public boolean M3() {
        return this.p0;
    }

    public final void M4() {
        ArrayList arrayList = new ArrayList();
        for (Map.Entry entry : this.x0.entrySet()) {
            String str = (String) entry.getKey();
            WeakReference weakReference = (WeakReference) entry.getValue();
            if (weakReference == null) {
                arrayList.add(str);
            } else {
                PopupWindow popupWindow = (PopupWindow) weakReference.get();
                if (popupWindow == null) {
                    arrayList.add(str);
                } else {
                    View contentView = popupWindow.getContentView();
                    if (contentView == null) {
                        arrayList.add(str);
                    } else {
                        Object context = contentView.getContext();
                        if ((context instanceof InterfaceC1036l0) && ((InterfaceC1036l0) context).c()) {
                            arrayList.add(str);
                        }
                    }
                }
            }
        }
        int size = arrayList.size();
        int i = 0;
        while (i < size) {
            Object obj = arrayList.get(i);
            i++;
            this.x0.remove((String) obj);
        }
    }

    public void M5(boolean z, String str, int i, String str2, int i2, String str3) {
    }

    @Override
    public synchronized void N(IXoneObject iXoneObject, String str, CharSequence charSequence) {
        I1(iXoneObject, str, new CharSequence[]{charSequence}, false);
    }

    public final boolean N1(Object[] objArr) {
        Utils.g("Bind", objArr, 3);
        bindVbscript(false, t.z(objArr[0], null), t.z(objArr[1], null).toLowerCase(), t.z(objArr[2], null));
        return true;
    }

    public final XOneDataObjectView N2(IXoneObject iXoneObject) {
        String str = ((IXoneObject) iXoneObject.getVariables("INTERNAL_EMBEDDING_OBJECT")) != null ? (String) iXoneObject.getVariables("INTERNAL_EMBEDDING_PROPERTY_NAME") : null;
        if (TextUtils.isEmpty(str)) {
            return null;
        }
        return (XOneDataObjectView) j(str);
    }

    public void N3(String str) {
        final DrawerLayout t2 = t2(AbstractC0564f.v0);
        int childCount = t2.getChildCount();
        for (int i = 0; i < childCount; i++) {
            final View childAt = t2.getChildAt(i);
            if ((childAt instanceof I) && str.equals(((I) childAt).getGroupId())) {
                fa.j.m(new Runnable() {
                    @Override
                    public final void run() {
                        t2.D(childAt);
                    }
                });
                return;
            }
        }
    }

    public final void N4(final ProgressDialog progressDialog) {
        if (!Utils.s3()) {
            runOnUiThread(new Runnable() {
                @Override
                public final void run() {
                    XoneBaseActivity.V0(progressDialog);
                }
            });
            return;
        }
        progressDialog.setMax(0);
        progressDialog.setProgress(0);
        progressDialog.show();
    }

    public void N5() {
        Intent intent;
        try {
            Settings.System.getInt(getContentResolver(), "android.settings.SECURITY_SETTINGS_SETUPWIZARD");
            intent = new Intent("android.settings.SECURITY_SETTINGS_SETUPWIZARD");
        } catch (Settings.SettingNotFoundException unused) {
            intent = null;
        }
        if (intent == null) {
            intent = new Intent("android.settings.SECURITY_SETTINGS");
        }
        startActivity(intent);
    }

    public void O3() {
        if (Utils.s3()) {
            P3();
        } else {
            runOnUiThread(new Runnable() {
                @Override
                public final void run() {
                    XoneBaseActivity.this.P3();
                }
            });
        }
    }

    public void O5(String str, Object obj, JSONObject jSONObject) {
        this.l0 = "";
        this.m0 = obj;
        i8.q.g(this, str, jSONObject);
    }

    public AlertDialog P2(String str) {
        return O2(this, null, str);
    }

    public void P3() {
        if (this.r.decrementAndGet() <= 0) {
            v1(this.s);
        }
    }

    public void P5(String str, String str2, JSONObject jSONObject) {
        this.l0 = str2;
        this.m0 = null;
        i8.q.g(this, str, jSONObject);
    }

    public final void Q1(Intent intent, String str) {
        ArrayList arrayList = new ArrayList();
        for (String str2 : str.split(",")) {
            if (!TextUtils.isEmpty(str2)) {
                arrayList.add(str2.trim());
            }
        }
        intent.putExtra("android.intent.extra.MIME_TYPES", (String[]) arrayList.toArray(new String[0]));
    }

    public AlertDialog Q2(Throwable th) {
        return O2(this, th, null);
    }

    public final void s4(Object obj) {
        try {
            XOneJavascript.x(obj, new Object[0]);
        } catch (Exception e) {
            b(e);
        }
    }

    public void R1(IXoneObject iXoneObject, PopupWindow popupWindow) {
        this.x0.put(iXoneObject.toString(), new WeakReference(popupWindow));
    }

    public void R3(Object obj, IXoneObject iXoneObject, Object... objArr) {
        Q0 m = XOneJavascript.m();
        if (m == null) {
            XOneJavascript.x(obj, objArr);
            return;
        }
        Object property = Q0.getProperty(m, "self");
        Q0.putProperty(m, "self", iXoneObject);
        try {
            XOneJavascript.x(obj, objArr);
        } finally {
            Q0.putProperty(m, "self", property);
        }
    }

    public void R4(int i) {
        this.k0 = i;
    }

    public void R5(String str) {
        final DrawerLayout t2 = t2(AbstractC0564f.v0);
        int childCount = t2.getChildCount();
        for (int i = 0; i < childCount; i++) {
            final View childAt = t2.getChildAt(i);
            if ((childAt instanceof I) && str.equals(((I) childAt).getGroupId())) {
                fa.j.m(new Runnable() {
                    @Override
                    public final void run() {
                        XoneBaseActivity.P0(t2, childAt);
                    }
                });
                return;
            }
        }
    }

    public final void S1(Intent intent) {
        if (intent == null) {
            return;
        }
        String t = AbstractC0698k.t(intent, "animation-in", null);
        String t2 = AbstractC0698k.t(intent, "animation-out", null);
        if (TextUtils.isEmpty(t) && TextUtils.isEmpty(t2)) {
            return;
        }
        int b = AbstractC0730b.b(true, t);
        int b2 = AbstractC0730b.b(false, t2);
        if (b == 0 && b2 == 0) {
            return;
        }
        overridePendingTransition(b, b2);
    }

    public InterfaceC1032j0 S2() {
        return this.W;
    }

    public final boolean S3() {
        return u3() instanceof InterfaceC1056w;
    }

    public void S4(int i) {
        this.j0 = i;
    }

    public void S5(String str) {
        final DrawerLayout t2 = t2(AbstractC0564f.v0);
        int childCount = t2.getChildCount();
        for (int i = 0; i < childCount; i++) {
            final View childAt = t2.getChildAt(i);
            if ((childAt instanceof I) && str.equals(((I) childAt).getGroupId())) {
                fa.j.m(new Runnable() {
                    @Override
                    public final void run() {
                        t2.u0(0, childAt);
                    }
                });
                return;
            }
        }
    }

    public final void T1(File file) {
        if (r.B(file)) {
            long t = q.t(this.a0.FieldPropertyValue(this.c0, "file-maxsize"), 0L);
            int p = q.p(this.a0.FieldPropertyValue(this.c0, "file-maxwidth"), -1);
            int p2 = q.p(this.a0.FieldPropertyValue(this.c0, "file-maxheight"), -1);
            if (p <= 0 && p2 <= 0) {
                if (t > 0) {
                    r.O(file, file, t);
                }
            } else if (p > 0 && p2 > 0) {
                r.U(file, file, p, p2, 100);
            } else if (p > 0) {
                r.S(file, file, p, 100);
            } else {
                r.M(file, file, p2, 100);
            }
        }
    }

    public final Class T2() {
        int m3 = m3();
        return m3 != 1 ? m3 != 2 ? XoneFileBrowser.class : XoneFileBrowserLandscape.class : XoneFileBrowserPortrait.class;
    }

    public boolean T3() {
        return false;
    }

    public void T4(int i) {
        this.h0 = i;
    }

    public final void T5(List list) {
        if (this.b0 == null) {
            Utils.l("XOneAndroidFramework", "updateAttachmentPropertyMultiple(): onAcceptedCallback not set");
            return;
        }
        ArrayList arrayList = new ArrayList();
        Iterator it = list.iterator();
        while (it.hasNext()) {
            Uri uri = (Uri) it.next();
            if (uri == null) {
                Utils.l("XOneAndroidFramework", "Empty uri in ClipData item. Skipping file");
            } else {
                String scheme = uri.getScheme();
                if (TextUtils.isEmpty(scheme) || scheme.compareTo("content") != 0) {
                    String path = uri.getPath();
                    if (path == null) {
                        throw new NullPointerException("updateAttachmentPropertyMultiple(): Cannot update attachment property, path from uri is empty");
                    }
                    File file = new File(path);
                    if (!file.exists()) {
                        Utils.l("XOneAndroidFramework", "updateAttachmentPropertyMultiple(): File " + file.getAbsolutePath() + " does not exist");
                        return;
                    }
                    File l0 = C2().l0(file.getName());
                    Utils.Z(file, l0);
                    arrayList.add(l0.getName());
                } else {
                    arrayList.add(q2(uri).getName());
                }
            }
        }
        int size = arrayList.size();
        if (size == 0) {
            Utils.l("XOneAndroidFramework", "updateAttachmentPropertyMultiple(): lstFiles.size() <= 0");
            return;
        }
        final C0893d0 c0893d0 = new C0893d0(size);
        for (int i = 0; i < size; i++) {
            String str = (String) arrayList.get(i);
            C0932x0 c0932x0 = new C0932x0();
            Q0.putProperty(c0932x0, "name", str);
            Q0.putProperty(c0932x0, "extension", Utils.u1(str));
            Q0.putProperty(c0893d0, i, c0932x0);
        }
        new Thread(new Runnable() {
            @Override
            public final void run() {
                XoneBaseActivity.this.u4(c0893d0);
            }
        }).start();
    }

    public void U1(String str) {
        final View t2 = t2(AbstractC0564f.S);
        if (TextUtils.isEmpty(str) || t2 == null) {
            return;
        }
        xoneApp C2 = C2();
        final Drawable j = C2.j(this, n.d(this, Utils.A0(C2, C2.Y(), C2.T(), str, false, 2), C2.L()), 0, getMaxScreenWidth(), getMaxScreenHeight());
        if (j == null) {
            return;
        }
        if (Utils.s3()) {
            t2.setBackground(j);
        } else {
            runOnUiThread(new Runnable() {
                @Override
                public final void run() {
                    t2.setBackground(j);
                }
            });
        }
    }

    public int U2() {
        return this.k0;
    }

    public boolean U3() {
        return (this instanceof EditViewHyperPortrait) || (this instanceof EditViewHyperLandscape);
    }

    public void U4(int i) {
        this.i0 = i;
    }

    public final void U5(Uri uri) {
        try {
            if (uri == null) {
                throw new IllegalStateException("updateAttachmentPropertySingle(): Cannot obtain source data");
            }
            if (this.a0 == null) {
                throw new IllegalArgumentException("updateAttachmentPropertySingle(): Empty target");
            }
            String scheme = uri.getScheme();
            if (TextUtils.isEmpty(scheme)) {
                V5(uri);
                return;
            }
            if (scheme.compareTo("content") != 0) {
                V5(uri);
                return;
            }
            if (!t.l(this.a0.FieldPropertyValue(this.c0, "dump-file"), true)) {
                this.a0.SetPropertyValue(this.c0, uri);
                refresh(this.c0);
            } else {
                File q2 = q2(uri);
                T1(q2);
                I1(this.a0, this.c0, new String[]{q2.getAbsolutePath()}, false);
            }
        } finally {
            X1();
        }
    }

    public void V1(View view, final CharSequence charSequence) {
        if (TextUtils.isEmpty(charSequence)) {
            return;
        }
        ViewParent parent = view.getParent();
        boolean S = parent instanceof XOneEditText ? ((XOneEditText) parent).S() : false;
        boolean q = C9.e.q(xoneApp.Z0(), "android.permission.CALL_PHONE");
        if (q || !S) {
            C4(this, q, charSequence);
            return;
        }
        C9.h a2 = new h.a().d(false).e(8004).f(getString(v.b)).c(new C9.c() {
            @Override
            public final void a(Set set) {
                XoneBaseActivity.this.W3(charSequence, set);
            }
        }).h("android.permission.CALL_PHONE").a();
        a(a2);
        C9.e.h(this, a2);
    }

    public int V2() {
        return this.j0;
    }

    public boolean V3() {
        View decorView;
        Window window = getWindow();
        if (window == null || (decorView = window.getDecorView()) == null) {
            return false;
        }
        return Utils.X2(decorView.getSystemUiVisibility(), 4);
    }

    public void V4(Object obj) {
        this.f0 = obj;
    }

    public final void V5(Uri uri) {
        String path = uri.getPath();
        if (path == null) {
            throw new NullPointerException("Cannot update attachment property, path from uri is empty");
        }
        File file = new File(path);
        if (!file.exists()) {
            Utils.l("XOneAndroidFramework", "updateAttachmentPropertyWithFileUri() called, but file does not exist");
            return;
        }
        long t = q.t(this.a0.FieldPropertyValue(this.c0, "file-maxsize"), 0L);
        if (t > 0 && file.isFile() && file.length() > t) {
            String FieldPropertyValue = this.a0.FieldPropertyValue(this.c0, "file-msgfail");
            if (TextUtils.isEmpty(FieldPropertyValue)) {
                FieldPropertyValue = getString(AbstractC0568j.A);
            }
            F5(-1, AbstractC0568j.q, FieldPropertyValue);
            return;
        }
        T1(file);
        String name = file.getName();
        File l0 = C2().l0(name);
        Utils.Z(file, l0);
        if (t.l(this.a0.FieldPropertyValue(this.c0, "embed"), false)) {
            name = AbstractC0689b.k(l0);
        }
        N(this.a0, this.c0, name);
    }

    public int W2() {
        return this.h0;
    }

    public final void W3(CharSequence charSequence, Set set) {
        C4(this, true, charSequence);
    }

    public void W4(Object obj) {
        this.e0 = obj;
    }

    public void W5(String str) {
        Utils.l("XOneAndroidFramework", "XoneBaseActivity.updateBarcodePropertySerialTask() invoked");
        if (TextUtils.isEmpty(str)) {
            Utils.l("XOneAndroidFramework", "XoneBaseActivity.updateBarcodePropertySerialTask(), empty value passed to barcode property");
            return;
        }
        IXoneObject dataObject = getDataObject();
        try {
            String q3 = q3(dataObject);
            if (TextUtils.isEmpty(q3)) {
                Utils.l("XOneAndroidFramework", "XoneBaseActivity.updateBarcodePropertySerialTask(), could not find barcode property. Is attribute barcode=\"true\" present on the collection?");
                return;
            }
            String z4 = z4(dataObject, q3, str);
            if (this.r0 != null && s1(dataObject, q3, "skip-if-running", false) && !this.r0.b()) {
                Utils.l("XOneAndroidFramework", "XoneBaseActivity.updateBarcodePropertySerialTask(), barcode property is currently being updated. Skipping.");
                return;
            }
            fa.h hVar = new fa.h(new d8.h(this, dataObject, q3, z4));
            this.r0 = hVar;
            hVar.runSeriallyAsyncTask();
            Utils.l("XOneAndroidFramework", "XoneBaseActivity.updateBarcodePropertySerialTask(), updating barcode property");
        } catch (Exception e) {
            b(e);
        }
    }

    @Override
    public void X(C0819d c0819d) {
        if (c0819d.c()) {
            v1(this.o);
        } else if (c0819d.d()) {
            O3();
        }
    }

    public void X1() {
        this.a0 = null;
        this.b0 = null;
        this.c0 = null;
    }

    public int X2() {
        return this.i0;
    }

    public final void X3(EditText editText, View view) {
        try {
            ((InputMethodManager) editText.getContext().getApplicationContext().getSystemService("input_method")).showSoftInput(editText, 1);
        } catch (Exception e) {
            b(e);
        }
    }

    public void X4(IXoneObject iXoneObject) {
        this.g0 = iXoneObject;
    }

    public final AlertDialog Y1(String str) {
        final String p3 = p3();
        final IXoneObject dataObject = getDataObject();
        if (dataObject == null) {
            throw new NullPointerException("createCustomEditInline(): dataObject == null");
        }
        String PropertyTitle = dataObject.PropertyTitle(p3);
        List g3 = g3(getDataObject(), p3);
        AlertDialog.Builder h = AbstractC0665a.h(this, str);
        h.setCancelable(true);
        h.setOnCancelListener(new P1(this));
        LinearLayout linearLayout = (LinearLayout) View.inflate(this, AbstractC0565g.e, null);
        ((TextView) linearLayout.findViewById(AbstractC0564f.R)).setText(PropertyTitle);
        final EditText editText = (EditText) linearLayout.findViewById(AbstractC0564f.O);
        editText.setCursorVisible(false);
        ImageButton imageButton = (ImageButton) linearLayout.findViewById(AbstractC0564f.P);
        ListView listView = (ListView) linearLayout.findViewById(AbstractC0564f.Q);
        imageButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                XoneBaseActivity.this.X3(editText, view);
            }
        });
        h.setView(linearLayout);
        listView.setAdapter((ListAdapter) new SimpleAdapter(this, g3, AbstractC0565g.D, new String[]{"title"}, new int[]{R.id.text1}));
        listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
            @Override
            public final void onItemClick(AdapterView adapterView, View view, int i, long j) {
                XoneBaseActivity.this.Y3(dataObject, p3, adapterView, view, i, j);
            }
        });
        editText.addTextChangedListener(new a(listView));
        return h.create();
    }

    public final void Y3(IXoneObject iXoneObject, String str, AdapterView adapterView, View view, int i, long j) {
        try {
            k5((SimpleAdapter) adapterView.getAdapter(), iXoneObject, str, i);
            dismissDialog(2002);
            removeDialog(2002);
        } catch (Exception e) {
            b(e);
        }
    }

    public void Y4(int i) {
        this.A = i;
    }

    public boolean Y5() {
        try {
            View u3 = u3();
            String p3 = p3();
            if (TextUtils.isEmpty(p3)) {
                Utils.l("XOneAndroidFramework", "Empty prop selected when calling updateLastFocusedView(). Data object: " + getDataObject());
                return true;
            }
            if (u3 != null && u3.getId() == AbstractC0564f.g0) {
                AbstractC0558a.h(this, getDataObject(), p3, ((EditText) u3).getText().toString());
            }
            return true;
        } catch (Exception e) {
            return AbstractC0515a.b(this.l, "", e, D2());
        }
    }

    public abstract int Z2();

    public abstract boolean Z4(String str, boolean z);

    public void Z5() {
        View u3 = u3();
        String p3 = p3();
        if (u3 == null || u3.getId() != AbstractC0564f.g0) {
            return;
        }
        AbstractC0558a.h(this, getDataObject(), p3, ((EditText) u3).getText().toString());
    }

    @Override
    public void a(C9.h hVar) {
        if (this.u0.contains(hVar)) {
            return;
        }
        this.u0.add(hVar);
    }

    public void a2() {
        C0834e c0834e = this.n;
        if (c0834e != null) {
            c0834e.d();
        }
        C0834e c0834e2 = new C0834e(this.l);
        this.n = c0834e2;
        c0834e2.start();
    }

    public abstract int a3();

    public synchronized void a5(IXoneObject iXoneObject, String str, Object[] objArr, boolean z) {
        KeyEvent.Callback u3 = u3();
        if (u3 instanceof InterfaceC1056w) {
            ((InterfaceC1056w) u3).B(objArr, z);
        } else {
            I1(iXoneObject, str, objArr, z);
        }
    }

    public final void a6(final n8.m mVar, long j) {
        if (this.H > 0 && this.I > 0 && U3()) {
            if (mVar != null) {
                mVar.a();
                return;
            }
            return;
        }
        final View findViewById = findViewById(R.id.content);
        if (findViewById == null) {
            if (mVar != null) {
                mVar.a();
            }
        } else if (j <= 0) {
            findViewById.post(new Runnable() {
                @Override
                public final void run() {
                    XoneBaseActivity.this.v4(findViewById, mVar);
                }
            });
        } else {
            findViewById.postDelayed(new Runnable() {
                @Override
                public final void run() {
                    XoneBaseActivity.this.w4(findViewById, mVar);
                }
            }, j);
        }
    }

    public void attachBaseContext(Context context) {
        if (C0602a.d(context)) {
            super/*android.app.Activity*/.attachBaseContext(new C0602a(context));
        } else {
            super/*android.app.Activity*/.attachBaseContext(context);
        }
    }

    @Override
    public void b(final java.lang.Throwable r11) {
        throw new UnsupportedOperationException("Method not decompiled: com.xone.android.framework.activities.XoneBaseActivity.b(java.lang.Throwable):void");
    }

    public final AlertDialog b2(C0676k c0676k) {
        final IXoneObject a2 = c0676k.a();
        final String b = c0676k.b();
        String z = t.z(a2.FieldPropertyValue(b, "theme"), xoneApp.Z0().s0());
        if (t.l(a2.FieldPropertyValue(b, "showinline-keyboard"), false)) {
            return Y1(z);
        }
        String PropertyTitle = a2.PropertyTitle(b);
        List g3 = g3(a2, b);
        AlertDialog.Builder h = AbstractC0665a.h(this, z);
        h.setCancelable(true);
        h.setOnCancelListener(new P1(this));
        final SimpleAdapter v3 = v3(g3);
        h.setSingleChoiceItems(v3, -1, new DialogInterface.OnClickListener() {
            @Override
            public final void onClick(DialogInterface dialogInterface, int i) {
                XoneBaseActivity.this.Z3(v3, a2, b, dialogInterface, i);
            }
        });
        h.setTitle(PropertyTitle);
        return h.create();
    }

    public String b3(IXoneObject iXoneObject, String str) {
        try {
            InterfaceC1032j0 GetNode = iXoneObject.getOwnerCollection().GetNode("prop", "frame", str);
            if (GetNode != null) {
                return iXoneObject.FieldPropertyValue(GetNode.w0("name"), "group");
            }
            InterfaceC1032j0 GetNode2 = iXoneObject.getOwnerCollection().GetNode("frame", "frame", str);
            return GetNode2 == null ? "" : b3(iXoneObject, GetNode2.w0("name"));
        } catch (Exception unused) {
            return "";
        }
    }

    public final void b4(DialogInterface dialogInterface, int i) {
        dialogInterface.dismiss();
        if (!this.J || this.K) {
            k(12);
        }
    }

    public void b5(IXoneObject iXoneObject) {
        this.w = iXoneObject;
        EnumC0821f D = xoneApp.Z0().D();
        if ((D == EnumC0821f.Auto || D == EnumC0821f.FullAuto) && (iXoneObject instanceof XoneDataObject)) {
            final lc.b bVar = (lc.b) new G(this).a(lc.b.class);
            ((XoneDataObject) iXoneObject).j3(bVar);
            if (Utils.s3()) {
                bVar.f().i(this, new G2(this));
            } else {
                runOnUiThread(new Runnable() {
                    @Override
                    public final void run() {
                        XoneBaseActivity.this.n4(bVar);
                    }
                });
            }
        }
    }

    public final void b6() {
        View findViewById;
        if ((this.H <= 0 || this.I <= 0 || !U3()) && (findViewById = findViewById(R.id.content)) != null) {
            int width = findViewById.getWidth();
            int height = findViewById.getHeight();
            if (width > 0) {
                this.H = width;
            }
            if (height > 0) {
                this.I = height;
            }
        }
    }

    @Override
    public final void bind(boolean z, Object... objArr) {
        IXoneObject dataObject = getDataObject();
        if (dataObject == null) {
            throw new NullPointerException("Error in bind(), data object is null");
        }
        dataObject.bind(z, objArr);
    }

    @Override
    public final void bindJava(boolean z, Object... objArr) {
        IXoneObject dataObject = getDataObject();
        if (dataObject == null) {
            throw new NullPointerException("Error in bindJava(), data object is null");
        }
        dataObject.bindJava(z, objArr);
    }

    @Override
    public final void bindVbscript(boolean z, String str, String str2, String str3) {
        IXoneObject dataObject = getDataObject();
        if (dataObject == null) {
            throw new NullPointerException("Error in bindVbscript(), data object is null");
        }
        dataObject.bindVbscript(z, str, str2, str3);
    }

    @Override
    public boolean c() {
        return isDestroyed();
    }

    public final AlertDialog c2() {
        int H2 = H2();
        CharSequence C3 = C3();
        CharSequence B3 = B3();
        Y4(0);
        z5(null);
        y5(null);
        return c3(H2, C3, B3);
    }

    public AlertDialog c3(int i, CharSequence charSequence, CharSequence charSequence2) {
        AlertDialog.Builder h = AbstractC0665a.h(this, xoneApp.Z0().s0());
        if (i == 0) {
            h.setIcon(R.drawable.ic_dialog_info);
        } else {
            h.setIcon(R.drawable.ic_dialog_alert);
        }
        if (!t.h(charSequence)) {
            h.setTitle(charSequence);
        }
        h.setMessage(charSequence2);
        h.setCancelable(false);
        h.setPositiveButton(AbstractC0568j.a, new DialogInterface.OnClickListener() {
            @Override
            public final void onClick(DialogInterface dialogInterface, int i2) {
                XoneBaseActivity.this.b4(dialogInterface, i2);
            }
        });
        return h.create();
    }

    public void c5(int i) {
        this.U = i;
    }

    public void c6(String str, String str2, int i) {
        this.q = i;
        ProgressDialog progressDialog = this.o;
        if (progressDialog != null) {
            progressDialog.setTitle(str);
            this.o.setMessage(str2);
            this.o.setProgress(i);
            int i2 = this.p;
            if (i2 == -1) {
                this.o.setMax(100);
                this.p = 100;
            } else {
                this.o.setMax(i2);
            }
            if (i == this.p) {
                this.L = false;
                this.o.dismiss();
                this.o = null;
            }
        }
    }

    @ScriptAllowed
    public String captureImage(Object... objArr) {
        Utils.j("CaptureImage", objArr);
        Utils.h("CaptureImage", objArr, 1, 2);
        String y = t.y(objArr[0]);
        String x = Utils.x(objArr, 1, "");
        if (TextUtils.isEmpty(y)) {
            throw new IllegalArgumentException("CaptureImage(): Empty target property argument");
        }
        IXoneObject dataObject = getDataObject();
        if (dataObject == null) {
            throw new NullPointerException("Cannot obtain data object from window");
        }
        File A = r.A(A3(x), C2().getFilesPath());
        if (t.l(dataObject.FieldPropertyValue(y, "embed"), false)) {
            String k = AbstractC0689b.k(A);
            dataObject.SetPropertyValue(y, new String[]{k}[0]);
            return k;
        }
        String name = A.getName();
        dataObject.SetPropertyValue(y, new Object[]{name}[0]);
        return name;
    }

    @ScriptAllowed
    public int clearFocus(Object... objArr) {
        Utils.j("ClearFocus", objArr);
        Utils.g("ClearFocus", objArr, 1);
        String y = t.y(objArr[0]);
        final View findViewWithTag = t2(R.id.content).findViewWithTag(y);
        if (findViewWithTag != null) {
            fa.j.m(new Runnable() {
                @Override
                public final void run() {
                    findViewWithTag.clearFocus();
                }
            });
            return 0;
        }
        throw new NullPointerException("ClearFocus(): Error, cannot find property " + y + " in view hierarchy");
    }

    public c d3(b bVar) {
        this.y0 = bVar;
        return this.z0;
    }

    public final void d4(String str) {
        AlertDialog P2 = P2(str);
        this.q0 = P2;
        P2.show();
        TextView textView = (TextView) this.q0.findViewById(R.id.message);
        if (textView != null) {
            textView.setTypeface(J2());
        }
    }

    public final void d5(AlertDialog alertDialog) {
        this.q0 = alertDialog;
    }

    @ScriptAllowed
    public boolean disableFullScreen(Object... objArr) {
        if (Utils.s3()) {
            h2();
        }
        fa.j.m(new Runnable() {
            @Override
            public final void run() {
                XoneBaseActivity.this.h2();
            }
        });
        return true;
    }

    @ScriptAllowed
    public int drawMapRoute(Object... objArr) {
        Utils.j("DrawMapRoute", objArr);
        String y = t.y(objArr[0]);
        if (TextUtils.isEmpty(y)) {
            throw new IllegalArgumentException("DrawMapRoute(): Empty map control name");
        }
        P p = (P) getControl(y);
        if (p != null) {
            p.drawRoute(Arrays.copyOfRange(objArr, 1, objArr.length));
            return 0;
        }
        throw new NullPointerException("DrawMapRoute(): Cannot find map control " + y);
    }

    public boolean e3() {
        return this.L;
    }

    public void e5(InterfaceC1032j0 interfaceC1032j0) {
        this.W = interfaceC1032j0;
    }

    @ScriptAllowed
    public boolean enableFullScreen(Object... objArr) {
        Utils.h("EnableFullScreen", objArr, 0, 1);
        final boolean q = Utils.q(objArr, 0, false);
        if (Utils.s3()) {
            a4(q);
        }
        fa.j.m(new Runnable() {
            @Override
            public final void run() {
                XoneBaseActivity.this.a4(q);
            }
        });
        return true;
    }

    @ScriptAllowed
    public boolean enterPipMode() {
        PictureInPictureParams build;
        boolean enterPictureInPictureMode;
        int i = Build.VERSION.SDK_INT;
        if (i >= 26) {
            build = K1.a().build();
            enterPictureInPictureMode = enterPictureInPictureMode(build);
            return enterPictureInPictureMode;
        }
        if (i < 24) {
            return false;
        }
        enterPictureInPictureMode();
        return true;
    }

    @Override
    @ScriptAllowed
    public int executeActionAfterDelay(Object... objArr) {
        Utils.j("ExecuteActionAfterDelay", objArr);
        Utils.g("ExecuteActionAfterDelay", objArr, 2);
        String y = t.y(objArr[0]);
        double h = q.h(objArr[1]);
        if (TextUtils.isEmpty(y)) {
            throw new IllegalArgumentException("ExecuteActionAfterDelay(): Node parameter not set");
        }
        IXoneObject dataObject = getDataObject();
        if (dataObject == null) {
            return -1;
        }
        C0673h c0673h = new C0673h(y);
        fa.j.f().schedule(RunnableC1097a.g(this, dataObject, getHandler(), c0673h.a(), 0, false, c0673h.b(), null), (long) (h * 1000.0d), TimeUnit.MILLISECONDS);
        return 0;
    }

    @ScriptAllowed
    public boolean exit() {
        finish();
        return true;
    }

    public View f3() {
        return this.v;
    }

    public final void f4(androidx.activity.result.a aVar) {
        b bVar = this.y0;
        if (bVar == null) {
            return;
        }
        bVar.a(aVar);
        this.y0 = null;
    }

    public void f5(boolean z) {
        this.p0 = z;
    }

    public void finish() {
        super/*android.app.Activity*/.finish();
        S1(getIntent());
    }

    public final ProgressDialog g2() {
        ProgressDialog progressDialog = new ProgressDialog(this);
        progressDialog.setProgressStyle(0);
        progressDialog.setMessage(null);
        progressDialog.setTitle((CharSequence) null);
        progressDialog.setCancelable(false);
        return progressDialog;
    }

    public final List g3(IXoneObject iXoneObject, String str) {
        if (iXoneObject == null) {
            throw new IllegalArgumentException("Empty data object");
        }
        if (TextUtils.isEmpty(str)) {
            throw new IllegalArgumentException("Empty field name for object " + iXoneObject);
        }
        String FieldPropertyValue = iXoneObject.FieldPropertyValue(str, "linkedto");
        if (TextUtils.isEmpty(FieldPropertyValue)) {
            throw new IllegalArgumentException("Empty linkedto attribute for field " + str + " in object " + iXoneObject);
        }
        String FieldPropertyValue2 = iXoneObject.FieldPropertyValue(FieldPropertyValue, "mapcol-values");
        if (!TextUtils.isEmpty(FieldPropertyValue2)) {
            return j3(FieldPropertyValue2);
        }
        String FieldPropertyValue3 = iXoneObject.FieldPropertyValue(str, "linkedfield");
        if (TextUtils.isEmpty(FieldPropertyValue3)) {
            throw new IllegalArgumentException("Empty linkedfield attribute for field " + str + " in object " + iXoneObject);
        }
        String FieldPropertyValue4 = iXoneObject.FieldPropertyValue(FieldPropertyValue, "mapcol");
        if (TextUtils.isEmpty(FieldPropertyValue4)) {
            throw new IllegalArgumentException("Empty mapcol attribute in linkedto field " + FieldPropertyValue + " while instancing property " + str + " in object " + iXoneObject);
        }
        String FieldPropertyValue5 = iXoneObject.FieldPropertyValue(FieldPropertyValue, "mapfld");
        if (TextUtils.isEmpty(FieldPropertyValue5)) {
            throw new IllegalArgumentException("Empty mapfld attribute in field " + FieldPropertyValue + " while instancing property " + str + " in object " + iXoneObject);
        }
        String FieldPropertyValue6 = iXoneObject.FieldPropertyValue(FieldPropertyValue, "filter", false);
        IXoneCollection GetCollection = iXoneObject.getOwnerCollection().getOwnerApp().GetCollection(FieldPropertyValue4);
        if (GetCollection == null) {
            throw new NullPointerException("Cannot find collection " + FieldPropertyValue4);
        }
        if (t.h(FieldPropertyValue6)) {
            GetCollection.setFilter(null);
        } else {
            if (!t.E(GetCollection.getFilter(), iXoneObject.PrepareSqlString(FieldPropertyValue6))) {
                GetCollection.setFilter(iXoneObject.PrepareSqlString(FieldPropertyValue6));
                GetCollection.Clear();
            }
        }
        ArrayList arrayList = new ArrayList();
        InterfaceC1034k0 GetNodeList = GetCollection.GetNodeList("prop", "visible", "15");
        if (GetNodeList == null) {
            arrayList.add(FieldPropertyValue3);
        } else if (GetNodeList.count() == 0) {
            arrayList.add(FieldPropertyValue3);
        } else {
            for (int i = 0; i < GetNodeList.count(); i++) {
                arrayList.add(GetNodeList.get(i).w0("name"));
            }
        }
        ArrayList arrayList2 = new ArrayList();
        if (t.l(iXoneObject.FieldPropertyValue(str, "showinline-cleaner"), false)) {
            HashMap hashMap = new HashMap();
            hashMap.put("title", "");
            hashMap.put(XoneNFCRuntime.TAG_ID_FIELD, 0);
            arrayList2.add(hashMap);
        }
        String FieldPropertyValue7 = iXoneObject.FieldPropertyValue(str, "showinline-prop-separator");
        if (t.l(GetCollection.CollPropertyValue("loadall"), false)) {
            h3(GetCollection, arrayList, arrayList2, FieldPropertyValue7, FieldPropertyValue5);
        } else {
            i3(GetCollection, arrayList, arrayList2, FieldPropertyValue7, FieldPropertyValue5, q.p(iXoneObject.FieldPropertyValue(str, "records-limit"), 1000));
        }
        arrayList.clear();
        if (GetNodeList != null) {
            GetNodeList.clear();
        }
        return arrayList2;
    }

    public final void g4(Object obj, l lVar) {
        s4(obj);
    }

    public void g5(boolean z) {
        this.L = z;
    }

    @ScriptAllowed
    public String getBottomSheetState(Object... objArr) {
        Utils.j("GetBottomSheetState", objArr);
        Utils.g("GetBottomSheetState", objArr, 1);
        String y = t.y(objArr[0]);
        if (!TextUtils.isEmpty(y)) {
            return Q5(BottomSheetBehavior.m0(j(y)).p0());
        }
        throw new IllegalArgumentException("GetBottomSheetState(): Empty property name");
    }

    @ScriptAllowed
    public <T extends View> T getControl(Object... objArr) {
        Utils.j("GetControl", objArr);
        Utils.g("GetControl", objArr, 1);
        String y = t.y(objArr[0]);
        if (!TextUtils.isEmpty(y)) {
            return (T) j(y);
        }
        throw new IllegalArgumentException("GetControl(): Empty control name");
    }

    @ScriptAllowed
    public String getCurrentOrientation(Object... objArr) {
        return getResources().getBoolean(ha.s.a) ? "landscape" : "portrait";
    }

    @ScriptAllowed
    public IXoneCollection getDataCollection() {
        return this.x;
    }

    @Override
    @ScriptAllowed
    public IXoneObject getDataObject() {
        return this.w;
    }

    @Override
    public String getDefaultMethod() {
        return "Refresh";
    }

    @Override
    public final List getEventCallback(String str, String str2) {
        IXoneObject dataObject = getDataObject();
        if (dataObject != null) {
            return dataObject.getEventCallback(str, str2);
        }
        throw new NullPointerException("Error in getEventCallback(), data object is null");
    }

    public Handler getHandler() {
        return this.l;
    }

    @Override
    public int getMaxScreenHeight() {
        return this.I;
    }

    @Override
    public int getMaxScreenWidth() {
        return this.H;
    }

    @Override
    public String getName() {
        return "ViewEditObject";
    }

    @ScriptAllowed
    public C0932x0 getPositionOnScreen(Object... objArr) {
        Utils.g("GetPositionOnScreen", objArr, 1);
        String z = t.z(objArr[0], null);
        if (TextUtils.isEmpty(z)) {
            throw new IllegalArgumentException("GetPositionOnScreen(): Empty control name argument");
        }
        View j = j(z);
        int[] iArr = new int[2];
        if (j != null) {
            j.getLocationInWindow(iArr);
        }
        C0932x0 c0932x0 = new C0932x0();
        k.P(c0932x0, "x", iArr[0]);
        k.P(c0932x0, "y", iArr[1]);
        return c0932x0;
    }

    @Override
    public V getScope() {
        IXoneObject dataObject = getDataObject();
        if (dataObject == null) {
            return null;
        }
        return ((XoneApplication) dataObject.getOwnerApp()).getScope();
    }

    public void h2() {
        View decorView;
        Window window = getWindow();
        if (window == null || (decorView = window.getDecorView()) == null) {
            return;
        }
        decorView.setSystemUiVisibility(1792);
    }

    public void h3(IXoneCollection iXoneCollection, List list, List list2, String str, String str2) {
        if (!iXoneCollection.getFull()) {
            iXoneCollection.LoadAll();
        }
        for (int i = 0; i < iXoneCollection.getCount(); i++) {
            IXoneObject iXoneObject = iXoneCollection.get(i);
            StringBuilder sb2 = new StringBuilder();
            for (int i2 = 0; i2 < list.size(); i2++) {
                if (!TextUtils.isEmpty(sb2)) {
                    if (TextUtils.equals(str, "##CARRETURN##")) {
                        sb2.append("\n");
                    } else if (TextUtils.isEmpty(str)) {
                        sb2.append("\n");
                    } else {
                        sb2.append(str);
                    }
                }
                sb2.append(iXoneObject.GetRawStringField((String) list.get(i2)));
            }
            Object obj = iXoneObject.get(str2);
            HashMap hashMap = new HashMap();
            hashMap.put("title", sb2.toString());
            hashMap.put(XoneNFCRuntime.TAG_ID_FIELD, obj);
            list2.add(hashMap);
        }
    }

    public final void h4(Object obj, Exception exc) {
        try {
            XOneJavascript.x(obj, Utils.M2(exc));
        } catch (Exception e) {
            b(e);
        }
    }

    public void h5(ProgressDialogC0704d progressDialogC0704d) {
        this.s = progressDialogC0704d;
    }

    @ScriptAllowed
    public boolean hasPipPermission() {
        int i = Build.VERSION.SDK_INT;
        if (i < 26) {
            return false;
        }
        String packageName = getPackageName();
        int myUid = Process.myUid();
        AppOpsManager appOpsManager = (AppOpsManager) getSystemService("appops");
        return (i >= 29 ? appOpsManager.unsafeCheckOpNoThrow("android:picture_in_picture", myUid, packageName) : appOpsManager.checkOpNoThrow("android:picture_in_picture", myUid, packageName)) == 0;
    }

    @ScriptAllowed
    public int hideGroup(Object... objArr) {
        Utils.j("HideGroup", objArr);
        Utils.g("HideGroup", objArr, 1);
        Object obj = objArr[0];
        if (obj instanceof Double) {
            obj = Integer.valueOf(q.o(obj));
        }
        N3(t.y(obj));
        return 0;
    }

    @ScriptAllowed
    public boolean hideSnackbar() {
        Snackbar snackbar = this.w0;
        if (snackbar == null || !snackbar.K()) {
            this.w0 = null;
            return false;
        }
        this.w0.x();
        this.w0 = null;
        return true;
    }

    @Override
    @ScriptAllowed
    public int hideSoftwareKeyboard(Object... objArr) {
        View f3 = f3();
        if (f3 == null) {
            f3 = getCurrentFocus();
        }
        if (f3 == null) {
            return 0;
        }
        ((InputMethodManager) getApplicationContext().getSystemService("input_method")).hideSoftInputFromWindow(f3.getWindowToken(), 0);
        return 0;
    }

    @ScriptAllowed
    public void hideWaitDialog() {
        O3();
    }

    @Override
    public void i(C0819d c0819d) {
        if (c0819d.c()) {
            if (this.o == null) {
                this.o = ProgressDialogC0709i.d(this, c0819d.a());
            }
            N4(this.o);
        } else {
            if (!c0819d.d() || this.s == null) {
                return;
            }
            H5(c0819d.b());
        }
    }

    @Override
    public void i0(final String str) {
        if (c()) {
            Utils.l("XOneAndroidFramework", "An error has happened while the activity was being destroyed: " + str);
            return;
        }
        if (!Utils.s3()) {
            runOnUiThread(new Runnable() {
                @Override
                public final void run() {
                    XoneBaseActivity.this.d4(str);
                }
            });
            return;
        }
        AlertDialog P2 = P2(str);
        this.q0 = P2;
        P2.show();
        TextView textView = (TextView) this.q0.findViewById(R.id.message);
        if (textView != null) {
            textView.setTypeface(J2());
        }
    }

    public void i2(IXoneObject iXoneObject, String str) {
        j2(iXoneObject, str, null);
    }

    public void i3(IXoneCollection iXoneCollection, List list, List list2, String str, String str2, int i) {
        iXoneCollection.StartBrowse();
        for (int i2 = 0; iXoneCollection.getCurrentItem() != null && i2 < i; i2++) {
            try {
                IXoneObject currentItem = iXoneCollection.getCurrentItem();
                StringBuilder sb2 = new StringBuilder();
                for (int i3 = 0; i3 < list.size(); i3++) {
                    if (!TextUtils.isEmpty(sb2)) {
                        if (TextUtils.equals(str, "##CARRETURN##")) {
                            sb2.append("\n");
                        } else if (TextUtils.isEmpty(str)) {
                            sb2.append("\n");
                        } else {
                            sb2.append(str);
                        }
                    }
                    sb2.append(currentItem.GetRawStringField((String) list.get(i3)));
                }
                Object obj = currentItem.get(str2);
                HashMap hashMap = new HashMap();
                hashMap.put("title", sb2.toString());
                hashMap.put(XoneNFCRuntime.TAG_ID_FIELD, obj);
                list2.add(hashMap);
                iXoneCollection.MoveNext();
            } catch (Throwable th) {
                iXoneCollection.EndBrowse();
                throw th;
            }
        }
        iXoneCollection.EndBrowse();
    }

    public final void i4(C9.h hVar, DialogInterface dialogInterface, int i) {
        try {
            hVar.i(this);
        } catch (Exception e) {
            b(e);
        }
    }

    public void i5(final String str) {
        if (this.s == null) {
            return;
        }
        if (Utils.s3()) {
            o4(str);
        } else {
            runOnUiThread(new Runnable() {
                @Override
                public final void run() {
                    XoneBaseActivity.this.o4(str);
                }
            });
        }
    }

    @ScriptAllowed
    public int injectJavascript(Object... objArr) {
        Utils.j("InjectJavascript", objArr);
        Utils.g("InjectJavascript", objArr, 2);
        String y = t.y(objArr[0]);
        final String y2 = t.y(objArr[1]);
        if (TextUtils.isEmpty(y)) {
            throw new IllegalArgumentException("InjectJavascript(): Error, sWebViewPropName == null");
        }
        if (TextUtils.isEmpty(y2)) {
            throw new IllegalArgumentException("InjectJavascript(): Error, sScriptText == null");
        }
        XOneWebView xOneWebView = (XOneWebView) t2(R.id.content).findViewWithTag(y);
        if (xOneWebView == null) {
            throw new NullPointerException("InjectJavascript(): Error, cannot find webview in view hierarchy");
        }
        final L innerWebView = xOneWebView.getInnerWebView();
        if (innerWebView != null) {
            runOnUiThread(new Runnable() {
                @Override
                public final void run() {
                    F8.L.this.loadUrl("javascript:" + y2);
                }
            });
            return 0;
        }
        throw new NullPointerException("InjectJavascript(): Error, cannot find inner webview in view hierarchy");
    }

    @ScriptAllowed
    public XoneBaseActivity injectTouchEvent(Object... objArr) {
        Utils.j("InjectTouchEvent", objArr);
        Utils.g("InjectTouchEvent", objArr, 1);
        if (((C0932x0) objArr[0]) != null) {
            return this;
        }
        throw new IllegalArgumentException("Empty touch event data");
    }

    @ScriptAllowed
    public boolean isDarkMode() {
        Configuration configuration;
        int i;
        Resources resources = getResources();
        return (resources == null || (configuration = resources.getConfiguration()) == null || (i = configuration.uiMode & 48) == 0 || i == 16 || i != 32) ? false : true;
    }

    @ScriptAllowed
    public boolean isGroupOpen(Object... objArr) {
        DrawerLayout t2;
        Utils.j("IsGroupOpen", objArr);
        Utils.g("IsGroupOpen", objArr, 1);
        Object obj = objArr[0];
        if (obj instanceof Double) {
            obj = Integer.valueOf(q.o(obj));
        }
        String y = t.y(obj);
        if (TextUtils.isEmpty(y) || (t2 = t2(AbstractC0564f.v0)) == null) {
            return false;
        }
        int childCount = t2.getChildCount();
        CoordinatorLayout coordinatorLayout = null;
        for (int i = 0; i < childCount; i++) {
            CoordinatorLayout childAt = t2.getChildAt(i);
            if ((childAt instanceof I) && y.equals(((I) childAt).getGroupId())) {
                coordinatorLayout = (C0159v) childAt;
            }
        }
        if (coordinatorLayout == null) {
            return false;
        }
        return t2.e0(coordinatorLayout);
    }

    @Override
    public boolean isVisible() {
        return this.o0;
    }

    @Override
    public View j(String str) {
        View findViewById = findViewById(R.id.content);
        if (findViewById == null) {
            throw new NullPointerException("Error, no main view found for this activity");
        }
        View z2 = z2(findViewById, "##FRAME##" + str);
        return z2 != null ? z2 : z2(findViewById, str);
    }

    public void j2(IXoneObject iXoneObject, String str, String[] strArr) {
        InterfaceC1034k0 GetNodeList;
        if (iXoneObject == null || TextUtils.isEmpty(str)) {
            return;
        }
        String FieldPropertyValue = iXoneObject.FieldPropertyValue(str, "onchange");
        String FieldPropertyValue2 = iXoneObject.FieldPropertyValue(str, "mapcol");
        if (!TextUtils.isEmpty(iXoneObject.FieldPropertyValue(str, "mapfld")) && !TextUtils.isEmpty(FieldPropertyValue2) && TextUtils.isEmpty(FieldPropertyValue) && (GetNodeList = iXoneObject.getOwnerCollection().GetNodeList("prop", "linkedto", str)) != null && GetNodeList.count() > 0) {
            HashSet hashSet = new HashSet(GetNodeList.count());
            for (int i = 0; i < GetNodeList.count(); i++) {
                String w0 = GetNodeList.get(i).w0("name");
                if (strArr == null || Arrays.binarySearch(strArr, w0) < 0) {
                    hashSet.add(w0);
                }
            }
            if (hashSet.isEmpty()) {
                return;
            }
            a0(true, hashSet);
            return;
        }
        XOneDataObjectView N2 = N2(iXoneObject);
        if (TextUtils.isEmpty(FieldPropertyValue)) {
            HashSet hashSet2 = new HashSet(1);
            hashSet2.add(str);
            if (N2 != null) {
                N2.o(hashSet2);
                return;
            }
            EditFramePage o3 = o3(iXoneObject);
            if (o3 != null) {
                o3.K0(100, hashSet2, true, 100, 100);
                return;
            } else {
                a0(true, hashSet2);
                return;
            }
        }
        for (String str2 : FieldPropertyValue.split(";")) {
            if (!TextUtils.isEmpty(FieldPropertyValue)) {
                Locale locale = Locale.US;
                if (str2.toLowerCase(locale).contains("refresh")) {
                    if (str2.indexOf(40) <= 0) {
                        if (N2 == null) {
                            I(null);
                            return;
                        } else {
                            N2.o(null);
                            return;
                        }
                    }
                    Set r2 = Utils.r2(str2, true);
                    if (N2 == null) {
                        a0(true, r2);
                        return;
                    } else {
                        N2.o(r2);
                        return;
                    }
                }
                if (str2.toLowerCase(locale).contains("executenode") && !t.h(str2)) {
                    new o.a().b(this).d(iXoneObject).e(this.l).f(str2).a().executeOnExecutor(AsyncTask.SERIAL_EXECUTOR, new Void[0]);
                }
            }
        }
    }

    public final List j3(String str) {
        ArrayList arrayList = new ArrayList();
        String[] split = str.split(",");
        for (int i = 0; i < split.length; i++) {
            HashMap hashMap = new HashMap();
            hashMap.put("title", split[i]);
            hashMap.put(XoneNFCRuntime.TAG_ID_FIELD, Integer.valueOf(i));
            arrayList.add(hashMap);
        }
        return arrayList;
    }

    public final void j4(InterfaceC1056w interfaceC1056w, int i) {
        try {
            interfaceC1056w.O0(i);
        } catch (Exception e) {
            b(e);
        }
    }

    public void o4(String str) {
        if (TextUtils.isEmpty(str)) {
            this.s.h(AbstractC0568j.F);
        } else {
            this.s.i(str);
        }
    }

    public void k2(Message message) {
        Bundle data = message.getData();
        if (data != null && data.containsKey("nodename")) {
            String string = data.getString("nodename");
            ArrayList arrayList = new ArrayList();
            if (data.keySet().size() > 1) {
                if (data.containsKey("params")) {
                    String[] stringArray = data.getStringArray("params");
                    if (stringArray != null) {
                        for (String str : stringArray) {
                            if (!str.equals("nodename")) {
                                arrayList.add(data.get(str));
                            }
                        }
                    }
                } else {
                    for (String str2 : data.keySet()) {
                        if (!str2.equals("nodename")) {
                            arrayList.add(data.get(str2));
                        }
                    }
                }
            }
            if (TextUtils.isEmpty(string)) {
                Utils.l("XOneAndroidFramework", "doExecuteNodeFromMessage(): No node to execute");
                return;
            }
            IXoneObject dataObject = getDataObject();
            if (dataObject == null) {
                throw new NullPointerException("Error in doExecuteNodeFromMessage(), data object is null");
            }
            RunnableC1097a.h(this, dataObject, this.l, string, 0, false, arrayList.toArray(new Object[0]), null).start();
        }
    }

    public C0786e k3() {
        return this.s0;
    }

    public final void k4(Set set) {
        try {
            J4(set);
        } catch (Exception e) {
            b(e);
        }
    }

    public void k5(BaseAdapter baseAdapter, IXoneObject iXoneObject, String str, int i) {
        try {
            KeyEvent.Callback u3 = u3();
            if (baseAdapter != null && iXoneObject != null && !t.h(str)) {
                String FieldPropertyValue = iXoneObject.FieldPropertyValue(str, "linkedfield");
                String FieldPropertyValue2 = iXoneObject.FieldPropertyValue(str, "linkedto");
                if (!t.h(FieldPropertyValue) && !t.h(FieldPropertyValue2)) {
                    if (!TextUtils.isEmpty(iXoneObject.FieldPropertyValue(FieldPropertyValue2, "mapcol-values"))) {
                        Object item = baseAdapter.getItem(i);
                        if (item instanceof Map) {
                            Map map = (Map) item;
                            if (S3()) {
                                ((InterfaceC1056w) u3).B(new Object[]{map.get("title")}, true);
                                return;
                            } else {
                                I1(iXoneObject, str, new Object[]{map.get("title")}, false);
                                return;
                            }
                        }
                        return;
                    }
                    String FieldPropertyValue3 = iXoneObject.FieldPropertyValue(FieldPropertyValue2, "mapcol");
                    String FieldPropertyValue4 = iXoneObject.FieldPropertyValue(FieldPropertyValue2, "mapfld");
                    if (!t.h(FieldPropertyValue3) && !t.h(FieldPropertyValue4)) {
                        Object item2 = baseAdapter.getItem(i);
                        Object z = item2 instanceof Map ? ((Map) item2).get(XoneNFCRuntime.TAG_ID_FIELD) : item2 instanceof g ? ((g) item2).z() : null;
                        if (S3()) {
                            ((InterfaceC1056w) u3).M(FieldPropertyValue2, new Object[]{z}, true);
                        } else {
                            H1(iXoneObject, FieldPropertyValue2, new Object[]{z});
                        }
                    }
                }
            }
        } catch (Exception e) {
            AbstractC0515a.b(this.l, "", e, ((xoneApp) getApplication()).G0());
        }
    }

    public final synchronized int l2(IXoneObject iXoneObject, String str) {
        int messageBoxResponseButton;
        try {
            IXoneApp D2 = D2();
            if (D2 == null) {
                throw new NullPointerException("AppData is not present");
            }
            XoneGlobalUI xoneGlobalUI = (XoneGlobalUI) D2.getUserInterface();
            xoneGlobalUI.setMessageBoxResponseButton(-1);
            if (iXoneObject != null) {
                D5(iXoneObject);
            } else {
                if (TextUtils.isEmpty(str)) {
                    throw new IllegalArgumentException("Empty data object");
                }
                C5(str);
            }
            messageBoxResponseButton = xoneGlobalUI.getMessageBoxResponseButton();
            while (messageBoxResponseButton < 0) {
                Thread.sleep(100L);
                messageBoxResponseButton = xoneGlobalUI.getMessageBoxResponseButton();
            }
        } catch (Throwable th) {
            throw th;
        }
        return messageBoxResponseButton;
    }

    public InterfaceC1032j0 l3() {
        return this.V;
    }

    public void l5(int i) {
        this.I = i;
    }

    @ScriptAllowed
    public int lockGroup(Object... objArr) {
        Utils.j("LockGroup", objArr);
        Utils.h("LockGroup", objArr, 1, 2);
        Object obj = objArr[0];
        if (obj instanceof Double) {
            obj = Integer.valueOf(q.o(obj));
        }
        String y = t.y(obj);
        if (objArr.length == 1) {
            A4(y, null);
        } else if (objArr.length == 2) {
            A4(y, Boolean.valueOf(t.H(objArr[1])));
        }
        return 0;
    }

    public final synchronized int m2(String str, String str2, int i) {
        try {
            try {
                IXoneApp D2 = D2();
                if (D2 == null) {
                    throw new NullPointerException("AppData is not present");
                }
                XoneGlobalUI xoneGlobalUI = (XoneGlobalUI) D2.getUserInterface();
                xoneGlobalUI.setMessageBoxResponseButton(-1);
                J5(i, str2, str, "##DEFAULT##", null, 0);
                int messageBoxResponseButton = xoneGlobalUI.getMessageBoxResponseButton();
                while (messageBoxResponseButton < 0) {
                    Thread.sleep(100L);
                    messageBoxResponseButton = xoneGlobalUI.getMessageBoxResponseButton();
                }
                return messageBoxResponseButton;
            } catch (Throwable th) {
                th = th;
                throw th;
            }
        } catch (Throwable th2) {
            th = th2;
        }
    }

    public int m3() {
        return getResources().getConfiguration().orientation;
    }

    public final void m4(DialogInterface dialogInterface, int i) {
        try {
            Intent intent = new Intent("android.settings.APPLICATION_DETAILS_SETTINGS");
            intent.setData(Uri.fromParts("package", getPackageName(), null));
            startActivity(intent);
            finish();
        } catch (Exception e) {
            b(e);
        }
    }

    public void m5(int i) {
        this.H = i;
    }

    @ScriptAllowed
    public int msgBox(Object... objArr) {
        Utils.j("MessageBox", objArr);
        Utils.f("MessageBox");
        if (objArr.length == 1) {
            Object obj = objArr[0];
            if (obj == null) {
                throw new IllegalArgumentException("MessageBox(): Empty parameter");
            }
            if (obj instanceof IXoneObject) {
                return l2((IXoneObject) obj, "");
            }
            if (obj instanceof String) {
                return l2(null, (String) obj);
            }
            throw new IllegalArgumentException("MessageBox(): Unknown parameter of type " + objArr[0].getClass().getName());
        }
        Utils.h("MessageBox", objArr, 3, 4);
        String y = t.y(objArr[0]);
        String y2 = t.y(objArr[1]);
        int o = q.o(objArr[2]);
        if (objArr.length == 3) {
            return m2(y, y2, o);
        }
        Object obj2 = objArr[3];
        if (obj2 == null) {
            throw new IllegalArgumentException("MessageBox(): Empty parameter");
        }
        if (obj2 instanceof IXoneObject) {
            return l2((IXoneObject) obj2, "");
        }
        if (obj2 instanceof String) {
            return l2(null, (String) obj2);
        }
        throw new IllegalArgumentException("MessageBox(): Unknown parameter of type " + objArr[3].getClass().getName());
    }

    @ScriptAllowed
    public int msgBoxWithSound(Object... objArr) {
        Utils.j("MessageBoxWithSound", objArr);
        Utils.g("MessageBoxWithSound", objArr, 6);
        return n2(t.y(objArr[0]), t.y(objArr[1]), q.o(objArr[2]), t.y(objArr[3]), t.y(objArr[4]), q.o(objArr[5]));
    }

    public final void n1(Context context, View view, IXoneObject iXoneObject, String str, boolean z, int i) {
        int i2 = z ? 8 : 0;
        if (i2 == i) {
            return;
        }
        String y1 = y1(iXoneObject, str, "animation-in");
        String y12 = y1(iXoneObject, str, "animation-out");
        if (TextUtils.isEmpty(y1) && TextUtils.isEmpty(y12)) {
            view.setVisibility(i2);
        } else {
            p1(context, view, y1, y12, z, i, q.p(y1(iXoneObject, str, "animation-in-delay"), 600), q.p(y1(iXoneObject, str, "animation-out-delay"), 600));
        }
    }

    public final synchronized int n2(String str, String str2, int i, String str3, String str4, int i2) {
        try {
            try {
                IXoneApp D2 = D2();
                if (D2 == null) {
                    throw new NullPointerException("AppData is not present");
                }
                XoneGlobalUI xoneGlobalUI = (XoneGlobalUI) D2.getUserInterface();
                xoneGlobalUI.setMessageBoxResponseButton(-1);
                J5(i, str2, str, str3, str4, i2);
                int messageBoxResponseButton = xoneGlobalUI.getMessageBoxResponseButton();
                while (messageBoxResponseButton < 0) {
                    Thread.sleep(100L);
                    messageBoxResponseButton = xoneGlobalUI.getMessageBoxResponseButton();
                }
                return messageBoxResponseButton;
            } catch (Throwable th) {
                th = th;
                throw th;
            }
        } catch (Throwable th2) {
            th = th2;
        }
    }

    public File n3() {
        return this.d0;
    }

    public final void n4(lc.b bVar) {
        bVar.f().i(this, new G2(this));
    }

    public void n5(int i) {
        if (i == -1) {
            i = 100;
        }
        this.p = i;
        K5();
        ProgressDialog progressDialog = this.o;
        if (progressDialog != null) {
            progressDialog.setMax(i);
        }
    }

    public final void o1(Context context, View view, IXoneObject iXoneObject, String str, boolean z, int i) {
        if ((z ? 8 : 0) == i) {
            return;
        }
        p1(context, view, x1(iXoneObject, str, "animation-in", null), x1(iXoneObject, str, "animation-out", null), z, i, D1(iXoneObject, str, "animation-in-delay", 600), D1(iXoneObject, str, "animation-out-delay", 600));
    }

    public final void o2(String str, C0932x0 c0932x0) {
        Path path;
        String probeContentType;
        this.c0 = k.D(c0932x0, "targetProperty");
        String E = k.E(c0932x0, "fileTypes", "");
        String E2 = k.E(c0932x0, "mimeTypes", "");
        String E3 = k.E(c0932x0, "initialDirectory", "");
        boolean a2 = k.a(c0932x0, "readAllowed", false);
        boolean a3 = k.a(c0932x0, "writeAllowed", false);
        boolean a4 = k.a(c0932x0, "allowMultiSelection", false);
        boolean a5 = k.a(c0932x0, "showSearch", false);
        boolean a6 = k.a(c0932x0, "showLongTapMenu", false);
        boolean a7 = k.a(c0932x0, "resolveFileName", false);
        Object z = k.z(c0932x0, "onFinishPicking", null);
        if (TextUtils.isEmpty(this.c0) && z == null) {
            throw new IllegalArgumentException(str + "(): A targetProperty parameter or onAccepted callback is needed");
        }
        if (z != null) {
            this.b0 = new C0674i(z, a7);
        }
        if (!TextUtils.isEmpty(E3)) {
            y4(E, false, E3, 0, a5, a6, a2, a3);
            return;
        }
        Intent intent = new Intent("android.intent.action.GET_CONTENT");
        intent.addCategory("android.intent.category.OPENABLE");
        intent.putExtra("android.intent.extra.ALLOW_MULTIPLE", a4);
        intent.setType("*/*");
        if (TextUtils.isEmpty(E) && TextUtils.isEmpty(E2)) {
            x4(intent);
            return;
        }
        if (E.contains("all") || E2.contains("all")) {
            x4(intent);
            return;
        }
        if (!TextUtils.isEmpty(E2)) {
            Q1(intent, E2);
            x4(intent);
            return;
        }
        int i = Build.VERSION.SDK_INT;
        if (TextUtils.isEmpty(E)) {
            x4(intent);
            return;
        }
        String[] split = E.split(",");
        if (split.length == 0) {
            x4(intent);
            return;
        }
        if (i >= 26) {
            ArrayList arrayList = new ArrayList();
            for (String str2 : split) {
                if (!TextUtils.isEmpty(str2)) {
                    path = Paths.get(new File("test." + str2.trim()).getPath(), new String[0]);
                    probeContentType = Files.probeContentType(path);
                    arrayList.add(probeContentType);
                }
            }
            intent.putExtra("android.intent.extra.MIME_TYPES", (String[]) arrayList.toArray(new String[0]));
        }
        x4(intent);
    }

    public final EditFramePage o3(IXoneObject iXoneObject) {
        if (iXoneObject == null) {
            return null;
        }
        String obj = iXoneObject.toString();
        WeakReference weakReference = (WeakReference) this.x0.get(obj);
        if (weakReference == null) {
            return null;
        }
        PopupWindow popupWindow = (PopupWindow) weakReference.get();
        if (popupWindow == null) {
            this.x0.remove(obj);
            return null;
        }
        View contentView = popupWindow.getContentView();
        if (contentView instanceof EditFramePage) {
            return (EditFramePage) contentView;
        }
        return null;
    }

    public void o5(int i) {
        this.B = i;
    }

    public void onActivityResult(int i, int i2, Intent intent) {
        super.onActivityResult(i, i2, intent);
        if (i == 517 && i2 == -1 && intent != null) {
            try {
                I4(intent);
            } catch (Exception e) {
                b(e);
            }
        }
    }

    public void onCreate(Bundle bundle) {
        Window window;
        super.onCreate(bundle);
        m1.a.b(this).c(this.m, A0);
        this.O = C2().D1().nextInt();
        X1();
        try {
            if (xoneApp.Z0().w0() && (window = getWindow()) != null) {
                window.addFlags(128);
            }
        } catch (Exception unused) {
        }
        if (Build.VERSION.SDK_INT >= 35) {
            Z.F0(t2(R.id.content), new N0.I() {
                public final N0.B0 a(View view, N0.B0 b0) {
                    return XoneBaseActivity.T0(view, b0);
                }
            });
        }
    }

    public Dialog onCreateDialog(int i) {
        try {
            if (i == 2007) {
                return g2();
            }
            if (i == 2017) {
                return c2();
            }
            if (i == 2027) {
                return new DialogC0706f(this);
            }
            switch (i) {
                case 2000:
                    return Z1();
                case 2001:
                    return e2();
                case 2002:
                    return b2(t3());
                default:
                    return null;
            }
        } catch (Exception e) {
            b(e);
            return null;
        }
    }

    public void onDateSet(DatePicker datePicker, int i, int i2, int i3) {
        try {
            View u3 = u3();
            String p3 = p3();
            if (u3 != 0) {
                Calendar calendar = Calendar.getInstance();
                calendar.set(i, i2, i3);
                StringBuilder sb2 = new StringBuilder(Utils.o4(this, calendar));
                TextView textView = (TextView) ((ViewGroup) u3.getParent()).findViewById(AbstractC0564f.i0);
                StringBuilder sb3 = new StringBuilder();
                if (textView != null) {
                    sb3.append(textView.getText());
                }
                if (u3 instanceof InterfaceC1056w) {
                    ((InterfaceC1056w) u3).B(new String[]{sb2.toString(), sb3.toString()}, true);
                    return;
                }
                if (p3 != null) {
                    a5(getDataObject(), p3, new String[]{sb2.toString(), sb3.toString()}, false);
                } else {
                    AbstractC0515a.a(this.l, -1, null, "Propiedad no seteada", "No se ha encontrado valor para propSelected", false);
                }
                IXoneObject dataObject = getDataObject();
                if (dataObject == null) {
                    throw new NullPointerException("Error in onDateSet(), data object is null");
                }
                if (t.h(dataObject.FieldPropertyValue(p3, "onchange"))) {
                    ((TextView) u3).setText(sb2.toString());
                }
            }
        } catch (Exception e) {
            AbstractC0515a.b(this.l, "", e, D2());
        }
    }

    public void onDestroy() {
        E1(this.m);
        C0834e c0834e = this.n;
        if (c0834e != null) {
            c0834e.d();
        }
        xoneApp.Z0().o2(H0());
        if (this.z != -1) {
            xoneApp.Z0().p2(Integer.valueOf(this.z));
        }
        v1(this.q0);
        this.r.set(0);
        v1(this.s);
        super.onDestroy();
    }

    public boolean onKeyDown(int i, KeyEvent keyEvent) {
        List I2 = I2("onkeydown");
        if (I2 == null) {
            return super/*android.app.Activity*/.onKeyDown(i, keyEvent);
        }
        new EventCallbackTask.b().b(this).e(this.w).h(this.l).g(I2).c(new Object[]{new C0789a("e", new EventOnKeyDown(this.w.getOwnerApp(), this.w, this.x, i))}).a().runSeriallyAsyncTask();
        return super/*android.app.Activity*/.onKeyDown(i, keyEvent);
    }

    public void onPause() {
        super.onPause();
        this.o0 = false;
        S1(getIntent());
    }

    public void onPictureInPictureModeChanged(boolean z) {
        super/*androidx.activity.ComponentActivity*/.onPictureInPictureModeChanged(z);
        if (z) {
            return;
        }
        Intent intent = new Intent((Context) this, getClass());
        intent.addFlags(131072);
        startActivity(intent);
    }

    public void onPrepareDialog(int i, Dialog dialog) {
        Object obj;
        try {
            String p3 = p3();
            View u3 = u3();
            IXoneObject dataObject = getDataObject();
            if (i == 2000) {
                Calendar calendar = Calendar.getInstance();
                if (p3 != null && dataObject != null && (obj = dataObject.get(p3)) != null) {
                    if (obj instanceof Date) {
                        calendar.setTime((Date) obj);
                    } else if (obj instanceof Calendar) {
                        calendar = (Calendar) obj;
                    } else if (obj instanceof String) {
                        calendar.setTime(new SimpleDateFormat(Utils.U0((String) obj)).parse((String) obj));
                    }
                }
                ((DatePickerDialog) dialog).updateDate(calendar.get(1), calendar.get(2), calendar.get(5));
                return;
            }
            if (i == 2001) {
                Calendar calendar2 = Calendar.getInstance();
                if (u3 != null) {
                    StringBuilder sb2 = new StringBuilder(((TextView) u3).getText());
                    if (!TextUtils.isEmpty(sb2)) {
                        String sb3 = sb2.toString();
                        int O2 = Utils.O2(sb3, 0);
                        int O22 = Utils.O2(sb3, 1);
                        if (O2 >= 0 && O22 >= 0) {
                            calendar2.set(11, O2);
                            calendar2.set(12, O22);
                        }
                    }
                }
                ((TimePickerDialog) dialog).updateTime(calendar2.get(11), calendar2.get(12));
                return;
            }
            if (i == 2017) {
                if (H2() == 0) {
                    ((AlertDialog) dialog).setIcon(R.drawable.ic_dialog_info);
                } else {
                    ((AlertDialog) dialog).setIcon(R.drawable.ic_dialog_alert);
                }
                if (!t.h(C3())) {
                    dialog.setTitle(C3());
                }
                ((AlertDialog) dialog).setMessage(B3());
                return;
            }
            if (i != 2023) {
                if (i != 2027) {
                    return;
                }
                ((DialogC0706f) dialog).d(this.B, new B8.g().m(this.F).k(this.G).b(this.E), C3(), B3());
                return;
            }
            this.L = true;
            ProgressDialogC0709i progressDialogC0709i = (ProgressDialogC0709i) dialog;
            this.o = progressDialogC0709i;
            progressDialogC0709i.setProgressStyle(1);
            this.o.setProgress(this.q);
            this.o.setMessage("");
            this.o.setTitle((CharSequence) null);
            this.o.setCancelable(false);
        } catch (Exception e) {
            b(e);
        }
    }

    public void onRequestPermissionsResult(int i, String[] strArr, int[] iArr) {
        super.onRequestPermissionsResult(i, strArr, iArr);
        C9.e.v(this, strArr);
        final C9.h i2 = C9.e.i(i, this.u0);
        if (i2 == null) {
            return;
        }
        HashSet hashSet = new HashSet();
        HashSet hashSet2 = new HashSet();
        if (iArr != null) {
            for (int i3 = 0; i3 < iArr.length; i3++) {
                if (iArr[i3] == 0) {
                    hashSet.add(strArr[i3]);
                } else {
                    hashSet2.add(strArr[i3]);
                }
            }
        }
        try {
            if (hashSet2.isEmpty()) {
                i2.h(hashSet);
                return;
            }
            StringBuilder sb2 = new StringBuilder(i2.c());
            if (i2.e()) {
                J(new ha.q(sb2), new DialogInterface.OnClickListener() {
                    @Override
                    public final void onClick(DialogInterface dialogInterface, int i4) {
                        XoneBaseActivity.this.i4(i2, dialogInterface, i4);
                    }
                });
            }
            i2.g(hashSet2);
        } catch (Exception e) {
            b(e);
        }
    }

    public void onResume() {
        super.onResume();
        this.o0 = true;
        S1(getIntent());
    }

    public void onStart() {
        super.onStart();
        C0834e c0834e = this.n;
        if (c0834e != null) {
            c0834e.e();
        }
    }

    public void onStop() {
        super.onStop();
        C0834e c0834e = this.n;
        if (c0834e != null) {
            c0834e.f();
        }
    }

    public void onTimeSet(TimePicker timePicker, int i, int i2) {
        try {
            View u3 = u3();
            String p3 = p3();
            IXoneObject dataObject = getDataObject();
            if (u3 == 0) {
                return;
            }
            int i3 = 1;
            if (p3 != null && dataObject != null) {
                i3 = q.p(dataObject.FieldPropertyValue(p3, "time-interval"), 1);
            }
            Point A2 = A2(i, i2, i3);
            StringBuilder sb2 = new StringBuilder();
            sb2.append(Utils.F(String.valueOf(A2.x), 2));
            sb2.append(":");
            sb2.append(Utils.F(String.valueOf(A2.y), 2));
            if (u3 instanceof InterfaceC1056w) {
                ((InterfaceC1056w) u3).l(null, sb2.toString(), false);
                return;
            }
            if (p3 != null && dataObject != null) {
                if (dataObject.FieldPropertyValue(p3, "type").startsWith("T") && t.E("Hh#:#Mm", dataObject.FieldPropertyValue(p3, "mask"))) {
                    a5(dataObject, p3, new String[]{sb2.toString()}, false);
                } else {
                    a5(dataObject, p3, new String[]{((TextView) ((LinearLayout) u3.getParent()).findViewById(AbstractC0564f.K)).getText().toString(), sb2.toString()}, false);
                }
                if (t.h(dataObject.FieldPropertyValue(p3, "onchange"))) {
                    ((TextView) u3).setText(sb2.toString());
                }
            }
        } catch (Exception e) {
            AbstractC0515a.b(this.l, "", e, D2());
        }
    }

    @Override
    public void p(C9.h hVar) {
        List<C9.f> j = C9.e.j(this, hVar);
        if (j.isEmpty()) {
            hVar.h(hVar.d());
            return;
        }
        HashSet hashSet = new HashSet();
        for (C9.f fVar : j) {
            String a2 = fVar.a();
            if (TextUtils.isEmpty(a2)) {
                a2 = "";
            }
            Utils.l("XOneAndroidFramework", "Permission denied: " + a2);
            if (fVar.b()) {
                hashSet.add(fVar.a());
            }
        }
        if (hashSet.isEmpty()) {
            a(hVar);
            C9.e.h(this, hVar);
        } else {
            J(new ha.q(new StringBuilder(hVar.c())), new DialogInterface.OnClickListener() {
                @Override
                public final void onClick(DialogInterface dialogInterface, int i) {
                    XoneBaseActivity.this.m4(dialogInterface, i);
                }
            });
            hVar.g(hashSet);
        }
    }

    public final void p1(Context context, View view, String str, String str2, boolean z, int i, int i2, int i3) {
        int i4 = z ? 8 : 0;
        if (i4 == i) {
            return;
        }
        if (!TextUtils.isEmpty(str) && i != 0) {
            view.setVisibility(0);
            view.startAnimation(AbstractC0730b.a(context, t.Q(str, "##LEFT_IN##"), i2));
        } else {
            if (TextUtils.isEmpty(str2) || i == 8) {
                view.setVisibility(i4);
                return;
            }
            Animation a2 = AbstractC0730b.a(context, t.Q(str2, "##LEFT_OUT##"), i3);
            a2.setAnimationListener(new AnimationAnimationListenerC0942f(view, 8));
            view.startAnimation(a2);
        }
    }

    public final void p2(Object[] objArr) {
        this.c0 = t.y(objArr[0]);
        String y = objArr.length > 1 ? t.y(objArr[1]) : null;
        boolean l = objArr.length > 2 ? t.l(t.y(objArr[2]), false) : false;
        String str = "";
        if (objArr.length > 3) {
            str = t.z(objArr[3], "");
            if (!TextUtils.isEmpty(str)) {
                IXoneApp c1 = xoneApp.c1();
                if (c1 == null) {
                    return;
                } else {
                    str = Utils.D0(c1.getApplicationName(), c1.getAppPath(), str, false);
                }
            }
        }
        y4(y, l, str, objArr.length > 4 ? q.p(objArr[4], 0) : 0, false, false, false, false);
    }

    public String p3() {
        return this.t;
    }

    public void p5(int i) {
        this.G = i;
    }

    @Override
    @ScriptAllowed
    public int pickFile(Object... objArr) {
        Utils.j("PickFile", objArr);
        Utils.h("PickFile", objArr, 1, 5);
        this.a0 = getDataObject();
        Object obj = objArr[0];
        if (obj instanceof C0932x0) {
            o2("PickFile", (C0932x0) obj);
        } else {
            p2(objArr);
        }
        return 0;
    }

    public void q1(IXoneObject iXoneObject, String str, String str2) {
        K k;
        ViewGroup viewGroup = (ViewGroup) t2(AbstractC0564f.N1);
        String str3 = "frame".equals(str2) ? "##FRAME##" + str : str;
        for (int i = 0; i < viewGroup.getChildCount(); i++) {
            View childAt = viewGroup.getChildAt(i);
            if (childAt.findViewWithTag(str3) != null) {
                w5((K) t2(AbstractC0564f.P1).findViewWithTag(((String) childAt.getTag()).replace("##GROUP##", "")));
                M5(false, null, -1, null, -1, str3);
                return;
            }
        }
        String b3 = "frame".equals(str2) ? b3(iXoneObject, str) : iXoneObject.FieldPropertyValue(str3, "group");
        if (TextUtils.isEmpty(b3) || (k = (K) t2(AbstractC0564f.P1).findViewWithTag(b3)) == null) {
            return;
        }
        w5(k);
        M5(false, null, -1, null, -1, str3);
    }

    public void q5(String str) {
        this.E = str;
    }

    public void r(String str) {
        this.t = str;
    }

    @Override
    public U GetPropertyManager(String str, Object[] objArr) {
        Map map = C0;
        Locale locale = Locale.US;
        if (map.containsKey(str.toLowerCase(locale))) {
            return (U) map.get(str.toLowerCase(locale));
        }
        IXoneObject dataObject = getDataObject();
        if (dataObject == null) {
            return null;
        }
        Xa.U u = new Xa.U(str, this, (XoneApplication) dataObject.getOwnerApp());
        u.e(objArr);
        map.put(str.toLowerCase(locale), u);
        return u;
    }

    public void a4(boolean z) {
        View decorView;
        int i = Build.VERSION.SDK_INT;
        Window window = getWindow();
        if (window == null || (decorView = window.getDecorView()) == null) {
            return;
        }
        decorView.setSystemUiVisibility(3846);
        if (!z || i < 28) {
            return;
        }
        window.getAttributes().layoutInDisplayCutoutMode = 1;
    }

    public C1066a r3() {
        d G3 = G3();
        if (G3 == null) {
            return null;
        }
        return G3.l();
    }

    public final void r4() {
        try {
            showDialog(2027);
        } catch (Exception e) {
            b(e);
        }
    }

    public void r5(String str) {
        this.F = str;
    }

    @ScriptAllowed
    public int refresh(Object... objArr) {
        if (xoneApp.Z0().D() == EnumC0821f.FullAuto) {
            return 0;
        }
        if (objArr == null || objArr.length == 0) {
            I(null);
            return 0;
        }
        LinkedHashSet linkedHashSet = new LinkedHashSet();
        if (objArr.length != 1) {
            for (Object obj : objArr) {
                linkedHashSet.add(XoneGlobalUI.cleanScriptStringValue(t.y(obj)));
            }
            I(linkedHashSet);
            return 0;
        }
        for (String str : t.y(objArr[0]).split(",")) {
            linkedHashSet.add(XoneGlobalUI.cleanScriptStringValue(str));
        }
        I(linkedHashSet);
        return 0;
    }

    @ScriptAllowed
    public int refreshAll(Object... objArr) {
        if (objArr == null || objArr.length == 0) {
            I(null);
            return 0;
        }
        LinkedHashSet linkedHashSet = new LinkedHashSet();
        if (objArr.length != 1) {
            for (Object obj : objArr) {
                linkedHashSet.add(XoneGlobalUI.cleanScriptStringValue(t.y(obj)));
            }
            h(true);
            I(linkedHashSet);
            return 0;
        }
        for (String str : t.y(objArr[0]).split(",")) {
            linkedHashSet.add(XoneGlobalUI.cleanScriptStringValue(str));
        }
        h(true);
        I(linkedHashSet);
        return 0;
    }

    @ScriptAllowed
    public int refreshContentRow(Object... objArr) {
        Utils.j("RefreshContentRow", objArr);
        Utils.g("RefreshContentRow", objArr, 2);
        String y = t.y(objArr[0]);
        if (TextUtils.isEmpty(y)) {
            return -1;
        }
        if (y.indexOf("->") > 0) {
            y = y.split("->")[0];
        }
        final int o = q.o(objArr[1]);
        KeyEvent.Callback findViewWithTag = t2(R.id.content).findViewWithTag(y);
        if (findViewWithTag == null) {
            throw new NullPointerException("RefreshContentRow(): Content not found on view hierarchy");
        }
        if (findViewWithTag instanceof InterfaceC1056w) {
            final InterfaceC1056w interfaceC1056w = (InterfaceC1056w) findViewWithTag;
            if (Utils.s3()) {
                interfaceC1056w.O0(o);
                return 0;
            }
            runOnUiThread(new Runnable() {
                @Override
                public final void run() {
                    XoneBaseActivity.this.j4(interfaceC1056w, o);
                }
            });
        }
        return 0;
    }

    @ScriptAllowed
    public int refreshContentSelectedRow(Object... objArr) {
        Utils.j("RefreshContentSelectedRow", objArr);
        Utils.g("RefreshContentSelectedRow", objArr, 1);
        String y = t.y(objArr[0]);
        KeyEvent.Callback T2 = Utils.T2(t2(R.id.content).findViewWithTag(y), y);
        if (T2 == null) {
            throw new NullPointerException("RefreshContentSelectedRow(): content == null");
        }
        if (T2 instanceof InterfaceC1056w) {
            final InterfaceC1056w interfaceC1056w = (InterfaceC1056w) T2;
            if (Utils.s3()) {
                interfaceC1056w.O();
                return 0;
            }
            runOnUiThread(new Runnable() {
                @Override
                public final void run() {
                    XoneBaseActivity.r0(InterfaceC1056w.this);
                }
            });
        }
        return 0;
    }

    @ScriptAllowed
    public int refreshValue(Object... objArr) {
        Utils.j("RefreshValue", objArr);
        final LinkedHashSet linkedHashSet = new LinkedHashSet();
        if (objArr.length > 0) {
            if (objArr.length == 1) {
                for (String str : t.y(objArr[0]).split(",")) {
                    linkedHashSet.add(W1(str));
                }
            } else {
                for (Object obj : objArr) {
                    linkedHashSet.add(W1(t.y(obj)));
                }
            }
        }
        t2(R.id.content).post(new Runnable() {
            @Override
            public final void run() {
                XoneBaseActivity.this.k4(linkedHashSet);
            }
        });
        return 0;
    }

    @ScriptAllowed
    public Object requestAppReview(Object... objArr) {
        Utils.g("RequestAppReview", objArr, 1);
        C0932x0 c0932x0 = (C0932x0) objArr[0];
        boolean a2 = k.a(c0932x0, "testFakeReview", false);
        final Object y = k.y(c0932x0, "onCompleted");
        final Object y2 = k.y(c0932x0, "onError");
        final j5.a aVar = a2 ? new j5.a(C2()) : g5.d.a(C2());
        l a3 = aVar.a();
        if (y != null || y2 != null) {
            a3.c(new m4.f() {
                public final void a(m4.l lVar) {
                    XoneBaseActivity.this.l4(aVar, y, y2, lVar);
                }
            });
            return Boolean.TRUE;
        }
        try {
            m4.o.a(aVar.b(this, (g5.b) m4.o.a(a3)));
            return Boolean.TRUE;
        } catch (Exception e) {
            throw AbstractC0751f.e(e);
        }
    }

    @Override
    public final void s(int i, Intent intent) {
        z0(i);
        setResult(i, intent);
    }

    public void s2() {
        Window window;
        View decorView;
        if (Build.VERSION.SDK_INT < 28 || (window = getWindow()) == null || (decorView = window.getDecorView()) == null) {
            return;
        }
        decorView.setSystemUiVisibility(1280);
        window.getAttributes().layoutInDisplayCutoutMode = 1;
        window.setStatusBarColor(0);
    }

    public final X s3() {
        return (X) D2();
    }

    public void s5(InterfaceC1032j0 interfaceC1032j0) {
        this.V = interfaceC1032j0;
    }

    @ScriptAllowed
    public int selectAll(Object... objArr) {
        Utils.j("SelectAll", objArr);
        Utils.g("SelectAll", objArr, 1);
        String y = t.y(objArr[0]);
        View findViewWithTag = t2(R.id.content).findViewWithTag(y);
        if (findViewWithTag == null) {
            throw new NullPointerException("SelectAll(): Error, cannot find property " + y + " in view hierarchy");
        }
        if (!(findViewWithTag instanceof XOneEditText)) {
            throw new NullPointerException("SelectAll(): Error, property " + y + " view is not an XoneEditText");
        }
        TextView editableFieldView = ((XOneEditText) findViewWithTag).getEditableFieldView();
        if (editableFieldView instanceof EditText) {
            final EditText editText = (EditText) editableFieldView;
            fa.j.m(new Runnable() {
                @Override
                public final void run() {
                    XoneBaseActivity.Z0(editText);
                }
            });
            return 0;
        }
        throw new NullPointerException("SelectAll(): Error, property " + y + " inner view is not an EditText");
    }

    @ScriptAllowed
    public boolean setBottomSheetState(Object... objArr) {
        Utils.j("SetBottomSheetState", objArr);
        Utils.h("SetBottomSheetState", objArr, 2, 3);
        String y = t.y(objArr[0]);
        String y2 = t.y(objArr[1]);
        Object v = Utils.v(objArr, 2, null);
        if (TextUtils.isEmpty(y)) {
            throw new IllegalArgumentException("SetBottomSheetState(): Empty property name");
        }
        if (TextUtils.isEmpty(y2)) {
            throw new IllegalArgumentException("SetBottomSheetState(): No state set");
        }
        Integer O4 = O4(y2);
        View j = j(y);
        if (j == null) {
            Utils.l("XOneAndroidFramework", "SetBottomSheetState(): No view found");
            return false;
        }
        BottomSheetBehavior m0 = BottomSheetBehavior.m0(j);
        if (O4 != null) {
            m0.R0(O4.intValue());
        }
        if (v != null) {
            if (v instanceof Number) {
                v = Integer.valueOf(((Number) v).intValue());
            }
            m0.E0(!t.k(v, false));
        }
        return true;
    }

    @ScriptAllowed
    public boolean setFocus(Object... objArr) {
        Utils.h("SetFocus", objArr, 1, 2);
        return Z4((String) objArr[0], Utils.q(objArr, 1, true));
    }

    @ScriptAllowed
    public boolean setHdrMode(boolean z) {
        if (Build.VERSION.SDK_INT < 34) {
            return false;
        }
        final int i = z ? 2 : 0;
        final Window window = getWindow();
        if (window == null) {
            return false;
        }
        runOnUiThread(new Runnable() {
            @Override
            public final void run() {
                window.setColorMode(i);
            }
        });
        return true;
    }

    public void setLastEditText(View view) {
        this.v = view;
    }

    @ScriptAllowed
    @SuppressLint({"InlinedApi"})
    public boolean setOrientation(Object... objArr) {
        int i;
        String z;
        Utils.g("SetOrientation", objArr, 1);
        i = 0;
        z = t.z(objArr[0], null);
        z.getClass();
        switch (z) {
            case "sensorLandscape":
                i = 6;
                break;
            case "reverseLandscape":
                i = 8;
                break;
            case "behind":
                i = 3;
                break;
            case "locked":
                i = 14;
                break;
            case "sensor":
            case "all":
                i = 4;
                break;
            case "fullSensor":
                i = 10;
                break;
            case "reversePortrait":
                i = 9;
                break;
            case "sensorPortrait":
                i = 7;
                break;
            case "portrait":
                i = 1;
                break;
            case "landscape":
                break;
            default:
                throw new IllegalArgumentException("SetOrientation(): Unknown screen orientation " + z);
        }
        setRequestedOrientation(i);
        return true;
    }

    @Override
    public final void setSelectedView(View view) {
        this.u = view;
    }

    @ScriptAllowed
    public int setSelection(Object... objArr) {
        Utils.j("SetSelection", objArr);
        Utils.g("SetSelection", objArr, 2);
        String y = t.y(objArr[0]);
        final int o = q.o(objArr[1]);
        View findViewWithTag = t2(R.id.content).findViewWithTag(y);
        if (findViewWithTag == null) {
            throw new NullPointerException("SetSelection(): Error, cannot find property " + y + " in view hierarchy");
        }
        if (!(findViewWithTag instanceof XOneEditText)) {
            throw new NullPointerException("SetSelection(): Error, property " + y + " view is not an XoneEditText");
        }
        final TextView editableFieldView = ((XOneEditText) findViewWithTag).getEditableFieldView();
        if (editableFieldView instanceof EditText) {
            fa.j.m(new Runnable() {
                @Override
                public final void run() {
                    ((EditText) editableFieldView).setSelection(o);
                }
            });
            return 0;
        }
        throw new NullPointerException("SetSelection(): Error, property " + y + " inner view is not an EditText");
    }

    @ScriptAllowed
    public void setStatusBarColor(Object... objArr) {
        final Integer num = null;
        Object A = Utils.A(objArr, 0, null);
        if (A != null) {
            if (A instanceof CharSequence) {
                num = Integer.valueOf(Color.parseColor(A.toString()));
            } else {
                if (!(A instanceof Number)) {
                    throw new IllegalArgumentException("SetStatusBarColor(): Unknown argument of type " + A.getClass().getSimpleName());
                }
                num = Integer.valueOf(((Number) A).intValue());
            }
        }
        if (Utils.s3()) {
            p4(num);
        } else {
            fa.j.p(new Runnable() {
                @Override
                public final void run() {
                    XoneBaseActivity.this.p4(num);
                }
            });
        }
    }

    @ScriptAllowed
    public void setWaitDialogText(Object... objArr) {
        Utils.j("SetWaitDialogText", objArr);
        Utils.g("SetWaitDialogText", objArr, 1);
        i5(t.y(objArr[0]));
    }

    @ScriptAllowed
    public int showGroup(Object... objArr) {
        int i;
        int i2;
        String str;
        String str2;
        Utils.j("ShowGroup", objArr);
        Utils.h("ShowGroup", objArr, 1, 5);
        Object obj = objArr[0];
        if (obj instanceof Double) {
            obj = Integer.valueOf(q.o(obj));
        }
        String y = t.y(obj);
        if (objArr.length > 1) {
            String y2 = t.y(objArr[1]);
            int o = q.o(objArr[2]);
            String y3 = t.y(objArr[3]);
            i2 = q.o(objArr[4]);
            str = y2;
            i = o;
            str2 = y3;
        } else {
            i = 0;
            i2 = 0;
            str = null;
            str2 = null;
        }
        F1(y, str, i, str2, i2);
        return 0;
    }

    @ScriptAllowed
    public boolean showSnackbar(Object... objArr) {
        C0932x0 c0932x0;
        String str;
        char c;
        Utils.j("ShowSnackbar", objArr);
        Utils.g("ShowSnackbar", objArr, 1);
        Object obj = objArr[0];
        if (obj instanceof CharSequence) {
            str = obj.toString();
            c0932x0 = null;
        } else {
            if (!(obj instanceof C0932x0)) {
                throw new IllegalArgumentException("ShowSnackbar(): Unknown parameter type " + objArr[0].getClass().getName());
            }
            c0932x0 = (C0932x0) obj;
            str = "";
        }
        if (!(this instanceof EditViewHyper)) {
            throw new IllegalStateException("Activity is not an instance of EditViewHyper");
        }
        View s7 = ((EditViewHyper) this).s7();
        if (s7 == null) {
            s7 = findViewById(R.id.content);
        }
        final Snackbar l0 = Snackbar.l0(s7, str, 0);
        View G = l0.G();
        if (c0932x0 != null) {
            String D = k.D(c0932x0, "text");
            if (TextUtils.isEmpty(D)) {
                throw new IllegalArgumentException("ShowSnackbar(): Empty text parameter");
            }
            l0.p0(D);
            String D2 = k.D(c0932x0, "color");
            if (!TextUtils.isEmpty(D2)) {
                G.setBackgroundColor(Color.parseColor(D2));
            }
            String E = k.E(c0932x0, "textColor", "#FFFFFF");
            int o = k.o(c0932x0, "maxLines", 1);
            if (!TextUtils.isEmpty(E) || o > 1) {
                TextView textView = (TextView) G.findViewById(s4.f.I);
                if (!TextUtils.isEmpty(E)) {
                    textView.setTextColor(Color.parseColor(E));
                }
                if (o > 1) {
                    textView.setMaxLines(o);
                }
            }
            String D3 = k.D(c0932x0, "actionTextColor");
            if (!TextUtils.isEmpty(D3)) {
                l0.o0(Color.parseColor(D3));
            }
            String str2 = (String) c0932x0.get("actionText");
            final Object obj2 = c0932x0.get("actionMethod");
            if (!TextUtils.isEmpty(str2) && obj2 != null) {
                l0.n0(str2, new View.OnClickListener() {
                    @Override
                    public final void onClick(View view) {
                        XoneBaseActivity.this.t4(obj2, view);
                    }
                });
            }
            String str3 = (String) c0932x0.get("duration");
            if (TextUtils.isEmpty(str3)) {
                str3 = "long";
            }
            str3.getClass();
            switch (str3.hashCode()) {
                case 3327612:
                    if (str3.equals("long")) {
                        c = 0;
                        break;
                    }
                    c = 65535;
                    break;
                case 109413500:
                    if (str3.equals("short")) {
                        c = 1;
                        break;
                    }
                    c = 65535;
                    break;
                case 240880789:
                    if (str3.equals("indefinite")) {
                        c = 2;
                        break;
                    }
                    c = 65535;
                    break;
                default:
                    c = 65535;
                    break;
            }
            switch (c) {
                case 0:
                    l0.T(0);
                    break;
                case 1:
                    l0.T(-1);
                    break;
                case 2:
                    l0.T(-2);
                    break;
                default:
                    throw new IllegalArgumentException("ShowSnackbar(): Invalid snackbar duration " + str3);
            }
            String E2 = k.E(c0932x0, "width", "");
            String E3 = k.E(c0932x0, "height", "");
            String E4 = k.E(c0932x0, "align", "");
            if (!TextUtils.isEmpty(E2) || !TextUtils.isEmpty(E3)) {
                xoneApp Z0 = xoneApp.Z0();
                ViewGroup.LayoutParams layoutParams = G.getLayoutParams();
                if (!TextUtils.isEmpty(E2)) {
                    if (E2.compareTo("100%") == 0) {
                        layoutParams.width = -1;
                    } else {
                        layoutParams.width = Utils.e1(Z0, E2, Z0.V(), getMaxScreenWidth(), getMaxScreenWidth());
                    }
                }
                if (!TextUtils.isEmpty(E3)) {
                    if (E3.compareTo("100%") == 0) {
                        layoutParams.height = -1;
                    } else {
                        layoutParams.height = Utils.e1(Z0, E3, Z0.l(), getMaxScreenHeight(), getMaxScreenHeight());
                    }
                }
                G.setLayoutParams(layoutParams);
            }
            if (!TextUtils.isEmpty(E4)) {
                int g = AbstractC0399a.g(E4, 0);
                CoordinatorLayout.e layoutParams2 = G.getLayoutParams();
                if (layoutParams2 instanceof CoordinatorLayout.e) {
                    layoutParams2.c = g;
                } else if (layoutParams2 instanceof FrameLayout.LayoutParams) {
                    ((FrameLayout.LayoutParams) layoutParams2).gravity = g;
                }
                G.setLayoutParams(layoutParams2);
            }
        } else {
            ((TextView) G.findViewById(s4.f.I)).setTextColor(-1);
        }
        runOnUiThread(new Runnable() {
            @Override
            public final void run() {
                l0.X();
            }
        });
        this.w0 = l0;
        return true;
    }

    @Override
    @ScriptAllowed
    public int showSoftwareKeyboard(Object... objArr) {
        View findViewWithTag;
        final View findViewById;
        try {
            final InputMethodManager inputMethodManager = (InputMethodManager) getApplicationContext().getSystemService("input_method");
            if (objArr == null) {
                View currentFocus = getCurrentFocus();
                if (currentFocus == null) {
                    return 1;
                }
                inputMethodManager.showSoftInput(currentFocus, 2);
                return 0;
            }
            Utils.g("ShowSoftwareKeyboard", objArr, 1);
            String y = t.y(objArr[0]);
            if (TextUtils.isEmpty(y) || (findViewWithTag = findViewById(R.id.content).findViewWithTag(y)) == null || (findViewById = findViewWithTag.findViewById(AbstractC0564f.g0)) == null) {
                return -1;
            }
            Runnable runnable = new Runnable() {
                @Override
                public final void run() {
                    XoneBaseActivity.U0(findViewById, inputMethodManager);
                }
            };
            if (Utils.s3()) {
                runnable.run();
            } else {
                findViewById.post(runnable);
            }
            return 1;
        } catch (Exception e) {
            e.printStackTrace();
            return -1;
        }
    }

    @ScriptAllowed
    public void showWaitDialog(Object... objArr) {
        String str;
        if (objArr != null) {
            Utils.h("ShowWaitDialog", objArr, 1, 3);
            str = t.y(objArr[0]);
        } else {
            str = null;
        }
        H5(str);
    }

    @Override
    public void startActivity(Intent intent) {
        super/*android.app.Activity*/.startActivity(intent);
        S1(intent);
    }

    @Override
    public void startActivityForResult(Intent intent, int i) {
        super/*androidx.activity.ComponentActivity*/.startActivityForResult(intent, i);
        S1(intent);
    }

    @ScriptAllowed
    public Object startShowcase(Object... objArr) {
        boolean z;
        int i;
        Typeface createFromFile;
        String str = "StartShowcase";
        Utils.j("StartShowcase", objArr);
        Utils.g("StartShowcase", objArr, 1);
        C0932x0 c0932x0 = (C0932x0) objArr[0];
        if (c0932x0 == null) {
            throw new IllegalArgumentException("StartShowcase(): Empty arguments");
        }
        boolean a2 = k.a(c0932x0, "continueOnCancel", false);
        C0893d0 u = k.u(c0932x0, "tapTargets", null);
        if (u == null || u.isEmpty()) {
            throw new IllegalArgumentException("StartShowcase(): Empty tapTargets argument");
        }
        int size = u.size();
        L8.b bVar = new L8.b(this);
        bVar.e(a2);
        int i2 = 0;
        while (i2 < size) {
            C0932x0 c0932x02 = (C0932x0) Q0.getProperty(u, i2);
            String E = k.E(c0932x02, "target", "");
            String E2 = k.E(c0932x02, "title", "");
            String E3 = k.E(c0932x02, "description", "");
            float l = k.l(c0932x02, "outerCircleOpacity", 96.0f);
            int g = k.g(c0932x02, "outerCircleColor", -16776961);
            int g2 = k.g(c0932x02, "targetCircleColor", -1);
            int o = k.o(c0932x02, "titleTextSize", 20);
            int o2 = k.o(c0932x02, "descriptionTextSize", 15);
            C0893d0 c0893d0 = u;
            int g3 = k.g(c0932x02, "textColor", -256);
            int g4 = k.g(c0932x02, "titleTextColor", g3);
            int i3 = size;
            int g5 = k.g(c0932x02, "descriptionTextColor", g3);
            int i4 = i2;
            int g6 = k.g(c0932x02, "dimColor", -1);
            String str2 = str;
            String E4 = k.E(c0932x02, "textFont", null);
            L8.b bVar2 = bVar;
            boolean a3 = k.a(c0932x02, "cancelable", false);
            boolean a4 = k.a(c0932x02, "tintTarget", false);
            boolean a5 = k.a(c0932x02, "transparentTarget", false);
            int o3 = k.o(c0932x02, "targetRadius", 60);
            boolean a6 = k.a(c0932x02, "drawShadow", true);
            if (TextUtils.isEmpty(E4)) {
                createFromFile = Typeface.SANS_SERIF;
                i = g6;
                z = a6;
            } else {
                xoneApp C2 = C2();
                z = a6;
                i = g6;
                createFromFile = Typeface.createFromFile(Utils.q1(C2.Y(), C2.T(), E4, false, 3));
            }
            if (TextUtils.isEmpty(E)) {
                throw new IllegalArgumentException(str2 + "(): Empty target property in tapTargets item index: " + i4);
            }
            if (l < 0.0f || l > 100.0f) {
                throw new IllegalArgumentException(str2 + "(): Attribute outerCircleOpacity must be between 0 and 100. In item index: " + i4);
            }
            View j = j(E);
            if (j == null) {
                throw new IllegalArgumentException(str2 + "(): Cannot find view for target property " + E);
            }
            bVar2.a(new L8.a().P(j).L(E2).y(E3).F(g).E(l / 100.0f).G(g2).N(o).A(o2).I(g3).M(g4).z(g5).J(createFromFile).B(i).C(z).x(a3).K(a4).O(a5).H(o3));
            i2 = i4 + 1;
            bVar = bVar2;
            str = str2;
            u = c0893d0;
            size = i3;
        }
        bVar.g();
        return null;
    }

    public final View t2(int i) {
        return findViewById(i);
    }

    public final C0676k t3() {
        KeyEvent.Callback u3 = u3();
        String p3 = p3();
        if (u3 instanceof InterfaceC1056w) {
            InterfaceC1056w interfaceC1056w = (InterfaceC1056w) u3;
            return new C0676k(interfaceC1056w.getSelectedObject(), interfaceC1056w.getSelectedProperty());
        }
        IXoneObject dataObject = getDataObject();
        if (dataObject != null) {
            return new C0676k(dataObject, p3);
        }
        throw new NullPointerException("dataObject == null");
    }

    public final void t4(final Object obj, View view) {
        new Thread(new Runnable() {
            @Override
            public final void run() {
                XoneBaseActivity.this.s4(obj);
            }
        }).start();
    }

    public void t5(File file) {
        this.d0 = file;
    }

    @ScriptAllowed
    public String toString() {
        StringBuilder sb2 = new StringBuilder();
        sb2.append("XOne base activity window object.");
        IXoneObject dataObject = getDataObject();
        if (dataObject != null) {
            sb2.append("\nData object: ");
            sb2.append(dataObject);
        }
        IXoneCollection dataCollection = getDataCollection();
        if (dataCollection != null) {
            sb2.append("\nData collection: ");
            sb2.append(dataCollection);
        }
        return sb2.toString();
    }

    @ScriptAllowed
    public int toggleGroup(Object... objArr) {
        Utils.j("ToggleGroup", objArr);
        Utils.g("ToggleGroup", objArr, 1);
        Object obj = objArr[0];
        if (obj instanceof Double) {
            obj = Integer.valueOf(q.o(obj));
        }
        R5(t.y(obj));
        return 0;
    }

    @Override
    public boolean u() {
        boolean isInPictureInPictureMode;
        if (Build.VERSION.SDK_INT < 24) {
            return false;
        }
        isInPictureInPictureMode = isInPictureInPictureMode();
        return isInPictureInPictureMode;
    }

    public final View u3() {
        return this.u;
    }

    public final void u4(C0893d0 c0893d0) {
        try {
            R3(this.b0.a(), this.a0, c0893d0);
        } catch (Exception e) {
            b(e);
        } finally {
            X1();
        }
    }

    public void p4(Integer num) {
        Window window = getWindow();
        if (window == null) {
            return;
        }
        if (this.v0 == null) {
            try {
                this.v0 = Integer.valueOf(window.getStatusBarColor());
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
        if (num != null) {
            window.clearFlags(67108864);
            window.addFlags(Integer.MIN_VALUE);
            window.setStatusBarColor(num.intValue());
        } else if (this.v0 != null) {
            window.clearFlags(67108864);
            window.addFlags(Integer.MIN_VALUE);
            window.setStatusBarColor(this.v0.intValue());
        }
    }

    @ScriptAllowed
    public int unlockGroup(Object... objArr) {
        Utils.j("UnlockGroup", objArr);
        Utils.g("UnlockGroup", objArr, 1);
        Object obj = objArr[0];
        if (obj instanceof Double) {
            obj = Integer.valueOf(q.o(obj));
        }
        S5(t.y(obj));
        return 0;
    }

    public final SimpleAdapter v3(List list) {
        return Utils.H2(this) >= 26 ? new C0529g(this, list, AbstractC0565g.D, new String[]{"title"}, new int[]{R.id.text1}) : new SimpleAdapter(this, list, AbstractC0565g.D, new String[]{"title"}, new int[]{R.id.text1});
    }

    public void v5(K k) {
        this.N = k;
    }

    public K w3() {
        return this.N;
    }

    public void w5(K k) {
        this.M = k;
    }

    public K x3() {
        return this.M;
    }

    public final void x4(Intent intent) {
        startActivityForResult(Intent.createChooser(intent, getString(AbstractC0568j.h)), 517);
    }

    public final void y4(String str, boolean z, String str2, int i, boolean z2, boolean z3, boolean z4, boolean z5) {
        Context context = xoneApp.getContext();
        Class T2 = T2();
        Intent intent = new Intent("android.intent.action.MAIN");
        intent.setClass(context, T2);
        intent.putExtra("extensions", str);
        intent.putExtra("pictureonly", z);
        intent.putExtra("path", str2);
        intent.putExtra("flags", i);
        intent.putExtra("showSearch", z2);
        boolean z6 = true;
        if (z3) {
            intent.putExtra("showLongTapMenu", true);
        }
        intent.putExtra("readAllowed", z3 || z4);
        if (!z3 && !z5) {
            z6 = false;
        }
        intent.putExtra("writeAllowed", z6);
        startActivityForResult(intent, 517);
    }

    public void y5(CharSequence charSequence) {
        this.D = charSequence;
    }

    @Override
    public final void z0(int i) {
        this.Z = i;
    }

    public String z4(IXoneObject iXoneObject, String str, String str2) {
        int p;
        return (TextUtils.isEmpty(str2) || iXoneObject == null || !t.l(iXoneObject.FieldPropertyValue(str, "fixed-text"), false) || (p = q.p(iXoneObject.FieldPropertyValue(str, "size"), -1)) == -1) ? str2 : str2.length() <= p ? str2 : str2.substring(0, p);
    }

    public void z5(CharSequence charSequence) {
        this.C = charSequence;
    }

    @ScriptAllowed
    public void bind(Object... objArr) {
        bind(false, objArr);
    }

    @Override
    public final List getEventCallback(String str) {
        IXoneObject dataObject = getDataObject();
        if (dataObject != null) {
            return dataObject.getEventCallback(str);
        }
        throw new NullPointerException("Error in getEventCallback(), data object is null");
    }
}