Wallkin v1.86859532693版本的 MD5 值为:c3099a56aae2c3706b2239994117cc3a
以下内容为反编译后的 ActivityAssistantActions.java 源代码,内容仅作参考
package com.joaomgcd.taskerm.util;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import cyanogenmod.app.ProfileManager;
import java.util.Iterator;
import java.util.List;
import net.danlew.android.joda.R;
import net.dinglisch.android.taskerm.ExecuteService;
import net.dinglisch.android.taskerm.ft;
import net.dinglisch.android.taskerm.fy;
import net.dinglisch.android.taskerm.fz;
public final class ActivityAssistantActions extends Activity {
static final class a extends c.f.b.l implements c.f.a.a<c.s> {
a() {
super(0);
}
@Override
public c.s invoke() {
a();
return c.s.f2131a;
}
public final void a() {
String action;
Intent intent = ActivityAssistantActions.this.getIntent();
if (intent == null || (action = intent.getAction()) == null) {
return;
}
StringBuilder sb = new StringBuilder();
sb.append("Received assistant request: ");
sb.append(action);
sb.append("; data: ");
Intent intent2 = ActivityAssistantActions.this.getIntent();
sb.append(intent2 != null ? intent2.getData() : null);
net.dinglisch.android.taskerm.bo.b("AssistantActions", sb.toString());
int hashCode = action.hashCode();
if (hashCode == -1173171990) {
if (action.equals("android.intent.action.VIEW")) {
ActivityAssistantActions.this.b();
}
} else if (hashCode == 1084288546 && action.equals("ACTION_COMMAND")) {
ActivityAssistantActions.this.a();
}
}
}
@Override
protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
com.joaomgcd.taskerm.rx.h.c(new a());
}
public final void a() {
Uri data;
String queryParameter;
Intent intent = getIntent();
if (intent == null || (data = intent.getData()) == null || (queryParameter = data.getQueryParameter("command")) == null) {
return;
}
al.x(this, queryParameter);
}
public final void b() {
Intent intent;
Uri data;
Object obj;
boolean z;
try {
intent = getIntent();
} finally {
try {
} finally {
}
}
if (intent == null || (data = intent.getData()) == null) {
return;
}
cm a2 = a(data);
if (a2 == null) {
a2 = b(data);
}
if (a2 != null) {
fy e2 = fy.e(this);
c.f.b.k.a((Object) e2, "TaskerData.getActive(this)");
Iterator<T> it = e2.u().keySet().iterator();
while (true) {
boolean z2 = false;
if (!it.hasNext()) {
obj = null;
break;
}
obj = it.next();
String str = (String) obj;
if (str != null) {
String lowerCase = str.toLowerCase();
c.f.b.k.a((Object) lowerCase, "(this as java.lang.String).toLowerCase()");
String a3 = a2.a();
if (a3 == null) {
throw new c.q("null cannot be cast to non-null type java.lang.String");
}
String lowerCase2 = a3.toLowerCase();
c.f.b.k.a((Object) lowerCase2, "(this as java.lang.String).toLowerCase()");
if (c.f.b.k.a((Object) lowerCase, (Object) lowerCase2)) {
z = true;
continue;
if (z) {
break;
}
}
}
z = false;
continue;
if (z) {
}
}
String str2 = (String) obj;
String str3 = str2;
if ((str3 == null || str3.length() == 0) ? true : true) {
if (!al.a(this, 2093, (int) R.string.en_assistant_action, (int) R.string.dc_assistant_actions_explained, "https://youtu.be/gGa4OfxmlzU")) {
return;
}
return;
}
ExecuteService.a(this, str2, a2.b(), a2.c());
}
}
private final cm a(Uri uri) {
b.a.l a2;
com.joaomgcd.taskerm.dialog.ae aeVar;
ft ftVar;
String m;
String queryParameter = uri.getQueryParameter(ProfileManager.EXTRA_PROFILE_NAME);
if (queryParameter == null || (a2 = com.joaomgcd.taskerm.dialog.y.a((Activity) this, (fz) fy.e(this), queryParameter, (List) null, true, 8, (Object) null)) == null || (aeVar = (com.joaomgcd.taskerm.dialog.ae) a2.b()) == null || (ftVar = (ft) aeVar.b()) == null || (m = ftVar.m()) == null) {
return null;
}
return new cm(queryParameter, m, null, null, 12, null);
}
private final cm b(Uri uri) {
String str;
String queryParameter = uri.getQueryParameter("task");
if (queryParameter != null) {
com.joaomgcd.taskerm.event.app.c.a(this, queryParameter);
String queryParameter2 = uri.getQueryParameter("par1");
String queryParameter3 = uri.getQueryParameter("par2");
String str2 = queryParameter;
c.l.i a2 = c.l.k.a(c(), str2, 0, 2, null);
if (a2 != null) {
c.l.f a3 = a2.c().a(1);
if (a3 == null || (str = a3.a()) == null) {
return null;
}
if (queryParameter2 == null) {
c.l.f a4 = a2.c().a(2);
queryParameter2 = a4 != null ? a4.a() : null;
}
if (queryParameter3 == null) {
c.l.f a5 = a2.c().a(3);
queryParameter3 = a5 != null ? a5.a() : null;
}
} else {
c.l.i a6 = c.l.k.a(d(), str2, 0, 2, null);
if (a6 != null) {
c.l.f a7 = a6.c().a(1);
if (a7 == null || (str = a7.a()) == null) {
return null;
}
if (queryParameter2 == null) {
c.l.f a8 = a6.c().a(2);
queryParameter2 = a8 != null ? a8.a() : null;
}
} else {
str = queryParameter;
}
}
return new cm(queryParameter, str, queryParameter2, queryParameter3);
}
return null;
}
private final c.l.k c() {
return new c.l.k("(.+?) with (.+) and (.+)");
}
private final c.l.k d() {
return new c.l.k("(.+?) with (.+)");
}
}