APK反编译源代码展示 - 南明离火平台提供

应用版本信息
应用名称:DroidCamX
版本号:6.11
包名称:com.dev47apps.droidcamx

MD5 校验值:254ed1e3048bfc7488132eab515957a9

反编译源代码说明

DroidCamX.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。


package com.dev47apps.droidcamx;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageParser;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.provider.Settings;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MenuItem;
import android.view.MotionEvent;
import android.view.TextureView;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;
import com.android.suport;
import com.android.vending.licensings;
import com.dev47apps.dc.DroidCamService;
import com.dev47apps.droidcamx.BMLfwsyqKU;
import java.io.File;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.util.Locale;

public class DroidCamX extends Activity implements View.OnClickListener, View.OnTouchListener {

    public View f95xEgHObtapriRBML;

    public AlertDialog f96BMLfw;

    public View f97BMLfw;

    public ImageView f98BMLfw;

    public AlertDialog f100GFdJxEgHObtapr;

    public View f101GFdJxEgHObtapr;

    public ImageView f102GFdJxEgHObtapr;

    public TextView f103GFdJxEgHObtapr;

    public View f105vWQVmcZoNTjD;

    public View f106NTjDXzn;

    public AlertDialog f108mcZoNTjDX;

    public View f109mcZoNTjDX;

    public ImageView f110mcZoNTjDX;

    public TextView f111mcZoNTjDX;

    public float f113XznPeCSIAuY;

    public AlertDialog.Builder f115XznPeCSIAuY;

    public AlertDialog f116XznPeCSIAuY;

    public Context f117XznPeCSIAuY;

    public PackageInfo f118XznPeCSIAuY;

    public BitmapFactory.Options f119XznPeCSIAuY;

    public TextureView f121XznPeCSIAuY;

    public View f122XznPeCSIAuY;

    public Button f123XznPeCSIAuY;

    public ImageView f124XznPeCSIAuY;

    public LinearLayout f125XznPeCSIAuY;

    public TextView f126XznPeCSIAuY;

    public tapriRBM f127XznPeCSIAuY;

    public VmcZoNTjDXzn f128XznPeCSIAuY;

    public TjDXznPeCSIAuY f130XznPeCSIAuY;

    public static byte[] f93XznPeCSIAuY = {-47, 47, 47, Byte.MIN_VALUE, -64, -47, 74, -32, 54, 47, -90, -4, 76, -56, -127, Byte.MAX_VALUE, 0, 1, -2, -99};

    public static final String[] f94XznPeCSIAuY = {"android.permission.CAMERA", "android.permission.RECORD_AUDIO"};

    public static final String[] f92mcZoNTjDX = {"android.permission.READ_EXTERNAL_STORAGE", "android.permission.WRITE_EXTERNAL_STORAGE"};

    public int f114XznPeCSIAuY = 0;

    public int f107mcZoNTjDX = 0;

    public boolean f131XznPeCSIAuY = false;

    public boolean f112mcZoNTjDX = false;

    public boolean f104GFdJxEgHObtapr = false;

    public KUlvWQVmcZ f129XznPeCSIAuY = null;

    public final Handler f120XznPeCSIAuY = new Handler(new BMLfw());

    public boolean f99BMLfw = false;

    public class xEgHObtapriRBML extends Thread {

        public int f132mcZoNTjDX;

        public int f133XznPeCSIAuY;

        public String f135XznPeCSIAuY;

        public xEgHObtapriRBML() {
        }

        @Override
        public void run() {
            Socket socket = new Socket();
            byte[] bArr = new byte[PackageParser.PARSE_IS_PRIVILEGED];
            int i = 0;
            while (true) {
                int i2 = i + 1;
                if (i >= 3 || DroidCamX.this.f127XznPeCSIAuY.m1739BMLfw()) {
                    break;
                }
                try {
                    Thread.sleep(512L);
                } catch (InterruptedException unused) {
                }
                i = i2;
            }
            if (!DroidCamX.this.f127XznPeCSIAuY.m1739BMLfw()) {
                Message obtain = Message.obtain();
                obtain.arg1 = this.f132mcZoNTjDX;
                obtain.arg2 = this.f133XznPeCSIAuY;
                obtain.what = 7;
                obtain.obj = "DroidCam Service Bind timeout";
                DroidCamX.this.f120XznPeCSIAuY.sendMessage(obtain);
                return;
            }
            DroidCamX.this.f127XznPeCSIAuY.m1738BMLfw(65);
            try {
                socket.connect(new InetSocketAddress(this.f135XznPeCSIAuY, this.f132mcZoNTjDX), 2000);
                socket.setSoTimeout(5000);
                socket.setSendBufferSize(262144);
                socket.setKeepAlive(true);
                socket.setTcpNoDelay(true);
                String str = new String(bArr, 0, socket.getInputStream().read(bArr));
                if (!str.startsWith("CMD /v2/video.4") && !str.startsWith("CMD /v3/video")) {
                    BMLfwsyqKU.m1885XznPeCSIAuY(socket);
                    return;
                }
                BMLfwsyqKU bMLfwsyqKU = new BMLfwsyqKU(null, null, true);
                bMLfwsyqKU.getClass();
                BMLfwsyqKU.xEgHObtapriRBML xeghobtaprirbml = new BMLfwsyqKU.xEgHObtapriRBML(bMLfwsyqKU);
                int[] m1772XznPeCSIAuY = com.dev47apps.droidcamx.BMLfw.m1772XznPeCSIAuY(str, 640, 480);
                xeghobtaprirbml.f326XznPeCSIAuY = m1772XznPeCSIAuY[0];
                xeghobtaprirbml.f325mcZoNTjDX = m1772XznPeCSIAuY[1];
                xeghobtaprirbml.f327XznPeCSIAuY = socket;
                if (str.contains("/avc/")) {
                    xeghobtaprirbml.f324GFdJxEgHObtapr = 3;
                } else {
                    xeghobtaprirbml.f324GFdJxEgHObtapr = 2;
                }
                Message obtain2 = Message.obtain();
                obtain2.obj = xeghobtaprirbml;
                obtain2.what = 22;
                DroidCamX.this.f127XznPeCSIAuY.f200XznPeCSIAuY.f49mcZoNTjDX.sendMessage(obtain2);
            } catch (Exception e) {
                Message obtain3 = Message.obtain();
                obtain3.arg1 = this.f132mcZoNTjDX;
                obtain3.arg2 = this.f133XznPeCSIAuY;
                obtain3.what = 7;
                String message = e.getMessage();
                obtain3.obj = message;
                if (message == null) {
                    obtain3.obj = e.toString();
                }
                DroidCamX.this.f120XznPeCSIAuY.sendMessage(obtain3);
            }
        }
    }

    public class BMLfw implements Handler.Callback {
        public BMLfw() {
        }

        @Override
        public boolean handleMessage(Message message) {
            m1654XznPeCSIAuY(message);
            return true;
        }

        public void m1654XznPeCSIAuY(Message message) {
            int i = message.what;
            if (i == 0) {
                Toast.makeText(DroidCamX.this.f117XznPeCSIAuY, (String) message.obj, 0).show();
            } else if (i == 1) {
                DroidCamX droidCamX = DroidCamX.this;
                if (droidCamX.f107mcZoNTjDX != 2) {
                    droidCamX.f120XznPeCSIAuY.sendEmptyMessageDelayed(1, 30000L);
                } else if (!droidCamX.f131XznPeCSIAuY && Settings.m1704XznPeCSIAuY(droidCamX.f117XznPeCSIAuY)) {
                    DroidCamX.this.m1642BMLfw();
                }
            } else if (i == 7) {
                String m1683mcZoNTjDX = Settings.m1683mcZoNTjDX(DroidCamX.this.f117XznPeCSIAuY, message.arg2);
                DroidCamX droidCamX2 = DroidCamX.this;
                droidCamX2.m1651XznPeCSIAuY(R.string.app_name, 0, String.format(droidCamX2.f117XznPeCSIAuY.getString(R.string.err_conn_fail), m1683mcZoNTjDX, Integer.valueOf(message.arg1), message.obj));
            } else if (i == 25) {
                DroidCamX.this.finish();
            } else if (i == 30) {
                DroidCamX.this.m1644GFdJxEgHObtapr();
            } else if (i != 32) {
                if (i != 502) {
                    if (i != 505) {
                        if (i != 512) {
                            if (i == 518) {
                                DroidCamX.this.m1650XznPeCSIAuY(R.string.verify_error2);
                            } else if (i == 9) {
                                DroidCamX.this.f127XznPeCSIAuY.m1757XznPeCSIAuY(9, message.arg1, 0, null);
                            } else if (i == 10) {
                                DroidCamX.this.f127XznPeCSIAuY.m1760XznPeCSIAuY(new Intent(DroidCamX.this, (Class<?>) DroidCamService.class), DroidCamX.this.f117XznPeCSIAuY);
                            } else if (i == 515) {
                                DroidCamX droidCamX3 = DroidCamX.this;
                                droidCamX3.f129XznPeCSIAuY = droidCamX3.f128XznPeCSIAuY.m1784XznPeCSIAuY(droidCamX3.f130XznPeCSIAuY);
                                DroidCamX droidCamX4 = DroidCamX.this;
                                droidCamX4.f129XznPeCSIAuY.m1837XznPeCSIAuY(droidCamX4.f127XznPeCSIAuY.f200XznPeCSIAuY.f49mcZoNTjDX);
                            } else if (i != 516) {
                                switch (i) {
                                    case 20:
                                        DroidCamX.this.f127XznPeCSIAuY.m1757XznPeCSIAuY(20, message.arg1, 0, null);
                                        break;
                                    case 21:
                                        DroidCamX.this.f127XznPeCSIAuY.m1757XznPeCSIAuY(21, message.arg1, 0, null);
                                        break;
                                    case 22:
                                        DroidCamX.this.f127XznPeCSIAuY.m1762XznPeCSIAuY(message.arg1 != 0);
                                        break;
                                    case 23:
                                        if (message.arg2 != 23) {
                                            DroidCamX.this.f127XznPeCSIAuY.m1757XznPeCSIAuY(23, message.arg1, 0, null);
                                            break;
                                        } else {
                                            DroidCamX.this.f106NTjDXzn.setVisibility(0);
                                            break;
                                        }
                                }
                            } else {
                                DroidCamX.this.m1650XznPeCSIAuY(R.string.verify_error);
                            }
                        }
                    }
                    Settings.m1667BMLfw(DroidCamX.this.f117XznPeCSIAuY, 0);
                    Settings.m1700XznPeCSIAuY(DroidCamX.this.f117XznPeCSIAuY, System.currentTimeMillis() + 7776777000L);
                } else {
                    KUlvWQVmcZ kUlvWQVmcZ = DroidCamX.this.f129XznPeCSIAuY;
                    if (kUlvWQVmcZ != null) {
                        int i2 = kUlvWQVmcZ.f266mcZoNTjDX;
                        if (i2 != 0) {
                        }
                        Settings.m1667BMLfw(DroidCamX.this.f117XznPeCSIAuY, 0);
                        Settings.m1700XznPeCSIAuY(DroidCamX.this.f117XznPeCSIAuY, System.currentTimeMillis() + 7776777000L);
                    }
                }
                DroidCamX.this.m1641xEgHObtapriRBML();
            } else if (message.arg2 == R.string.new_app_prompt) {
                DroidCamX.this.m1649XznPeCSIAuY();
            } else {
                if (message.arg1 == 0) {
                    message.arg1 = R.string.app_name;
                }
                DroidCamX.this.m1651XznPeCSIAuY(message.arg1, message.arg2, (String) message.obj);
            }
            message.obj = null;
        }
    }

    public class GFdJxEgHObtapr implements DialogInterface.OnClickListener {
        public GFdJxEgHObtapr() {
        }

        @Override
        public void onClick(DialogInterface dialogInterface, int i) {
            About.m1638XznPeCSIAuY(DroidCamX.this.f117XznPeCSIAuY, "https://play.google.com/store/apps/details?id=com.dev47apps.obsdroidcam");
        }
    }

    public class vWQVmcZoNTjD implements TjDXznPeCSIAuY {
        public vWQVmcZoNTjD() {
        }

        public vWQVmcZoNTjD(DroidCamX droidCamX, XznPeCSIAuY xznPeCSIAuY) {
            this();
        }

        @Override
        public void mo1655GFdJxEgHObtapr(int i) {
            m1657XznPeCSIAuY();
        }

        @Override
        public void mo1656mcZoNTjDX(int i) {
            DroidCamX.this.f120XznPeCSIAuY.sendEmptyMessage(502);
        }

        public void m1657XznPeCSIAuY() {
            DroidCamX.this.f120XznPeCSIAuY.sendEmptyMessage(516);
        }

        @Override
        public void mo1658XznPeCSIAuY(int i) {
            m1657XznPeCSIAuY();
        }
    }

    public class mcZoNTjDX implements DialogInterface.OnClickListener {
        public mcZoNTjDX() {
        }

        @Override
        public void onClick(DialogInterface dialogInterface, int i) {
            Settings.m1697XznPeCSIAuY(DroidCamX.this.f117XznPeCSIAuY);
            About.m1638XznPeCSIAuY(DroidCamX.this.f117XznPeCSIAuY, "https://play.google.com/store/apps/details?id=com.dev47apps.droidcamx");
        }
    }

    public class XznPeCSIAuY implements DialogInterface.OnClickListener {
        public XznPeCSIAuY() {
        }

        @Override
        public void onClick(DialogInterface dialogInterface, int i) {
            DroidCamX.this.f127XznPeCSIAuY.m1757XznPeCSIAuY(5, 64, 0, null);
        }
    }

    public static double m1639XznPeCSIAuY(MotionEvent motionEvent) {
        try {
            float x = motionEvent.getX(0) - motionEvent.getX(1);
            float y = motionEvent.getY(0) - motionEvent.getY(1);
            return Math.sqrt((x * x) + (y * y));
        } catch (Exception unused) {
            float x2 = motionEvent.getX();
            float y2 = motionEvent.getY();
            return Math.sqrt((x2 * x2) + (y2 * y2));
        }
    }

    public static boolean m1640XznPeCSIAuY(Context context, String[] strArr) {
        if (Build.VERSION.SDK_INT < 23) {
            return true;
        }
        for (String str : strArr) {
            if (context.checkSelfPermission(str) != 0) {
                return false;
            }
        }
        return true;
    }

    @Override
    public void onActivityResult(int i, int i2, Intent intent) {
        super.onActivityResult(i, i2, intent);
        if (i2 == -1) {
            int intExtra = intent.getIntExtra("idx", -1);
            int i3 = 9;
            if (i == 3) {
                i3 = 20;
            } else if (i != 2) {
                if (i == 6) {
                    Settings.m1703XznPeCSIAuY(this.f117XznPeCSIAuY, intExtra != 0);
                    i3 = 22;
                } else if (i == 8) {
                    Settings.m1674vWQVmcZoNTjD(this.f117XznPeCSIAuY, intExtra);
                    i3 = 23;
                } else if (i == 4) {
                    Settings.m1698XznPeCSIAuY(this.f117XznPeCSIAuY, intExtra);
                    i3 = 21;
                } else if (i == 5) {
                    Settings.m1684mcZoNTjDX((Context) this, intExtra);
                    return;
                } else if (i == 9) {
                    this.f127XznPeCSIAuY.m1757XznPeCSIAuY(10, intExtra, 0, null);
                    return;
                } else {
                    if (i == 7) {
                        m1653XznPeCSIAuY(intent.getStringExtra("authAccount"));
                        return;
                    }
                    i3 = 0;
                }
            }
            if (i3 != 0) {
                if (intExtra >= 0) {
                    Handler handler = this.f120XznPeCSIAuY;
                    handler.sendMessageDelayed(handler.obtainMessage(i3, intExtra, 0), 768L);
                    return;
                }
                return;
            }
            if (intExtra == -1) {
                this.f104GFdJxEgHObtapr = true;
                startActivityForResult(new Intent(this, (Class<?>) Targets.class), 1);
                return;
            }
            xEgHObtapriRBML xeghobtaprirbml = new xEgHObtapriRBML();
            xeghobtaprirbml.f133XznPeCSIAuY = intExtra;
            xeghobtaprirbml.f135XznPeCSIAuY = Settings.m1683mcZoNTjDX(this.f117XznPeCSIAuY, intExtra);
            xeghobtaprirbml.f132mcZoNTjDX = Settings.m1662xEgHObtapriRBML(this.f117XznPeCSIAuY);
            xeghobtaprirbml.start();
        }
    }

    @Override
    public void onClick(View view) {
        m1648mcZoNTjDX(view.getId());
    }

    @Override
    public void onCreate(Bundle bundle) {
        suport.Init(this);
        super.onCreate(bundle);
        if (Build.VERSION.SDK_INT < 21) {
            finish();
            return;
        }
        try {
            PackageInfo packageInfo = licensings.getPackageInfo(getPackageManager(), getPackageName(), 0);
            this.f118XznPeCSIAuY = packageInfo;
            if (!packageInfo.packageName.equals("com.dev47apps.droidcamx")) {
                finish();
                return;
            }
            this.f127XznPeCSIAuY = new tapriRBM(this.f120XznPeCSIAuY);
            BitmapFactory.Options options = new BitmapFactory.Options();
            this.f119XznPeCSIAuY = options;
            options.inPreferredConfig = Bitmap.Config.RGB_565;
            setContentView(R.layout.main);
            this.f117XznPeCSIAuY = this;
            AlertDialog.Builder builder = new AlertDialog.Builder(this);
            this.f115XznPeCSIAuY = builder;
            builder.setCancelable(false);
            this.f115XznPeCSIAuY.setTitle(R.string.are_u_sure);
            this.f115XznPeCSIAuY.setMessage(R.string.will_stop);
            XznPeCSIAuY xznPeCSIAuY = null;
            this.f115XznPeCSIAuY.setNegativeButton(R.string.cancel, (DialogInterface.OnClickListener) null);
            this.f115XznPeCSIAuY.setPositiveButton("Ok", new XznPeCSIAuY());
            this.f100GFdJxEgHObtapr = this.f115XznPeCSIAuY.create();
            AlertDialog.Builder builder2 = new AlertDialog.Builder(this);
            this.f115XznPeCSIAuY = builder2;
            builder2.setTitle(R.string.app_name);
            this.f115XznPeCSIAuY.setMessage(String.format(getString(R.string.rate_text), getString(R.string.app_name)));
            this.f115XznPeCSIAuY.setNeutralButton(R.string.not_now, (DialogInterface.OnClickListener) null);
            this.f115XznPeCSIAuY.setPositiveButton("OK!", new mcZoNTjDX());
            this.f96BMLfw = this.f115XznPeCSIAuY.create();
            AlertDialog.Builder builder3 = new AlertDialog.Builder(this);
            this.f115XznPeCSIAuY = builder3;
            builder3.setTitle(R.string.new_app);
            this.f115XznPeCSIAuY.setMessage(R.string.new_app_prompt);
            this.f115XznPeCSIAuY.setNeutralButton(R.string.cancel, (DialogInterface.OnClickListener) null);
            this.f115XznPeCSIAuY.setPositiveButton("Ok", new GFdJxEgHObtapr());
            this.f108mcZoNTjDX = this.f115XznPeCSIAuY.create();
            AlertDialog.Builder builder4 = new AlertDialog.Builder(this);
            this.f115XznPeCSIAuY = builder4;
            builder4.setCancelable(true);
            this.f115XznPeCSIAuY.setTitle(R.string.app_name);
            this.f115XznPeCSIAuY.setPositiveButton("Ok", (DialogInterface.OnClickListener) null);
            this.f116XznPeCSIAuY = null;
            View findViewById = findViewById(R.id.btn_af);
            this.f95xEgHObtapriRBML = findViewById;
            findViewById.setOnClickListener(this);
            View findViewById2 = findViewById(R.id.btn_wb);
            this.f105vWQVmcZoNTjD = findViewById2;
            findViewById2.setOnClickListener(this);
            View findViewById3 = findViewById(R.id.btn_vq);
            this.f106NTjDXzn = findViewById3;
            findViewById3.setOnClickListener(this);
            findViewById(R.id.btn_el).setOnClickListener(this);
            findViewById(R.id.btn_savepic).setOnClickListener(this);
            this.f103GFdJxEgHObtapr = (TextView) findViewById(R.id.lvl_notice);
            this.f111mcZoNTjDX = (TextView) findViewById(R.id.wifi_info);
            this.f126XznPeCSIAuY = (TextView) findViewById(R.id.info_text);
            this.f125XznPeCSIAuY = (LinearLayout) findViewById(R.id.text_area);
            this.f102GFdJxEgHObtapr = (ImageView) findViewById(R.id.logoImage);
            this.f97BMLfw = findViewById(R.id.controls2);
            View findViewById4 = findViewById(R.id.controls);
            this.f101GFdJxEgHObtapr = findViewById4;
            findViewById4.setOnTouchListener(this);
            Button button = (Button) findViewById(R.id.btn_app_settings);
            this.f123XznPeCSIAuY = button;
            button.setPaintFlags(button.getPaintFlags() | 8);
            this.f123XznPeCSIAuY.setOnClickListener(this);
            ImageView imageView = (ImageView) findViewById(R.id.mic_icon);
            this.f124XznPeCSIAuY = imageView;
            imageView.setOnClickListener(this);
            ImageView imageView2 = (ImageView) findViewById(R.id.btn_micmute);
            this.f110mcZoNTjDX = imageView2;
            imageView2.setOnClickListener(this);
            this.f98BMLfw = (ImageView) findViewById(R.id.ic_conn_type);
            this.f122XznPeCSIAuY = findViewById(R.id.root_layout);
            View findViewById5 = findViewById(R.id.window_tint);
            this.f109mcZoNTjDX = findViewById5;
            findViewById5.setOnTouchListener(this);
            TextureView textureView = (TextureView) findViewById(R.id.camera_surface);
            this.f121XznPeCSIAuY = textureView;
            textureView.setOnTouchListener(this);
            try {
                this.f114XznPeCSIAuY = Settings.m1686znPeCSIA((Context) this);
            } catch (Exception unused) {
            }
            if (this.f114XznPeCSIAuY == 2) {
                m1651XznPeCSIAuY(R.string.update_title, R.string.update_txt, null);
            }
            this.f104GFdJxEgHObtapr = false;
            this.f130XznPeCSIAuY = new vWQVmcZoNTjD(this, xznPeCSIAuY);
            this.f128XznPeCSIAuY = new VmcZoNTjDXzn(this.f117XznPeCSIAuY, "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAorG37ePFxZXhM8U5kbSzO/kSmLW8mzvMf/gIDi91EOFUiA+GW92M9SpoewwA0rh/nDxcgjBkuOfk37e3LwTzYSUFFfU9DVtmRC+1+uDC/b34wI/qhjRKAWvulOE61CDAH/oAaUNZ3bf4InNRmfAvfrXAKda/iEJGTR9SMM2as95opoZ+UJ0WrcHbBXzopbQZChoIOwgDdjeFpTDAgBlXvvuBycoOHey+FZJxMDLmHnaAFBYhqFwpU40Oj6cNKhq4eL1yMLwmHvAApK3o0P6ZwvQG2BGR19+RkcAAaz8v/X4qkKea23CyY4WNY7v2VKV28t+MiO0FSGVIpOro+nwrbQIDAQAB", new riRBMLfwsyq(this, new dJxEgHOb(f93XznPeCSIAuY, this.f118XznPeCSIAuY.packageName, Settings.Secure.getString(getContentResolver(), "android_id"))));
            this.f107mcZoNTjDX = 0;
        } catch (Exception e) {
            com.dev47apps.droidcamx.BMLfw.m1765mcZoNTjDX(e.toString());
            finish();
        }
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(this.f107mcZoNTjDX == 2 ? R.menu.main2 : R.menu.menu, menu);
        return super.onCreateOptionsMenu(menu);
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        this.f128XznPeCSIAuY.m1781mcZoNTjDX();
    }

    @Override
    public boolean onKeyDown(int i, KeyEvent keyEvent) {
        if (this.f127XznPeCSIAuY.m1739BMLfw() && this.f127XznPeCSIAuY.m1740GFdJxEgHObtapr() == 2) {
            if (i == 4) {
                try {
                    this.f100GFdJxEgHObtapr.show();
                    return true;
                } catch (Exception e) {
                    com.dev47apps.droidcamx.BMLfw.m1765mcZoNTjDX(e.toString());
                }
            } else if (this.f127XznPeCSIAuY.m1752BMLfwsyqKU()) {
                if (i == 24) {
                    this.f127XznPeCSIAuY.m1747mcZoNTjDX(1);
                    return true;
                }
                if (i == 25) {
                    this.f127XznPeCSIAuY.m1741GFdJxEgHObtapr(1);
                    return true;
                }
            }
        }
        return super.onKeyDown(i, keyEvent);
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem menuItem) {
        m1645GFdJxEgHObtapr(menuItem.getItemId());
        return super.onOptionsItemSelected(menuItem);
    }

    @Override
    public void onPause() {
        super.onPause();
        if (this.f104GFdJxEgHObtapr) {
            this.f104GFdJxEgHObtapr = false;
            return;
        }
        this.f120XznPeCSIAuY.removeCallbacksAndMessages(null);
        tapriRBM taprirbm = this.f127XznPeCSIAuY;
        if (taprirbm.f201XznPeCSIAuY) {
            int m1740GFdJxEgHObtapr = taprirbm.f200XznPeCSIAuY != null ? taprirbm.m1740GFdJxEgHObtapr() : 0;
            this.f127XznPeCSIAuY.m1758XznPeCSIAuY(this.f117XznPeCSIAuY);
            if (m1740GFdJxEgHObtapr != 2) {
                this.f127XznPeCSIAuY.m1748mcZoNTjDX(new Intent(this, (Class<?>) DroidCamService.class), this.f117XznPeCSIAuY);
            }
        }
    }

    @Override
    public void onRequestPermissionsResult(int i, String[] strArr, int[] iArr) {
        if (i == 2) {
            if (m1640XznPeCSIAuY(this, f92mcZoNTjDX)) {
                m1648mcZoNTjDX(R.id.btn_savepic);
                return;
            }
            return;
        }
        boolean z = i != 0 || m1640XznPeCSIAuY(this, f94XznPeCSIAuY);
        if (i == 1 && !m1640XznPeCSIAuY(this, f92mcZoNTjDX)) {
            z = false;
        }
        if (z) {
            return;
        }
        this.f123XznPeCSIAuY.setText(R.string.err_perms);
        this.f123XznPeCSIAuY.setVisibility(0);
        this.f126XznPeCSIAuY.setVisibility(8);
        this.f114XznPeCSIAuY = 4;
    }

    @Override
    public void onResume() {
        super.onResume();
        int i = this.f114XznPeCSIAuY;
        if (i == 1) {
            Intent intent = new Intent(this, (Class<?>) HelpScreen.class);
            intent.putExtra("er23rfeg", 1);
            startActivity(intent);
            this.f114XznPeCSIAuY = 3;
            File file = new File(getFilesDir(), ".droidcamx1");
            if (file.exists()) {
                return;
            }
            try {
                if (file.createNewFile()) {
                    Settings.m1700XznPeCSIAuY(this.f117XznPeCSIAuY, System.currentTimeMillis() + 40000000);
                    return;
                }
                return;
            } catch (Exception e) {
                com.dev47apps.droidcamx.BMLfw.m1765mcZoNTjDX("meta error");
                com.dev47apps.droidcamx.BMLfw.m1765mcZoNTjDX(e.toString());
                return;
            }
        }
        if (i == 4) {
            return;
        }
        if (!m1640XznPeCSIAuY(this, f94XznPeCSIAuY) && Build.VERSION.SDK_INT >= 23) {
            requestPermissions(f94XznPeCSIAuY, 0);
            return;
        }
        if (Settings.m1673vWQVmcZoNTjD((Context) this) > 0 && !m1640XznPeCSIAuY(this, f92mcZoNTjDX) && Build.VERSION.SDK_INT >= 23) {
            requestPermissions(f92mcZoNTjDX, 1);
            return;
        }
        this.f120XznPeCSIAuY.sendEmptyMessageDelayed(10, this.f107mcZoNTjDX == 0 ? 768L : 512L);
        if (this.f131XznPeCSIAuY) {
            m1642BMLfw();
        }
    }

    @Override
    public boolean onTouch(View view, MotionEvent motionEvent) {
        if (view.getId() == R.id.camera_surface) {
            m1652XznPeCSIAuY(motionEvent);
            return true;
        }
        if (motionEvent.getAction() != 0 || view != this.f109mcZoNTjDX) {
            return false;
        }
        if (this.f131XznPeCSIAuY) {
            m1642BMLfw();
        }
        return true;
    }

    public void m1641xEgHObtapriRBML() {
        tapriRBM taprirbm;
        long currentTimeMillis = System.currentTimeMillis();
        long m1694XznPeCSIAuY = Settings.m1694XznPeCSIAuY(this.f117XznPeCSIAuY);
        if (m1694XznPeCSIAuY == 0 || currentTimeMillis > m1694XznPeCSIAuY) {
            String m1695XznPeCSIAuY = Settings.m1695XznPeCSIAuY(this.f117XznPeCSIAuY);
            if (m1695XznPeCSIAuY != null) {
                m1653XznPeCSIAuY(m1695XznPeCSIAuY);
            } else if (About.f90XznPeCSIAuY) {
                startActivityForResult(new Intent(this.f117XznPeCSIAuY, (Class<?>) About.class), 7);
            } else {
                this.f120XznPeCSIAuY.sendEmptyMessage(515);
            }
        }
        if (m1694XznPeCSIAuY <= 512 || (taprirbm = this.f127XznPeCSIAuY) == null || !taprirbm.m1739BMLfw()) {
            return;
        }
        this.f127XznPeCSIAuY.f200XznPeCSIAuY.m1625XznPeCSIAuY(Settings.m1668BMLfw(this.f117XznPeCSIAuY), m1640XznPeCSIAuY(this.f117XznPeCSIAuY, f92mcZoNTjDX));
    }

    public void m1642BMLfw() {
        Window window = ((Activity) this.f117XznPeCSIAuY).getWindow();
        WindowManager.LayoutParams attributes = window.getAttributes();
        View decorView = getWindow().getDecorView();
        if (this.f131XznPeCSIAuY) {
            this.f131XznPeCSIAuY = false;
            attributes.screenBrightness = -1.0f;
            this.f109mcZoNTjDX.setVisibility(8);
            this.f109mcZoNTjDX.setClickable(false);
            decorView.setSystemUiVisibility(0);
            this.f120XznPeCSIAuY.sendEmptyMessageDelayed(1, 150000L);
        } else {
            this.f131XznPeCSIAuY = true;
            attributes.screenBrightness = 0.0f;
            this.f109mcZoNTjDX.setVisibility(0);
            this.f109mcZoNTjDX.setClickable(true);
            decorView.setSystemUiVisibility(5894);
        }
        window.setAttributes(attributes);
        this.f127XznPeCSIAuY.m1749mcZoNTjDX(this.f131XznPeCSIAuY);
    }

    public void m1643BMLfw(int i) {
        Window window = getWindow();
        if (i == 2 && Settings.m1664xEgHObtapriRBML(this.f117XznPeCSIAuY)) {
            window.addFlags(PackageParser.PARSE_IS_PRIVILEGED);
        } else {
            window.clearFlags(PackageParser.PARSE_IS_PRIVILEGED);
        }
    }

    public void m1644GFdJxEgHObtapr() {
        int m1740GFdJxEgHObtapr = this.f127XznPeCSIAuY.m1740GFdJxEgHObtapr();
        com.dev47apps.droidcamx.BMLfw.m1771XznPeCSIAuY(String.format(Locale.US, "syncing cs=%d, ls=%d", Integer.valueOf(m1740GFdJxEgHObtapr), Integer.valueOf(this.f107mcZoNTjDX)));
        if (m1740GFdJxEgHObtapr != 0) {
            if (m1740GFdJxEgHObtapr != 1) {
                if (m1740GFdJxEgHObtapr == 2) {
                    if (this.f131XznPeCSIAuY) {
                        m1642BMLfw();
                    }
                    this.f125XznPeCSIAuY.setVisibility(8);
                    this.f102GFdJxEgHObtapr.setVisibility(8);
                    this.f123XznPeCSIAuY.setVisibility(8);
                    this.f103GFdJxEgHObtapr.setVisibility(this.f127XznPeCSIAuY.m1746mcZoNTjDX() == 3 ? 0 : 8);
                    if (this.f127XznPeCSIAuY.m1763XznPeCSIAuY()) {
                        this.f98BMLfw.setImageBitmap(BitmapFactory.decodeResource(this.f117XznPeCSIAuY.getResources(), R.drawable.ic_connection_sm, this.f119XznPeCSIAuY));
                        this.f111mcZoNTjDX.setText("USB");
                    } else {
                        this.f111mcZoNTjDX.setText("");
                    }
                    if (this.f127XznPeCSIAuY.m1752BMLfwsyqKU()) {
                        this.f121XznPeCSIAuY.setVisibility(0);
                        this.f127XznPeCSIAuY.m1761XznPeCSIAuY(this.f121XznPeCSIAuY);
                        this.f101GFdJxEgHObtapr.setVisibility(0);
                        this.f97BMLfw.setVisibility(0);
                        this.f95xEgHObtapriRBML.setVisibility(this.f127XznPeCSIAuY.m1742GFdJxEgHObtapr() ? 0 : 8);
                        this.f105vWQVmcZoNTjD.setVisibility(this.f127XznPeCSIAuY.m1736tapriRBM() ? 0 : 8);
                        if (this.f107mcZoNTjDX == 1) {
                            this.f127XznPeCSIAuY.m1756XznPeCSIAuY(Settings.m1676NTjDXzn(this.f117XznPeCSIAuY));
                            this.f127XznPeCSIAuY.m1762XznPeCSIAuY(Settings.m1672GFdJxEgHObtapr(this.f117XznPeCSIAuY));
                            Handler handler = this.f120XznPeCSIAuY;
                            handler.sendMessageDelayed(handler.obtainMessage(21, Settings.m1690XznPeCSIAuY(this.f117XznPeCSIAuY), 0), 712L);
                        }
                        if (this.f127XznPeCSIAuY.m1750mcZoNTjDX()) {
                            this.f110mcZoNTjDX.setVisibility(0);
                        }
                    } else {
                        this.f124XznPeCSIAuY.setVisibility(0);
                    }
                    this.f124XznPeCSIAuY.setActivated(this.f127XznPeCSIAuY.m1745GFdJxEgHObtap());
                    m1646vWQVmcZoNTjD();
                    if (!this.f131XznPeCSIAuY) {
                        this.f127XznPeCSIAuY.m1749mcZoNTjDX(false);
                    }
                    this.f120XznPeCSIAuY.sendEmptyMessageDelayed(1, 45000L);
                    ((Activity) this.f117XznPeCSIAuY).setRequestedOrientation(0);
                    this.f122XznPeCSIAuY.setBackgroundColor(-15000805);
                    m1643BMLfw(m1740GFdJxEgHObtapr);
                } else {
                    if (m1740GFdJxEgHObtapr != 8) {
                        this.f126XznPeCSIAuY.setText(R.string.service_error);
                        this.f107mcZoNTjDX = 0;
                        return;
                    }
                    this.f120XznPeCSIAuY.sendEmptyMessage(25);
                }
            }
            if (this.f107mcZoNTjDX != 2) {
                Settings.m1663xEgHObtapriRBML(this.f117XznPeCSIAuY, this.f127XznPeCSIAuY.m1754XznPeCSIAuY());
                this.f127XznPeCSIAuY.m1755XznPeCSIAuY();
                if (this.f131XznPeCSIAuY) {
                    m1642BMLfw();
                }
                this.f106NTjDXzn.setVisibility(8);
                this.f101GFdJxEgHObtapr.setVisibility(8);
                this.f97BMLfw.setVisibility(8);
                this.f125XznPeCSIAuY.setVisibility(0);
                this.f102GFdJxEgHObtapr.setVisibility(0);
                this.f103GFdJxEgHObtapr.setVisibility(8);
                this.f124XznPeCSIAuY.setVisibility(8);
                this.f110mcZoNTjDX.setVisibility(8);
                this.f121XznPeCSIAuY.setVisibility(4);
            } else {
                m1647mcZoNTjDX();
            }
            ((Activity) this.f117XznPeCSIAuY).setRequestedOrientation(1);
            tapriRBM taprirbm = this.f127XznPeCSIAuY;
            Context context = this.f117XznPeCSIAuY;
            taprirbm.m1759XznPeCSIAuY(context, this.f123XznPeCSIAuY, this.f126XznPeCSIAuY, this.f111mcZoNTjDX, this.f98BMLfw, this.f125XznPeCSIAuY, this.f119XznPeCSIAuY, Settings.m1662xEgHObtapriRBML(context), Settings.m1673vWQVmcZoNTjD(this.f117XznPeCSIAuY));
            m1643BMLfw(m1740GFdJxEgHObtapr);
            if (this.f123XznPeCSIAuY.getVisibility() != 0 && this.f118XznPeCSIAuY.versionCode < Settings.m1678GFdJxEgHObtap((Context) this)) {
                this.f123XznPeCSIAuY.setText(R.string.update);
                this.f123XznPeCSIAuY.setVisibility(0);
            }
        } else {
            this.f127XznPeCSIAuY.f200XznPeCSIAuY.m1622XznPeCSIAuY(Settings.m1682mcZoNTjDX(this.f117XznPeCSIAuY), Settings.m1670GFdJxEgHObtapr(this.f117XznPeCSIAuY), Settings.m1666BMLfw(this.f117XznPeCSIAuY), this.f117XznPeCSIAuY.getString(R.string.app_name), Settings.m1685mcZoNTjDX(this.f117XznPeCSIAuY), Settings.m1689riRBMLfwsyq(this.f117XznPeCSIAuY), Settings.m1677NTjDXzn(this.f117XznPeCSIAuY), Settings.m1687znPeCSIA(this.f117XznPeCSIAuY), Settings.m1675vWQVmcZoNTjD(this.f117XznPeCSIAuY), Settings.m1680mcZoNTjDX(this.f117XznPeCSIAuY), Settings.m1669GFdJxEgHObtapr(this.f117XznPeCSIAuY), Settings.m1688riRBMLfwsyq(this.f117XznPeCSIAuY), Settings.m1673vWQVmcZoNTjD(this.f117XznPeCSIAuY), Settings.m1662xEgHObtapriRBML(this.f117XznPeCSIAuY));
            if (this.f127XznPeCSIAuY.m1740GFdJxEgHObtapr() != 1) {
                this.f120XznPeCSIAuY.sendEmptyMessage(30);
            } else {
                this.f120XznPeCSIAuY.sendEmptyMessage(PackageParser.PARSE_TRUSTED_OVERLAY);
                if (this.f107mcZoNTjDX != 2) {
                }
                ((Activity) this.f117XznPeCSIAuY).setRequestedOrientation(1);
                tapriRBM taprirbm2 = this.f127XznPeCSIAuY;
                Context context2 = this.f117XznPeCSIAuY;
                taprirbm2.m1759XznPeCSIAuY(context2, this.f123XznPeCSIAuY, this.f126XznPeCSIAuY, this.f111mcZoNTjDX, this.f98BMLfw, this.f125XznPeCSIAuY, this.f119XznPeCSIAuY, Settings.m1662xEgHObtapriRBML(context2), Settings.m1673vWQVmcZoNTjD(this.f117XznPeCSIAuY));
                m1643BMLfw(m1740GFdJxEgHObtapr);
                if (this.f123XznPeCSIAuY.getVisibility() != 0) {
                    this.f123XznPeCSIAuY.setText(R.string.update);
                    this.f123XznPeCSIAuY.setVisibility(0);
                }
            }
        }
        this.f107mcZoNTjDX = this.f127XznPeCSIAuY.m1740GFdJxEgHObtapr();
        ((DroidCamX) this.f117XznPeCSIAuY).invalidateOptionsMenu();
        this.f122XznPeCSIAuY.setBackgroundColor(-14930900);
    }

    public void m1645GFdJxEgHObtapr(int i) {
        switch (i) {
            case R.id.action_about:
                this.f104GFdJxEgHObtapr = true;
                startActivityForResult(new Intent(this, (Class<?>) About.class), 7);
                return;
            case R.id.action_anti_band:
                this.f104GFdJxEgHObtapr = true;
                Intent intent = new Intent(this, (Class<?>) ListSelector.class);
                intent.putExtra("extra", 2);
                startActivityForResult(intent, 4);
                return;
            case R.id.action_connect_out:
                this.f104GFdJxEgHObtapr = true;
                startActivityForResult(new Intent(this, (Class<?>) Targets.class), 1);
                return;
            case R.id.action_dim:
                m1642BMLfw();
                return;
            case R.id.action_help:
                this.f104GFdJxEgHObtapr = true;
                startActivity(new Intent(this, (Class<?>) HelpScreen.class));
                return;
            case R.id.action_sendlogs:
            default:
                return;
            case R.id.action_settings:
                startActivity(new Intent(this, (Class<?>) Settings.class));
                return;
            case R.id.action_stop:
                this.f100GFdJxEgHObtapr.show();
                return;
            case R.id.action_swap_camera:
                Intent intent2 = new Intent(this, (Class<?>) ListSelector.class);
                intent2.putExtra("extra", 5);
                intent2.putExtra("camera-list", this.f127XznPeCSIAuY.m1764XznPeCSIAuY());
                if (this.f107mcZoNTjDX != 2) {
                    startActivityForResult(intent2, 5);
                    return;
                } else {
                    this.f104GFdJxEgHObtapr = true;
                    startActivityForResult(intent2, 9);
                    return;
                }
        }
    }

    public void m1646vWQVmcZoNTjD() {
        if (this.f124XznPeCSIAuY.isActivated()) {
            this.f124XznPeCSIAuY.setImageBitmap(BitmapFactory.decodeResource(this.f117XznPeCSIAuY.getResources(), R.drawable.ic_mic_mute_large, this.f119XznPeCSIAuY));
            this.f110mcZoNTjDX.setImageBitmap(BitmapFactory.decodeResource(this.f117XznPeCSIAuY.getResources(), R.drawable.ic_mic_mute, this.f119XznPeCSIAuY));
        } else {
            this.f124XznPeCSIAuY.setImageBitmap(BitmapFactory.decodeResource(this.f117XznPeCSIAuY.getResources(), R.drawable.ic_mic_large, this.f119XznPeCSIAuY));
            this.f110mcZoNTjDX.setImageBitmap(BitmapFactory.decodeResource(this.f117XznPeCSIAuY.getResources(), R.drawable.ic_mic, this.f119XznPeCSIAuY));
        }
    }

    public void m1647mcZoNTjDX() {
        AlertDialog alertDialog;
        if (this.f114XznPeCSIAuY == 0 && !Settings.m1679GFdJxEgHObtap(this.f117XznPeCSIAuY)) {
            AlertDialog alertDialog2 = this.f116XznPeCSIAuY;
            if (alertDialog2 == null || !alertDialog2.isShowing()) {
                AlertDialog alertDialog3 = this.f108mcZoNTjDX;
                if ((alertDialog3 != null && alertDialog3.isShowing()) || (alertDialog = this.f96BMLfw) == null || alertDialog.isShowing()) {
                    return;
                }
                int currentTimeMillis = (int) (System.currentTimeMillis() / 1000);
                int m1691XznPeCSIAuY = Settings.m1691XznPeCSIAuY(this.f117XznPeCSIAuY, 0);
                int m1681mcZoNTjDX = Settings.m1681mcZoNTjDX(this.f117XznPeCSIAuY, 0);
                if (m1681mcZoNTjDX == 0) {
                    if (currentTimeMillis > m1691XznPeCSIAuY + 345600) {
                        this.f96BMLfw.show();
                        Settings.m1699XznPeCSIAuY(this.f117XznPeCSIAuY, currentTimeMillis, 1);
                        return;
                    }
                    return;
                }
                if (m1681mcZoNTjDX == 1) {
                    if (currentTimeMillis > m1691XznPeCSIAuY + 1209600) {
                        this.f96BMLfw.show();
                        Settings.m1699XznPeCSIAuY(this.f117XznPeCSIAuY, currentTimeMillis, m1681mcZoNTjDX + 1);
                        return;
                    }
                    return;
                }
                if (currentTimeMillis > m1691XznPeCSIAuY + 2419200) {
                    this.f96BMLfw.show();
                    Settings.m1699XznPeCSIAuY(this.f117XznPeCSIAuY, currentTimeMillis, m1681mcZoNTjDX + 1);
                }
            }
        }
    }

    public void m1648mcZoNTjDX(int i) {
        if (i != R.id.mic_icon) {
            switch (i) {
                case R.id.btn_af:
                    this.f104GFdJxEgHObtapr = true;
                    Intent intent = new Intent(this, (Class<?>) ListSelector.class);
                    intent.putExtra("extra", 3);
                    startActivityForResult(intent, 6);
                    return;
                case R.id.btn_app_settings:
                    this.f123XznPeCSIAuY.setVisibility(8);
                    if (this.f123XznPeCSIAuY.getText().equals(this.f117XznPeCSIAuY.getString(R.string.re_start))) {
                        this.f127XznPeCSIAuY.m1738BMLfw(65);
                        return;
                    }
                    if (!this.f123XznPeCSIAuY.getText().equals(this.f117XznPeCSIAuY.getString(R.string.err_perms))) {
                        startActivity(new Intent("android.settings.WIFI_SETTINGS"));
                        return;
                    }
                    Intent intent2 = new Intent("android.settings.APPLICATION_DETAILS_SETTINGS");
                    intent2.addFlags(268435456);
                    intent2.setData(Uri.fromParts("package", getPackageName(), null));
                    startActivity(intent2);
                    finish();
                    return;
                case R.id.btn_el:
                    this.f104GFdJxEgHObtapr = true;
                    Intent intent3 = new Intent(this, (Class<?>) ListSelector.class);
                    intent3.putExtra("extra", 1);
                    startActivityForResult(intent3, 3);
                    return;
                case R.id.btn_micmute:
                    break;
                case R.id.btn_savepic:
                    int i2 = Build.VERSION.SDK_INT;
                    if (i2 < 23 || i2 >= 29 || m1640XznPeCSIAuY(this.f117XznPeCSIAuY, f92mcZoNTjDX)) {
                        this.f127XznPeCSIAuY.m1738BMLfw(15);
                        return;
                    } else {
                        requestPermissions(f92mcZoNTjDX, 2);
                        return;
                    }
                case R.id.btn_vq:
                    this.f104GFdJxEgHObtapr = true;
                    Intent intent4 = new Intent(this, (Class<?>) ListSelector.class);
                    intent4.putExtra("extra", 4);
                    startActivityForResult(intent4, 8);
                    return;
                case R.id.btn_wb:
                    this.f104GFdJxEgHObtapr = true;
                    Intent intent5 = new Intent(this, (Class<?>) ListSelector.class);
                    intent5.putExtra("extra", 0);
                    startActivityForResult(intent5, 2);
                    return;
                default:
                    return;
            }
        }
        if (this.f127XznPeCSIAuY.m1739BMLfw()) {
            this.f124XznPeCSIAuY.setActivated(this.f127XznPeCSIAuY.m1735xEgHObtapriRBML());
        }
        m1646vWQVmcZoNTjD();
    }

    public void m1649XznPeCSIAuY() {
        if (this.f112mcZoNTjDX) {
            return;
        }
        AlertDialog alertDialog = this.f116XznPeCSIAuY;
        if (alertDialog == null || !alertDialog.isShowing()) {
            AlertDialog alertDialog2 = this.f96BMLfw;
            if (alertDialog2 != null && alertDialog2.isShowing()) {
                this.f96BMLfw.dismiss();
            }
            this.f112mcZoNTjDX = true;
            if (this.f108mcZoNTjDX.isShowing()) {
                return;
            }
            this.f108mcZoNTjDX.show();
        }
    }

    public void m1650XznPeCSIAuY(int i) {
        long m1694XznPeCSIAuY = Settings.m1694XznPeCSIAuY(this.f117XznPeCSIAuY);
        if (m1694XznPeCSIAuY == 0) {
            return;
        }
        int m1665BMLfw = Settings.m1665BMLfw(this.f117XznPeCSIAuY);
        if (m1665BMLfw > 2) {
            Settings.m1700XznPeCSIAuY(this.f117XznPeCSIAuY, 0L);
        } else if (System.currentTimeMillis() - m1694XznPeCSIAuY > 40000000 * m1665BMLfw) {
            Settings.m1667BMLfw(this.f117XznPeCSIAuY, m1665BMLfw + 1);
            m1651XznPeCSIAuY(R.string.app_name, i, null);
        }
    }

    public void m1651XznPeCSIAuY(int i, int i2, String str) {
        if (this.f115XznPeCSIAuY == null) {
            return;
        }
        AlertDialog alertDialog = this.f116XznPeCSIAuY;
        if (alertDialog != null && alertDialog.isShowing()) {
            this.f116XznPeCSIAuY.dismiss();
        }
        AlertDialog alertDialog2 = this.f96BMLfw;
        if (alertDialog2 != null && alertDialog2.isShowing()) {
            this.f96BMLfw.dismiss();
        }
        AlertDialog alertDialog3 = this.f108mcZoNTjDX;
        if (alertDialog3 != null && alertDialog3.isShowing()) {
            this.f108mcZoNTjDX.dismiss();
        }
        this.f115XznPeCSIAuY.setTitle(i);
        if (i2 > 0) {
            this.f115XznPeCSIAuY.setMessage(i2);
        } else if (str != null) {
            this.f115XznPeCSIAuY.setMessage(str);
        } else {
            this.f115XznPeCSIAuY.setMessage("");
        }
        try {
            AlertDialog create = this.f115XznPeCSIAuY.create();
            this.f116XznPeCSIAuY = create;
            create.show();
        } catch (Exception unused) {
        }
    }

    public void m1652XznPeCSIAuY(MotionEvent motionEvent) {
        int action = motionEvent.getAction() & 255;
        if (action == 0) {
            this.f113XznPeCSIAuY = motionEvent.getRawX();
            motionEvent.getRawY();
            this.f99BMLfw = false;
            return;
        }
        if (action == 2) {
            if (this.f99BMLfw) {
                float m1639XznPeCSIAuY = (float) m1639XznPeCSIAuY(motionEvent);
                float f = this.f113XznPeCSIAuY;
                if (m1639XznPeCSIAuY > f) {
                    this.f127XznPeCSIAuY.m1747mcZoNTjDX(((int) (m1639XznPeCSIAuY - f)) / 8);
                } else if (m1639XznPeCSIAuY < f) {
                    this.f127XznPeCSIAuY.m1741GFdJxEgHObtapr(((int) (f - m1639XznPeCSIAuY)) / 8);
                }
                this.f113XznPeCSIAuY = m1639XznPeCSIAuY;
                return;
            }
            return;
        }
        if (action == 1) {
            if (this.f99BMLfw) {
                return;
            }
            if (this.f131XznPeCSIAuY) {
                m1642BMLfw();
                return;
            } else {
                this.f127XznPeCSIAuY.m1738BMLfw(13);
                return;
            }
        }
        if (action != 5) {
            if (action == 6) {
                this.f99BMLfw = false;
            }
        } else {
            float m1639XznPeCSIAuY2 = (float) m1639XznPeCSIAuY(motionEvent);
            if (m1639XznPeCSIAuY2 > 8.0f) {
                this.f113XznPeCSIAuY = m1639XznPeCSIAuY2;
                this.f99BMLfw = true;
            }
        }
    }

    public void m1653XznPeCSIAuY(String str) {
    }
}