导航菜单

页面标题

页面副标题

Tasker v6.5.11 - h1.java 源代码

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

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


package com.joaomgcd.taskerm.action.net;

import android.annotation.TargetApi;
import android.os.Bundle;
import android.telephony.SubscriptionInfo;
import com.joaomgcd.taskerm.util.s6;
import com.joaomgcd.taskerm.util.u6;
import com.joaomgcd.taskerm.util.x6;
import net.dinglisch.android.taskerm.ExecuteService;

public final class h1 extends rf.m<u1> {
    public h1(ExecuteService executeService, net.dinglisch.android.taskerm.c cVar, Bundle bundle, xd.a<u1, ?, ?> aVar) {
        super(executeService, cVar, bundle, aVar);
        yj.p.i(executeService, "service");
        yj.p.i(cVar, "action");
        yj.p.i(bundle, "taskVars");
        yj.p.i(aVar, "actionBase");
    }

    @TargetApi(22)
    public s6 c(u1 u1Var) {
        Integer num;
        int intValue;
        SubscriptionInfo h;
        int subscriptionId;
        yj.p.i(u1Var, "input");
        dg.y type = u1Var.getType();
        if (type == null) {
            return u6.c("No mobile network type received from input");
        }
        dg.x xVar = new dg.x(n());
        if (!com.joaomgcd.taskerm.util.k.a.E() || (h = nf.h.a.h(n(), u1Var.getSimCard())) == null) {
            num = null;
        } else {
            subscriptionId = h.getSubscriptionId();
            num = Integer.valueOf(subscriptionId);
        }
        if (num != null) {
            try {
                intValue = num.intValue();
            } catch (Throwable th) {
                if (!com.joaomgcd.taskerm.util.k.a.i(n())) {
                    throw th;
                }
                return u6.c("Unfortunately Google disabled this feature for apps that target Android 10 and above (" + th.getClass().getSimpleName() + "). Check here for more info: https://tasker.joaoapps.com/userguide/en/target_api.html");
            }
        } else {
            intValue = 1;
        }
        s6 s6Var = (s6) xVar.c(type, intValue).f();
        if (s6Var.b()) {
            return new x6(true, new c2(null), (com.joaomgcd.taskerm.util.p1) null);
        }
        yj.p.f(s6Var);
        return s6Var;
    }

    public boolean q() {
        return true;
    }
}