导航菜单

页面标题

页面副标题

Tasker v6.5.11 - i.java 源代码

正在查看: Tasker v6.5.11 应用的 i.java JAVA 源代码文件

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


package qf;

import android.app.Activity;
import android.os.Build;
import android.provider.Settings;
import android.widget.EditText;
import android.widget.Spinner;
import com.joaomgcd.taskerm.nfc.ActivityNFCTag;
import com.joaomgcd.taskerm.nfc.NFCTagTasker;
import com.joaomgcd.taskerm.util.ExtensionsContextKt;
import com.joaomgcd.taskerm.util.e5;
import lj.e0;
import net.dinglisch.android.taskerm.EventEdit;
import net.dinglisch.android.taskerm.i2;
import net.dinglisch.android.taskerm.j2;
import net.dinglisch.android.taskerm.k2;
import pg.w0;
import we.l0;
import yj.p;
import yj.q;

public final class i extends com.joaomgcd.taskerm.helper.h<ze.b<?, ?, ?, ?>, k2, i2, ze.a, EventEdit> {

    static final class a extends q implements xj.a<e0> {
        final xj.l<NFCTagTasker, String> q;
        final EditText[] r;
        final int s;

        static final class C0282a extends q implements xj.a<e0> {
            final EditText[] i;
            final int q;
            final String r;

            C0282a(EditText[] editTextArr, int i, String str) {
                super(0);
                this.i = editTextArr;
                this.q = i;
                this.r = str;
            }

            public final void a() {
                this.i[this.q].setText(this.r);
            }

            @Override
            public e0 invoke() {
                a();
                return e0.a;
            }
        }

        a(xj.l<? super NFCTagTasker, String> lVar, EditText[] editTextArr, int i) {
            super(0);
            this.q = lVar;
            this.r = editTextArr;
            this.s = i;
        }

        public final void a() {
            String invoke;
            NFCTagTasker a = ActivityNFCTag.t.a(i.this.w0()).f().a();
            if (a == null || (invoke = this.q.invoke(a)) == null) {
                return;
            }
            w0.q0(new C0282a(this.r, this.s, invoke));
        }

        @Override
        public e0 invoke() {
            a();
            return e0.a;
        }
    }

    static final class b extends q implements xj.l<NFCTagTasker, String> {
        public static final b i = new b();

        b() {
            super(1);
        }

        @Override
        public final String invoke(NFCTagTasker nFCTagTasker) {
            p.i(nFCTagTasker, "$this$scanNFC");
            return nFCTagTasker.getIdString();
        }
    }

    static final class c extends q implements xj.l<NFCTagTasker, String> {
        public static final c i = new c();

        c() {
            super(1);
        }

        @Override
        public final String invoke(NFCTagTasker nFCTagTasker) {
            p.i(nFCTagTasker, "$this$scanNFC");
            return nFCTagTasker.getPayload();
        }
    }

    public i(EventEdit eventEdit) {
        super(eventEdit);
        p.i(eventEdit, "activity");
    }

    public static final void R2(i iVar, l0 l0Var) {
        p.i(iVar, "this$0");
        if (l0Var.o()) {
            ExtensionsContextKt.q(iVar.w0(), "https://www.xda-developers.com/android-q-google-pixel-2-pixel-3-remap-active-edge/", false, false, false, 14, null);
        }
    }

    private final void U2(EditText[] editTextArr, int i, xj.l<? super NFCTagTasker, String> lVar) {
        q(new a(lVar, editTextArr, i));
    }

    @Override
    public String N1(int i, int i2) {
        return j2.O(i, i2);
    }

    @Override
    public ze.a L1() {
        return ze.h.b();
    }

    @Override
    public boolean P1(int i, int i2) {
        return false;
    }

    @Override
    public com.joaomgcd.taskerm.helper.j<k2, ?, EventEdit> Y1(EventEdit eventEdit, ze.b<?, ?, ?, ?> bVar) {
        p.i(eventEdit, "<this>");
        p.i(bVar, "configurable");
        return bVar.i(eventEdit);
    }

    public final void Q2() {
        String str = Build.MODEL;
        if (str == null || !hk.o.N(str, "Pixel", false, 2, null) || T2()) {
            return;
        }
        if (e5.a.v1(e5.f, u(), 0, 2, null).B()) {
            Settings.Secure.putString(((EventEdit) w0()).getContentResolver(), "assist_gesture_any_assistant", "1");
        } else {
            R(com.joaomgcd.taskerm.dialog.a.y3((Activity) w0(), 2131887593, 2131887297, (com.joaomgcd.taskerm.util.q) null, 8, (Object) null), new oi.d() {
                @Override
                public final void accept(Object obj) {
                    i.R2(i.this, (l0) obj);
                }
            });
        }
    }

    public final void S2() {
        com.joaomgcd.taskerm.helper.i.U(this, com.joaomgcd.taskerm.dialog.a.n1((Activity) w0(), 2131887673, 2131887357, 0, false, (String) null, 56, (Object) null), null, 2, null);
    }

    public final boolean T2() {
        return p.d(Settings.Secure.getString(((EventEdit) w0()).getContentResolver(), "assist_gesture_any_assistant"), "1");
    }

    public final void V2(EditText[] editTextArr) {
        p.i(editTextArr, "argEditTextViews");
        U2(editTextArr, 0, b.i);
    }

    public final void W2(EditText[] editTextArr) {
        p.i(editTextArr, "argEditTextViews");
        U2(editTextArr, 1, c.i);
    }

    public final void X2(Spinner[] spinnerArr, EditText[] editTextArr) {
        p.i(spinnerArr, "argSpinners");
        p.i(editTextArr, "argEditTextViews");
        com.joaomgcd.taskerm.helper.e.L0(this, spinnerArr, editTextArr, false, null, 8, null);
    }
}