导航菜单

页面标题

页面副标题

Tasker v6.5.11 - ServiceTaskerExternal.java 源代码

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

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


package com.joaomgcd.taskerm.taskerexternal;

import android.content.Intent;
import android.os.Bundle;
import android.os.IBinder;
import android.util.Log;
import com.joaomgcd.taskerm.event.app.k;
import com.joaomgcd.taskerm.util.IntentServiceParallelCoroutines;
import jk.n0;
import lj.e0;
import lj.j;
import lj.s;
import oj.d;
import qj.f;
import qj.l;
import vd.a;
import vd.b;
import xj.p;
import yj.q;

public final class ServiceTaskerExternal extends IntentServiceParallelCoroutines {
    private final j u;

    static final class a extends q implements xj.a<C0043a> {

        public static final class C0043a extends a.a {
            final ServiceTaskerExternal c;

            @f(c = "com.joaomgcd.taskerm.taskerexternal.ServiceTaskerExternal$binder$2$1$triggerFromExternal$1", f = "ServiceTaskerExternal.kt", l = {}, m = "invokeSuspend")
            static final class C0044a extends l implements p<n0, d<? super e0>, Object> {
                int t;
                final ServiceTaskerExternal u;
                final b v;

                C0044a(ServiceTaskerExternal serviceTaskerExternal, b bVar, d<? super C0044a> dVar) {
                    super(2, dVar);
                    this.u = serviceTaskerExternal;
                    this.v = bVar;
                }

                @Override
                public final d<e0> k(Object obj, d<?> dVar) {
                    return new C0044a(this.u, this.v, dVar);
                }

                @Override
                public final Object r(Object obj) {
                    pj.b.c();
                    if (this.t != 0) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    s.b(obj);
                    k.a(this.u, "tertiary", (String) null, (String) null, (vf.b) null);
                    b bVar = this.v;
                    if (bVar != null) {
                        bVar.p(new Bundle());
                    }
                    return e0.a;
                }

                @Override
                public final Object l(n0 n0Var, d<? super e0> dVar) {
                    return ((C0044a) k(n0Var, dVar)).r(e0.a);
                }
            }

            C0043a(ServiceTaskerExternal serviceTaskerExternal) {
                this.c = serviceTaskerExternal;
            }

            public void C(Bundle bundle, b bVar) {
                this.c.k("triggered");
                jk.k.d(this.c.e(), null, null, new C0044a(this.c, bVar, null), 3, null);
            }
        }

        a() {
            super(0);
        }

        @Override
        public final C0043a invoke() {
            return new C0043a(ServiceTaskerExternal.this);
        }
    }

    public ServiceTaskerExternal() {
        super("ServiceTaskerExternal");
        this.u = lj.k.b(new a());
    }

    private final IBinder j() {
        return (IBinder) this.u.getValue();
    }

    public final int k(String str) {
        return Log.d("ServiceTaskerExternal", str);
    }

    @Override
    protected Object f(Intent intent, d<? super e0> dVar) {
        return e0.a;
    }

    @Override
    public IBinder onBind(Intent intent) {
        yj.p.i(intent, "intent");
        k("binded");
        return j();
    }

    @Override
    public void onDestroy() {
        k("destroyed");
        super.onDestroy();
    }

    @Override
    public boolean onUnbind(Intent intent) {
        k("unbinded");
        return super.onUnbind(intent);
    }
}