正在查看: Tasker v6.5.11 应用的 d.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Tasker v6.5.11 应用的 d.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package qf;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import com.joaomgcd.taskerm.util.ExtensionsContextKt;
import com.joaomgcd.taskerm.util.z2;
import cyanogenmod.app.ProfileManager;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import ji.r;
import lj.e0;
import net.dinglisch.android.taskerm.ActionEdit;
import net.dinglisch.android.taskerm.ActionEditNoResize;
import net.dinglisch.android.taskerm.MacroEdit;
import net.dinglisch.android.taskerm.a1;
import net.dinglisch.android.taskerm.d6;
import net.dinglisch.android.taskerm.kq;
import net.dinglisch.android.taskerm.qi;
import net.dinglisch.android.taskerm.r7;
import net.dinglisch.android.taskerm.s5;
import net.dinglisch.android.taskerm.tn;
import pg.w0;
import we.l0;
import yj.p;
import yj.q;
public abstract class d<TInput> extends com.joaomgcd.taskerm.helper.j<net.dinglisch.android.taskerm.c, TInput, ActionEdit> {
public static final a l = new a(null);
public static final int m = 8;
private final ActionEdit j;
private final xd.a<TInput, ?, ?> k;
public static final class a {
public a(yj.h hVar) {
this();
}
private a() {
}
}
public static final class b extends e.a<a, C0278b> {
public static final class a {
private final tn a;
private final int b;
private final Integer c;
private final String d;
private final String e;
private final ArrayList<String> f;
private final List<String> g;
private final int h;
public a(tn tnVar, int i, Integer num, String str, String str2, ArrayList<String> arrayList, List<String> list, int i2) {
p.i(tnVar, "macroX");
this.a = tnVar;
this.b = i;
this.c = num;
this.d = str;
this.e = str2;
this.f = arrayList;
this.g = list;
this.h = i2;
}
public final Integer a() {
return this.c;
}
public final ArrayList<String> b() {
return this.f;
}
public final String c() {
return this.e;
}
public final tn d() {
return this.a;
}
public final int e() {
return this.b;
}
public final int f() {
return this.h;
}
public final List<String> g() {
return this.g;
}
public final String h() {
return this.d;
}
}
public static final class C0278b {
private final net.dinglisch.android.taskerm.c a;
private final int b;
public C0278b(net.dinglisch.android.taskerm.c cVar, int i) {
this.a = cVar;
this.b = i;
}
public final net.dinglisch.android.taskerm.c a() {
return this.a;
}
public final int b() {
return this.b;
}
}
public Intent a(Context context, a aVar) {
net.dinglisch.android.taskerm.c A0;
p.i(context, "context");
p.i(aVar, "input");
Intent intent = new Intent(context, (Class<?>) (aVar.e() >= 0 && (A0 = aVar.d().A0(aVar.e())) != null && A0.j() == 129 ? ActionEditNoResize.class : ActionEdit.class));
intent.addFlags(67108864);
intent.putExtra("raf", ActionEdit.b0.None.toString());
intent.putExtra("actioncode", aVar.e());
intent.putStringArrayListExtra("lbl", aVar.d().A1());
intent.putExtra("noa", aVar.d().c1());
if (aVar.c() != null) {
intent.putExtra("sc", aVar.c());
intent.putStringArrayListExtra("el", aVar.b());
}
ArrayList<String> arrayList = new ArrayList<>();
aVar.d().q1(arrayList);
intent.putStringArrayListExtra("dsn", arrayList);
HashSet hashSet = new HashSet();
aVar.d().c2(context, false, hashSet, true, false, true);
if (aVar.g() != null) {
hashSet.addAll(aVar.g());
}
kq.g(intent, new ArrayList(hashSet), hashSet);
intent.putExtra("projectid", aVar.f());
HashMap<String, String> hashMap = new HashMap<>();
aVar.d().e0(context, aVar.e(), true, hashMap);
String[] p = d6.p(hashMap);
if (p != null) {
intent.putExtra("jos", p);
}
intent.putExtra("tid", aVar.d().P0());
if (aVar.e() >= 0) {
net.dinglisch.android.taskerm.c A02 = aVar.d().A0(aVar.e());
if (A02 == null) {
return intent;
}
intent.putExtra("aci", A02.U(0).c0());
}
if (aVar.a() != null) {
intent.putExtra("actionindex", aVar.a().intValue());
}
if (aVar.h() != null) {
intent.putExtra("actionsearch", aVar.h());
}
return intent;
}
public C0278b c(int i, Intent intent) {
Bundle bundleExtra = intent != null ? intent.getBundleExtra("actisss") : null;
return bundleExtra == null ? new C0278b(null, -9999) : new C0278b(new net.dinglisch.android.taskerm.c(new qi(bundleExtra)), intent.getIntExtra("actionindex", -9999));
}
}
public static final class c extends e.a<a, b> {
public static final class a {
private final int a;
private final String b;
private final Integer c;
public a(int i, String str, Integer num) {
this.a = i;
this.b = str;
this.c = num;
}
public final Integer a() {
return this.c;
}
public final int b() {
return this.a;
}
public final String c() {
return this.b;
}
}
public static final class b {
}
public Intent a(Context context, a aVar) {
p.i(context, "context");
p.i(aVar, "input");
Intent intent = new Intent(context, (Class<?>) MacroEdit.class);
intent.putExtra("son", true);
intent.putExtra("amt", -1);
intent.putExtra("tid", aVar.b());
intent.putExtra(ProfileManager.EXTRA_PROFILE_NAME, aVar.c());
intent.putExtra("projectid", aVar.a());
return intent;
}
public b c(int i, Intent intent) {
r7.f("Parse Result", "parseResult");
return new b();
}
}
static final class C0279d extends q implements xj.a<e0> {
final d<TInput> i;
C0279d(d<TInput> dVar) {
super(0);
this.i = dVar;
}
public final void a() {
Boolean f = s5.m(this.i.S0()).f();
p.h(f, "blockingGet(...)");
if (f.booleanValue()) {
return;
}
Object f2 = new ie.e(this.i.S0()).q().f();
p.h(f2, "blockingGet(...)");
if (((Boolean) f2).booleanValue()) {
return;
}
d<TInput> dVar = this.i;
d.b1(dVar, com.joaomgcd.taskerm.dialog.a.T(dVar.S0()), null, 1, null);
}
@Override
public e0 invoke() {
a();
return e0.a;
}
}
public static final class e implements oi.e {
private final xj.l i;
public e(xj.l lVar) {
p.i(lVar, "function");
this.i = lVar;
}
@Override
public final Object a(Object obj) {
return this.i.invoke(obj);
}
}
public d(ActionEdit actionEdit, xd.a<TInput, ?, ?> aVar) {
super(actionEdit, aVar);
p.i(actionEdit, "actionEdit");
p.i(aVar, "actionBase");
this.j = actionEdit;
this.k = aVar;
}
private final void R0() {
if (this.k.I(this.j, G())) {
w0.m0(new C0279d(this));
}
}
private final void Y0() {
if (this.k.H()) {
E0(com.joaomgcd.taskerm.dialog.a.v1(this.j, 2131889516, 2131887020, 2131886891, 2131888370, (String) null, 32, (Object) null), new oi.d() {
@Override
public final void accept(Object obj) {
d.Z0(d.this, (l0) obj);
}
});
}
}
public static final void Z0(d dVar, l0 l0Var) {
p.i(dVar, "this$0");
if (l0Var.o()) {
ExtensionsContextKt.q(dVar.j, "https://tasker.joaoapps.com/commandsystem.html", true, false, true, 4, null);
}
}
public static void b1(d dVar, r rVar, oi.d dVar2, int i, Object obj) {
if (obj != null) {
throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: subscribeWithActionEdit");
}
if ((i & 1) != 0) {
dVar2 = null;
}
dVar.a1(rVar, dVar2);
}
@Override
public <T> void E0(r<T> rVar, oi.d<T> dVar) {
p.i(rVar, "<this>");
a1(rVar, dVar);
}
public final ActionEdit S0() {
return this.j;
}
public final String T0(int i) {
Resources resources = this.j.getResources();
p.h(resources, "getResources(...)");
return t(resources, this.k.d(), i);
}
public final String U0(Object obj, int i) {
p.i(obj, "<this>");
String F = z2.F(A(i));
return kotlin.collections.r.m0(kotlin.collections.r.p(F != null ? hk.o.r0(F, ",") : null, obj.toString()), ",", null, null, 0, null, null, 62, null);
}
public final <T> r<T> V0(xj.l<? super oj.d<? super T>, ? extends Object> lVar) {
p.i(lVar, "block");
return se.f.m(lVar, this.j.m0.v());
}
@Override
public void X(net.dinglisch.android.taskerm.c cVar) {
p.i(cVar, "configurable");
super.X(cVar);
R0();
Y0();
}
public final void X0(int i, Object obj) {
net.dinglisch.android.taskerm.c Q3;
if (obj == null || (Q3 = this.j.Q3()) == null) {
return;
}
if (obj instanceof String) {
Q3.k0(i, (String) obj);
} else if (obj instanceof Boolean) {
Q3.m1(i, ((Boolean) obj).booleanValue());
} else if (obj instanceof Integer) {
Q3.s1(i, ((Number) obj).intValue());
}
}
public final <T> void a1(r<T> rVar, oi.d<T> dVar) {
p.i(rVar, "<this>");
this.j.m0.R(rVar, dVar);
}
@Override
public String t(Resources resources, int i, int i2) {
p.i(resources, "resources");
return a1.A(resources, i, i2);
}
}