导航菜单

页面标题

页面副标题

Tasker v6.5.11 - ServiceRequestQuery.java 源代码

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

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


package com.joaomgcd.taskerm.plugin;

import android.annotation.TargetApi;
import android.app.IntentService;
import android.content.Intent;
import android.os.Bundle;
import com.joaomgcd.taskerm.util.p;
import net.dinglisch.android.taskerm.MonitorService;
import net.dinglisch.android.taskerm.r7;

@TargetApi(26)
public final class ServiceRequestQuery extends IntentService {
    public ServiceRequestQuery() {
        super("ServiceRequestQueryPlugin");
    }

    public final String a() {
        return "ServiceRequestQueryPlugin";
    }

    @Override
    public void onCreate() {
        p.t(this, a());
        super.onCreate();
    }

    @Override
    public void onDestroy() {
        p.C(this, a());
        super.onDestroy();
    }

    @Override
    protected void onHandleIntent(Intent intent) {
        Bundle extras;
        Bundle extras2;
        Object obj = (intent == null || (extras2 = intent.getExtras()) == null) ? null : extras2.get("com.twofortyfouram.locale.intent.extra.ACTIVITY");
        if (!MonitorService.c2(this)) {
            r7.f(a(), "Tasker disabled: ignoring plugin request from " + obj);
            return;
        }
        r7.f(a(), "Received request query via service. Plugin activity: " + obj);
        Intent intent2 = new Intent(this, (Class<?>) MonitorService.class);
        intent2.putExtra("eventType", 9982);
        if (intent != null && (extras = intent.getExtras()) != null) {
            intent2.putExtras(extras);
        }
        MonitorService.K6(this, intent2).h();
    }

    @Override
    public int onStartCommand(Intent intent, int i, int i2) {
        p.t(this, a());
        return super.onStartCommand(intent, i, i2);
    }
}