导航菜单

页面标题

页面副标题

万能钥匙 v1.1.23 - SpeedUpActivity.java 源代码

正在查看: 万能钥匙 v1.1.23 应用的 SpeedUpActivity.java JAVA 源代码文件

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


package com.wifitutu.ui.tools;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.databinding.ViewDataBinding;
import androidx.lifecycle.l0;
import androidx.lifecycle.x;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.meituan.robust.PatchProxyResult;
import com.wifitutu.link.wifi.router.api.generate.PageLink$PAGE_ID;
import com.wifitutu.link.wifi.router.api.generate.PageLink$Target30PersistentrunTipsParam;
import com.wifitutu.tutu_monitor.api.generate.bd.BdSpeedUpExitEvent;
import com.wifitutu.ui.BaseActivity;
import com.wifitutu.ui.view.SpeedUpStepLayout;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import kotlin.Metadata;
import kotlin.jvm.internal.k0;
import kotlin.jvm.internal.n;
import kotlin.jvm.internal.p;
import lg0.AbstractC1676h;
import lg0.C3639b;
import lg0.d4;
import lg0.e0;
import lg0.n5;
import lg0.x3;
import oq.i1;
import os.C2615b4;
import os.C2620c0;
import os.C2647f2;
import os.C2662g1;
import os.C2801y2;
import os.C2885i;
import os.C2904o0;
import os.C3102o;
import os.InterfaceC2864b;
import os.InterfaceC2882h;
import os.y2;
import s10.a;

@Metadata(d1 = {"\u0000d\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u000b\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010!\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010\t\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\b\n\u0002\b\b\u0018\u0000 D2\b\u0012\u0004\u0012\u00020\u00020\u0001:\u0001EB\u0007¢\u0006\u0004\b\u0003\u0010\u0004J\u000f\u0010\u0005\u001a\u00020\u0002H\u0016¢\u0006\u0004\b\u0005\u0010\u0006J\u000f\u0010\b\u001a\u00020\u0007H\u0016¢\u0006\u0004\b\b\u0010\u0004J\u000f\u0010\t\u001a\u00020\u0007H\u0016¢\u0006\u0004\b\t\u0010\u0004J\u0019\u0010\f\u001a\u00020\u00072\b\u0010\u000b\u001a\u0004\u0018\u00010\nH\u0016¢\u0006\u0004\b\f\u0010\rJ\u000f\u0010\u000e\u001a\u00020\u0007H\u0016¢\u0006\u0004\b\u000e\u0010\u0004J\u000f\u0010\u000f\u001a\u00020\u0007H\u0014¢\u0006\u0004\b\u000f\u0010\u0004J\u000f\u0010\u0010\u001a\u00020\u0007H\u0014¢\u0006\u0004\b\u0010\u0010\u0004J\u000f\u0010\u0011\u001a\u00020\u0007H\u0014¢\u0006\u0004\b\u0011\u0010\u0004J\u000f\u0010\u0012\u001a\u00020\u0007H\u0002¢\u0006\u0004\b\u0012\u0010\u0004J\u000f\u0010\u0013\u001a\u00020\u0007H\u0002¢\u0006\u0004\b\u0013\u0010\u0004J\u000f\u0010\u0014\u001a\u00020\u0007H\u0002¢\u0006\u0004\b\u0014\u0010\u0004J\u000f\u0010\u0015\u001a\u00020\u0007H\u0002¢\u0006\u0004\b\u0015\u0010\u0004J\u0019\u0010\u0018\u001a\u00020\u00072\b\b\u0002\u0010\u0017\u001a\u00020\u0016H\u0002¢\u0006\u0004\b\u0018\u0010\u0019J\u001b\u0010\u001c\u001a\u00020\u00072\n\b\u0002\u0010\u001b\u001a\u0004\u0018\u00010\u001aH\u0002¢\u0006\u0004\b\u001c\u0010\u001dJ\u001b\u0010\u001e\u001a\u00020\u00162\n\b\u0002\u0010\u001b\u001a\u0004\u0018\u00010\u001aH\u0002¢\u0006\u0004\b\u001e\u0010\u001fJ\u0017\u0010 \u001a\u00020\u00072\u0006\u0010\u001b\u001a\u00020\u001aH\u0002¢\u0006\u0004\b \u0010\u001dJ\u0017\u0010!\u001a\u00020\u00072\u0006\u0010\u001b\u001a\u00020\u001aH\u0002¢\u0006\u0004\b!\u0010\u001dJ\u000f\u0010\"\u001a\u00020\u0007H\u0002¢\u0006\u0004\b\"\u0010\u0004R\"\u0010*\u001a\u00020#8\u0006@\u0006X\u0086.¢\u0006\u0012\n\u0004\b$\u0010%\u001a\u0004\b&\u0010'\"\u0004\b(\u0010)R\u001c\u0010/\u001a\b\u0012\u0004\u0012\u00020,0+8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b-\u0010.R\u0018\u00102\u001a\u0004\u0018\u0001008\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u0013\u00101R\u0016\u00105\u001a\u0002038\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b \u00104R\u0016\u00106\u001a\u0002038\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b!\u00104R\u0016\u00107\u001a\u0002038\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u001e\u00104R\u0016\u00108\u001a\u0002038\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b&\u00104R\u0016\u0010;\u001a\u0002098\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u0005\u0010:R\u0016\u0010<\u001a\u0002098\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u0012\u0010:R\u0016\u0010=\u001a\u0002098\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u001c\u0010:R\u0016\u0010A\u001a\u00020>8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b?\u0010@R\u0016\u0010B\u001a\u00020\u00168\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b(\u0010 R\u0016\u0010C\u001a\u00020\u00168\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u0018\u0010 ¨\u0006F"}, d2 = {"Lcom/wifitutu/ui/tools/SpeedUpActivity;", "Lcom/wifitutu/ui/BaseActivity;", "Loq/i1;", "<init>", "()V", "d0", "()Loq/i1;", "Llg0/e0;", "Q", "initView", "Landroid/os/Bundle;", "savedInstanceState", "O", "(Landroid/os/Bundle;)V", "onBackPressed", "onStart", "onStop", "onDestroy", "e0", "Y", "k0", "l0", "", "next", "i0", "(Z)V", "Lb10/c;", "type", "f0", "(Lb10/c;)V", "b0", "(Lb10/c;)Z", "Z", "a0", "m0", "Ls10/a;", "W", "Ls10/a;", "c0", "()Ls10/a;", "h0", "(Ls10/a;)V", "viewModel", "", "Ls10/b;", "X", "Ljava/util/List;", "data", "", "Ljava/lang/String;", "sharePassword", "", "J", "playTime", "durationStepTime", "durationTime", "allDurationTime", "Ljava/lang/Runnable;", "Ljava/lang/Runnable;", "finishRunnable", "finishStepRunnable", "showBackRunnable", "", "g0", "I", "backCount", "auto", "uploadFinish", "j0", "a", "tutu_app_prd"}, k = 1, mv = {1, 8, 0}, xi = 48)
public final class SpeedUpActivity extends BaseActivity<i1> {
    public static ChangeQuickRedirect changeQuickRedirect;

    public a viewModel;

    public String sharePassword;

    public long playTime;

    public boolean auto;

    public boolean uploadFinish;

    public List<s10.b> data = new ArrayList();

    public long durationStepTime = 5000;

    public long durationTime = 5550;

    public long allDurationTime = 6000;

    public Runnable finishRunnable = new b();

    public Runnable finishStepRunnable = new c();

    public Runnable showBackRunnable = new k();

    public int backCount = 2;

    @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0003\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Llg0/e0;", "run", "()V", "<anonymous>"}, k = 3, mv = {1, 8, 0})
    public static final class b implements Runnable {
        public static ChangeQuickRedirect changeQuickRedirect;

        public b() {
        }

        @Override
        public final void run() {
            if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 28263, new Class[0], Void.TYPE).isSupported) {
                return;
            }
            SpeedUpActivity.access$speedUpFinished(SpeedUpActivity.this);
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0003\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Llg0/e0;", "run", "()V", "<anonymous>"}, k = 3, mv = {1, 8, 0})
    public static final class c implements Runnable {
        public static ChangeQuickRedirect changeQuickRedirect;

        public c() {
        }

        @Override
        public final void run() {
            if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 28264, new Class[0], Void.TYPE).isSupported) {
                return;
            }
            SpeedUpActivity.access$allFinish(SpeedUpActivity.this);
        }
    }

    @Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0006\u001a\u00020\u00032\u000e\u0010\u0002\u001a\n \u0001*\u0004\u0018\u00010\u00000\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"Landroid/view/View;", "kotlin.jvm.PlatformType", "it", "Llg0/e0;", "onClick", "(Landroid/view/View;)V", "<anonymous>"}, k = 3, mv = {1, 8, 0})
    public static final class d implements View.OnClickListener {
        public static ChangeQuickRedirect changeQuickRedirect;

        public d() {
        }

        @Override
        public final void onClick(View view) {
            if (PatchProxy.proxy(new Object[]{view}, this, changeQuickRedirect, false, 28265, new Class[]{View.class}, Void.TYPE).isSupported) {
                return;
            }
            InterfaceC2882h a = C2885i.a(C2662g1.a(C2647f2.d()));
            if (n.d(a != null ? InterfaceC2864b.a.a(a, "KEY_BACK_PRESSED", false, 2, null) : null, "A") && n.d(SpeedUpActivity.this.J().n0(), Boolean.TRUE)) {
                SpeedUpActivity.access$setResult(SpeedUpActivity.this, b10.c.BUTTON);
            } else {
                SpeedUpActivity.access$finish(SpeedUpActivity.this, b10.c.BUTTON);
            }
        }
    }

    @Metadata(d1 = {"\u0000\u0012\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0004\u001a\u00020\u00032\u000e\u0010\u0002\u001a\n\u0012\u0004\u0012\u00020\u0001\u0018\u00010\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"", "Ls10/b;", "it", "Llg0/e0;", "a", "(Ljava/util/List;)V"}, k = 3, mv = {1, 8, 0})
    public static final class e<T> implements x {
        public static ChangeQuickRedirect changeQuickRedirect;

        public e() {
        }

        public final void a(List<s10.b> list) {
            if (PatchProxy.proxy(new Object[]{list}, this, changeQuickRedirect, false, 28266, new Class[]{List.class}, Void.TYPE).isSupported) {
                return;
            }
            SpeedUpActivity.this.data.addAll(list != null ? list : new ArrayList());
            SpeedUpActivity.this.J().y0(SpeedUpActivity.this.data.size());
            SpeedUpActivity.this.J().s0(1);
            SpeedUpActivity.this.J().U.setData(SpeedUpActivity.this.data);
            SpeedUpActivity.this.J().U.notifyDataSetChanged();
        }

        public void d(Object obj) {
            if (PatchProxy.proxy(new Object[]{obj}, this, changeQuickRedirect, false, 28267, new Class[]{Object.class}, Void.TYPE).isSupported) {
                return;
            }
            a((List) obj);
        }
    }

    @Metadata(d1 = {"\u0000\u0010\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0004\u001a\u00020\u00032\u000e\u0010\u0002\u001a\n \u0001*\u0004\u0018\u00010\u00000\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"", "kotlin.jvm.PlatformType", "it", "Llg0/e0;", "a", "(Ljava/lang/Integer;)V"}, k = 3, mv = {1, 8, 0})
    public static final class f<T> implements x {
        public static ChangeQuickRedirect changeQuickRedirect;

        public f() {
        }

        public final void a(Integer num) {
            if (PatchProxy.proxy(new Object[]{num}, this, changeQuickRedirect, false, 28268, new Class[]{Integer.class}, Void.TYPE).isSupported) {
                return;
            }
            if (num != null && num.intValue() == -1) {
                return;
            }
            SpeedUpStepLayout.notifyItemChanged$default(SpeedUpActivity.this.J().U, num.intValue(), false, 2, null);
        }

        public void d(Object obj) {
            if (PatchProxy.proxy(new Object[]{obj}, this, changeQuickRedirect, false, 28269, new Class[]{Object.class}, Void.TYPE).isSupported) {
                return;
            }
            a((Integer) obj);
        }
    }

    @Metadata(d1 = {"\u0000\u0010\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0004\u001a\u00020\u00032\u000e\u0010\u0002\u001a\n \u0001*\u0004\u0018\u00010\u00000\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"", "kotlin.jvm.PlatformType", "it", "Llg0/e0;", "a", "(Ljava/lang/Integer;)V"}, k = 3, mv = {1, 8, 0})
    public static final class g<T> implements x {
        public static ChangeQuickRedirect changeQuickRedirect;

        public g() {
        }

        public final void a(Integer num) {
            if (PatchProxy.proxy(new Object[]{num}, this, changeQuickRedirect, false, 28270, new Class[]{Integer.class}, Void.TYPE).isSupported) {
                return;
            }
            int intValue = num.intValue() / gh0.i.d(1, SpeedUpActivity.this.data.size());
            if (intValue < 10) {
                intValue = eh0.d.a.g(5) + 10;
            } else if (intValue > 30) {
                intValue = eh0.d.a.g(5) + 24;
            }
            SpeedUpActivity.this.J().w0(intValue);
            SpeedUpActivity.this.J().s0(gh0.i.h(SpeedUpActivity.this.J().m0() + 1, SpeedUpActivity.this.data.size()));
            SpeedUpActivity.g0(SpeedUpActivity.this, null, 1, null);
        }

        public void d(Object obj) {
            if (PatchProxy.proxy(new Object[]{obj}, this, changeQuickRedirect, false, 28271, new Class[]{Object.class}, Void.TYPE).isSupported) {
                return;
            }
            a((Integer) obj);
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0003\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Llg0/e0;", "invoke", "()V", "<anonymous>"}, k = 3, mv = {1, 8, 0})
    public static final class h extends p implements ah0.a<e0> {
        public static ChangeQuickRedirect changeQuickRedirect;

        public h() {
            super(0);
        }

        @Override
        public e0 invoke() {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 28273, new Class[0], Object.class);
            if (proxy.isSupported) {
                return proxy.result;
            }
            invoke2();
            return e0.a;
        }

        public final void invoke2() {
            if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 28272, new Class[0], Void.TYPE).isSupported) {
                return;
            }
            SpeedUpActivity.this.finish();
        }
    }

    @Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Lb10/c;", "it", "Llg0/e0;", "a", "(Lb10/c;)V"}, k = 3, mv = {1, 8, 0})
    public static final class i extends p implements ah0.l<b10.c, e0> {
        public static ChangeQuickRedirect changeQuickRedirect;
        public final Intent s;

        public i(Intent intent) {
            super(1);
            this.s = intent;
        }

        public final void a(b10.c cVar) {
            if (PatchProxy.proxy(new Object[]{cVar}, this, changeQuickRedirect, false, 28275, new Class[]{b10.c.class}, Void.TYPE).isSupported) {
                return;
            }
            this.s.putExtra("jumpWay", cVar.getValue());
        }

        @Override
        public e0 invoke(b10.c cVar) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{cVar}, this, changeQuickRedirect, false, 28276, new Class[]{Object.class}, Object.class);
            if (proxy.isSupported) {
                return proxy.result;
            }
            a(cVar);
            return e0.a;
        }
    }

    @Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Lb10/c;", "it", "Llg0/e0;", "a", "(Lb10/c;)V"}, k = 3, mv = {1, 8, 0})
    public static final class j extends p implements ah0.l<b10.c, e0> {
        public static ChangeQuickRedirect changeQuickRedirect;

        public j() {
            super(1);
        }

        public final void a(b10.c cVar) {
            if (PatchProxy.proxy(new Object[]{cVar}, this, changeQuickRedirect, false, 28277, new Class[]{b10.c.class}, Void.TYPE).isSupported) {
                return;
            }
            SpeedUpActivity.access$finish(SpeedUpActivity.this, cVar);
        }

        @Override
        public e0 invoke(b10.c cVar) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{cVar}, this, changeQuickRedirect, false, 28278, new Class[]{Object.class}, Object.class);
            if (proxy.isSupported) {
                return proxy.result;
            }
            a(cVar);
            return e0.a;
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0003\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Llg0/e0;", "run", "()V", "<anonymous>"}, k = 3, mv = {1, 8, 0})
    public static final class k implements Runnable {
        public static ChangeQuickRedirect changeQuickRedirect;

        public k() {
        }

        @Override
        public final void run() {
            if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 28279, new Class[0], Void.TYPE).isSupported) {
                return;
            }
            SpeedUpActivity.j0(SpeedUpActivity.this, false, 1, null);
        }
    }

    @Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0006\u001a\u00020\u00032\u000e\u0010\u0002\u001a\n \u0001*\u0004\u0018\u00010\u00000\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"Landroid/view/View;", "kotlin.jvm.PlatformType", "it", "Llg0/e0;", "onClick", "(Landroid/view/View;)V", "<anonymous>"}, k = 3, mv = {1, 8, 0})
    public static final class l implements View.OnClickListener {
        public static ChangeQuickRedirect changeQuickRedirect;

        public l() {
        }

        @Override
        public final void onClick(View view) {
            if (PatchProxy.proxy(new Object[]{view}, this, changeQuickRedirect, false, 28280, new Class[]{View.class}, Void.TYPE).isSupported) {
                return;
            }
            SpeedUpActivity.access$setResult(SpeedUpActivity.this, b10.c.BUTTON);
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0003\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Llg0/e0;", "invoke", "()V", "<anonymous>"}, k = 3, mv = {1, 8, 0})
    public static final class m extends p implements ah0.a<e0> {
        public static ChangeQuickRedirect changeQuickRedirect;

        public m() {
            super(0);
        }

        @Override
        public e0 invoke() {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 28282, new Class[0], Object.class);
            if (proxy.isSupported) {
                return proxy.result;
            }
            invoke2();
            return e0.a;
        }

        public final void invoke2() {
            if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 28281, new Class[0], Void.TYPE).isSupported) {
                return;
            }
            SpeedUpActivity.access$updateProgress(SpeedUpActivity.this);
            SpeedUpActivity.this.J().v0(Boolean.TRUE);
        }
    }

    public static final void access$allFinish(SpeedUpActivity speedUpActivity) {
        if (PatchProxy.proxy(new Object[]{speedUpActivity}, (Object) null, changeQuickRedirect, true, 28261, new Class[]{SpeedUpActivity.class}, Void.TYPE).isSupported) {
            return;
        }
        speedUpActivity.Y();
    }

    public static final void access$finish(SpeedUpActivity speedUpActivity, b10.c cVar) {
        if (PatchProxy.proxy(new Object[]{speedUpActivity, cVar}, (Object) null, changeQuickRedirect, true, 28257, new Class[]{SpeedUpActivity.class, b10.c.class}, Void.TYPE).isSupported) {
            return;
        }
        speedUpActivity.Z(cVar);
    }

    public static final void access$setResult(SpeedUpActivity speedUpActivity, b10.c cVar) {
        if (PatchProxy.proxy(new Object[]{speedUpActivity, cVar}, (Object) null, changeQuickRedirect, true, 28256, new Class[]{SpeedUpActivity.class, b10.c.class}, Void.TYPE).isSupported) {
            return;
        }
        speedUpActivity.f0(cVar);
    }

    public static final void access$speedUpFinished(SpeedUpActivity speedUpActivity) {
        if (PatchProxy.proxy(new Object[]{speedUpActivity}, (Object) null, changeQuickRedirect, true, 28260, new Class[]{SpeedUpActivity.class}, Void.TYPE).isSupported) {
            return;
        }
        speedUpActivity.k0();
    }

    public static final void access$updateProgress(SpeedUpActivity speedUpActivity) {
        if (PatchProxy.proxy(new Object[]{speedUpActivity}, (Object) null, changeQuickRedirect, true, 28258, new Class[]{SpeedUpActivity.class}, Void.TYPE).isSupported) {
            return;
        }
        speedUpActivity.l0();
    }

    public static final void access$updateVideoHeight(SpeedUpActivity speedUpActivity) {
        if (PatchProxy.proxy(new Object[]{speedUpActivity}, (Object) null, changeQuickRedirect, true, 28259, new Class[]{SpeedUpActivity.class}, Void.TYPE).isSupported) {
            return;
        }
        speedUpActivity.m0();
    }

    public static void g0(SpeedUpActivity speedUpActivity, b10.c cVar, int i2, Object obj) {
        if (PatchProxy.proxy(new Object[]{speedUpActivity, cVar, new Integer(i2), obj}, (Object) null, changeQuickRedirect, true, 28243, new Class[]{SpeedUpActivity.class, b10.c.class, Integer.TYPE, Object.class}, Void.TYPE).isSupported) {
            return;
        }
        if ((i2 & 1) != 0) {
            cVar = null;
        }
        speedUpActivity.f0(cVar);
    }

    public static void j0(SpeedUpActivity speedUpActivity, boolean z, int i2, Object obj) {
        if (PatchProxy.proxy(new Object[]{speedUpActivity, new Byte(z ? (byte) 1 : (byte) 0), new Integer(i2), obj}, (Object) null, changeQuickRedirect, true, 28241, new Class[]{SpeedUpActivity.class, Boolean.TYPE, Integer.TYPE, Object.class}, Void.TYPE).isSupported) {
            return;
        }
        if ((i2 & 1) != 0) {
            z = true;
        }
        speedUpActivity.i0(z);
    }

    @Override
    public i1 N() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 28255, new Class[0], ViewDataBinding.class);
        return proxy.isSupported ? (ViewDataBinding) proxy.result : d0();
    }

    @Override
    public void O(Bundle savedInstanceState) {
        if (PatchProxy.proxy(new Object[]{savedInstanceState}, this, changeQuickRedirect, false, 28235, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            return;
        }
        super.O(savedInstanceState);
        this.sharePassword = getIntent().getStringExtra("share_password");
        this.auto = getIntent().getBooleanExtra("AUTO", false);
    }

    @Override
    public void Q() {
        if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 28233, new Class[0], Void.TYPE).isSupported) {
            return;
        }
        super.Q();
        h0((a) new l0(this).a(a.class));
    }

    public final void Y() {
        if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 28237, new Class[0], Void.TYPE).isSupported) {
            return;
        }
        J().U.notifyItemChanged(mg0.p.l(this.data), true);
    }

    public final void Z(b10.c type) {
        if (PatchProxy.proxy(new Object[]{type}, this, changeQuickRedirect, false, 28247, new Class[]{b10.c.class}, Void.TYPE).isSupported) {
            return;
        }
        finish();
        a0(type);
    }

    public final void a0(b10.c type) {
        if (PatchProxy.proxy(new Object[]{type}, this, changeQuickRedirect, false, 28250, new Class[]{b10.c.class}, Void.TYPE).isSupported || this.uploadFinish) {
            return;
        }
        this.uploadFinish = true;
        AbstractC1676h.Companion companion = AbstractC1676h.INSTANCE;
        BdSpeedUpExitEvent bdSpeedUpExitEvent = new BdSpeedUpExitEvent();
        bdSpeedUpExitEvent.b(type.getValue());
        bdSpeedUpExitEvent.a(n.d(J().n0(), Boolean.TRUE) ? 1 : 0);
        companion.c(bdSpeedUpExitEvent);
    }

    public final boolean b0(b10.c type) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{type}, this, changeQuickRedirect, false, 28244, new Class[]{b10.c.class}, Boolean.TYPE);
        if (proxy.isSupported) {
            return ((Boolean) proxy.result).booleanValue();
        }
        InterfaceC2882h a = C2885i.a(C2662g1.a(C2647f2.d()));
        return n.d(a != null ? InterfaceC2864b.a.a(a, "KEY_BACK_PRESSED", false, 2, null) : null, "A") ? n.d(J().n0(), Boolean.TRUE) || type == b10.c.CLICKMOVIE : this.auto || type == b10.c.AUTO || type == b10.c.BUTTON;
    }

    public final a c0() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 28232, new Class[0], a.class);
        if (proxy.isSupported) {
            return (a) proxy.result;
        }
        a aVar = this.viewModel;
        if (aVar != null) {
            return aVar;
        }
        n.z("viewModel");
        return null;
    }

    public i1 d0() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 28231, new Class[0], i1.class);
        return proxy.isSupported ? (i1) proxy.result : i1.q0(getLayoutInflater());
    }

    public final void e0() {
        if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 28236, new Class[0], Void.TYPE).isSupported) {
            return;
        }
        this.playTime = System.currentTimeMillis();
        J().C.playAnimation();
        J().B.playAnimation();
        J().getRoot().postDelayed(this.finishRunnable, this.durationTime);
        J().getRoot().postDelayed(this.finishStepRunnable, this.durationStepTime);
    }

    public final void f0(b10.c type) {
        if (PatchProxy.proxy(new Object[]{type}, this, changeQuickRedirect, false, 28242, new Class[]{b10.c.class}, Void.TYPE).isSupported) {
            return;
        }
        Intent intent = new Intent();
        intent.putExtra("improve", J().p0());
        intent.putExtra("AUTO", b0(type));
        intent.putExtra("share_password", this.sharePassword);
        intent.putExtra("connect_id", getIntent().getStringExtra("connect_id"));
        intent.putExtra("wifi_info", x3.c.i(getInfo(), new Object[0]));
        d4.H(type, new i(intent));
        e0 e0Var = e0.a;
        setResult(-1, intent);
        d4.H(type, new j());
    }

    public final void h0(a aVar) {
        this.viewModel = aVar;
    }

    public final void i0(boolean next) {
        if (PatchProxy.proxy(new Object[]{new Byte(next ? (byte) 1 : (byte) 0)}, this, changeQuickRedirect, false, 28240, new Class[]{Boolean.TYPE}, Void.TYPE).isSupported) {
            return;
        }
        J().F.setOnClickListener(new l());
        J().W.setVisibility(0);
        if (next) {
            TextView textView = J().E;
            k0 k0Var = k0.a;
            String format = String.format(getString(2131887614, "  ", Integer.valueOf(this.backCount)), Arrays.copyOf(new Object[0], 0));
            n.h(format, "format(format, *args)");
            textView.setText(format);
            J().E.setVisibility(0);
            this.backCount--;
        }
        if (this.backCount == -1) {
            f0(b10.c.AUTO);
        } else if (next) {
            J().getRoot().postDelayed(this.showBackRunnable, 1000L);
        }
    }

    @Override
    public void initView() {
        throw new UnsupportedOperationException("Method not decompiled: com.wifitutu.ui.tools.SpeedUpActivity.initView():void");
    }

    public final void k0() {
        if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 28238, new Class[0], Void.TYPE).isSupported) {
            return;
        }
        J().U.finished(this.allDurationTime - this.durationTime, J().N, J().D, J().P, new m());
    }

    public final void l0() {
        if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 28239, new Class[0], Void.TYPE).isSupported) {
            return;
        }
        g0(this, null, 1, null);
        j0(this, false, 1, null);
    }

    public final void m0() {
        if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 28253, new Class[0], Void.TYPE).isSupported) {
            return;
        }
        ViewGroup.LayoutParams layoutParams = J().Q.getLayoutParams();
        float height = J().R.getHeight() - J().H.getY();
        ViewGroup.LayoutParams layoutParams2 = J().Q.getLayoutParams();
        layoutParams.height = (int) ((height - ((layoutParams2 instanceof ViewGroup.MarginLayoutParams ? (ViewGroup.MarginLayoutParams) layoutParams2 : null) != null ? r3.topMargin : 0)) - J().O.getPaddingBottom());
        J().Q.setLayoutParams(layoutParams);
    }

    public void onBackPressed() {
        if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 28246, new Class[0], Void.TYPE).isSupported) {
            return;
        }
        InterfaceC2882h a = C2885i.a(C2662g1.a(C2647f2.d()));
        if (n.d(a != null ? InterfaceC2864b.a.a(a, "KEY_BACK_PRESSED", false, 2, null) : null, "A") && n.d(J().n0(), Boolean.TRUE)) {
            f0(b10.c.BACK);
        } else {
            if (this.auto) {
                return;
            }
            super/*androidx.activity.ComponentActivity*/.onBackPressed();
            a0(b10.c.BACK);
        }
    }

    @Override
    public void onDestroy() {
        if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 28254, new Class[0], Void.TYPE).isSupported) {
            return;
        }
        J().getRoot().removeCallbacks(this.finishRunnable);
        J().getRoot().removeCallbacks(this.finishStepRunnable);
        J().getRoot().removeCallbacks(this.showBackRunnable);
        boolean a = y2.a(C2662g1.a(C2647f2.d())).l() ? C2801y2.a(C2801y2.c(C2647f2.d()), n5.INSTANCE.b()) : true;
        if (getInfo() != null && a && q90.a.g(C2620c0.a(C2647f2.d())).e() && !C3102o.a(C2647f2.d()).k6() && !C2801y2.a(C2801y2.c(C2647f2.d()), n5.INSTANCE.f())) {
            C3639b c3639b = new C3639b(null, 1, null);
            c3639b.q(PageLink$PAGE_ID.TARGET30_PERSISTENTRUN_TIPS.getValue());
            PageLink$Target30PersistentrunTipsParam pageLink$Target30PersistentrunTipsParam = new PageLink$Target30PersistentrunTipsParam();
            pageLink$Target30PersistentrunTipsParam.b(false);
            c3639b.p(pageLink$Target30PersistentrunTipsParam);
            if (C2615b4.d(C2647f2.d()).w0(c3639b)) {
                C2615b4.d(C2647f2.d()).V(c3639b);
            }
        }
        com.wifitutu.link.foundation.kernel.c.k(C2904o0.b(C2662g1.a(C2647f2.d())).c7());
        super.onDestroy();
    }

    @Override
    public void onStart() {
        if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 28248, new Class[0], Void.TYPE).isSupported) {
            return;
        }
        super.onStart();
        this.uploadFinish = false;
    }

    @Override
    public void onStop() {
        if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 28249, new Class[0], Void.TYPE).isSupported) {
            return;
        }
        super.onStop();
        a0(b10.c.BACKGROUND);
    }
}