ComeetChat v1.866866806590版本的 MD5 值为:4a7461802cd62adce19de75377dd7ca7
以下内容为反编译后的 d.java 源代码,内容仅作参考
package net.dinglisch.android.tasker;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import androidx.core.app.NotificationCompat;
import b.a.l;
import c.f.b.k;
import c.s;
import com.joaomgcd.taskerm.notification.aw;
import com.joaomgcd.taskerm.notification.g;
import com.joaomgcd.taskerm.util.an;
import com.joaomgcd.taskerm.util.bz;
import com.joaomgcd.taskerm.util.cr;
import net.danlew.android.joda.R;
import net.dinglisch.android.tasker.e;
public final class d {
public static final a f10849a = new a(null);
public static final l<cr> a(Context context, InputToggleWifi inputToggleWifi) {
return f10849a.a(context, inputToggleWifi);
}
public static final class a {
static final class C0286a extends c.f.b.l implements c.f.a.b<Intent, s> {
final String f10850a;
final String f10851b;
C0286a(String str, String str2) {
super(1);
this.f10850a = str;
this.f10851b = str2;
}
@Override
public s invoke(Intent intent) {
a(intent);
return s.f2131a;
}
public final void a(Intent intent) {
k.b(intent, "receiver$0");
intent.setComponent(new ComponentName("com.joaomgcd.taskersettings", "com.joaomgcd.taskersettings.ServiceSettings"));
intent.putExtra("com.joaomgcd.taskersettings.EXTRA_SETTING_KEY", this.f10850a);
intent.putExtra("com.joaomgcd.taskersettings.EXTRA_SETTING_VALUE", this.f10851b);
}
}
public static final class b extends c.f.b.l implements c.f.a.b<aw, s> {
final Context f10852a;
b(Context context) {
super(1);
this.f10852a = context;
}
@Override
public s invoke(aw awVar) {
a(awVar);
return s.f2131a;
}
public final void a(aw awVar) {
k.b(awVar, "receiver$0");
String a2 = an.a(R.string.toggle_wifi_api_29, this.f10852a, new Object[0]);
awVar.a(new com.joaomgcd.taskerm.notification.an("togglewifiapi29", a2, an.a(R.string.toggle_wifi_api_29_notification_channel_description, this.f10852a, new Object[0]), 5, null, new long[]{0, 1000, 200, 1000, 200, 1000}, false, null, false, null, null, 2000, null));
awVar.a(a2);
awVar.a((CharSequence) an.a(R.string.google_changed_way_android_works_apps_target_api_29, this.f10852a, new Object[0]));
awVar.u().add(new g(this.f10852a, "https://issuetracker.google.com/issues/128554616", true, "Check Issue"));
awVar.u().add(new g(this.f10852a, "https://tasker.joaoapps.com/userguide/en/target_api.html ", true, "Target API?"));
bz.d(this.f10852a, true);
}
}
private a() {
}
public a(c.f.b.g gVar) {
this();
}
public final l<cr> a(Context context, InputDisplayDensity inputDisplayDensity) {
l<cr> a2;
k.b(context, "context");
k.b(inputDisplayDensity, "input");
String a3 = an.a(R.string.an_display_density, context, new Object[0]);
String string = context.getString(R.string.cant_change_display_density);
k.a((Object) string, "context.getString(R.stri…t_change_display_density)");
a2 = e.a(context, a3, "DisplayDensity", inputDisplayDensity, "change the display size setting", string, (r22 & 64) != 0 ? 3 : 0, (r22 & 128) != 0 ? (Class) null : null, (r22 & 256) != 0 ? new e.a(inputDisplayDensity, "DisplayDensity") : null, (r22 & NotificationCompat.FLAG_GROUP_SUMMARY) != 0 ? e.b.f10855a : null);
return a2;
}
public final l<cr> a(Context context, InputToggleWifi inputToggleWifi) {
l<cr> a2;
k.b(context, "context");
k.b(inputToggleWifi, "input");
String a3 = an.a(R.string.an_wifi_status, context, new Object[0]);
String string = context.getString(R.string.cant_toggle_wifi);
k.a((Object) string, "context.getString(R.string.cant_toggle_wifi)");
a2 = e.a(context, a3, "ToggleWifi", inputToggleWifi, "toggle wifi", string, (r22 & 64) != 0 ? 3 : 4, (r22 & 128) != 0 ? (Class) null : null, (r22 & 256) != 0 ? new e.a(inputToggleWifi, "ToggleWifi") : null, (r22 & NotificationCompat.FLAG_GROUP_SUMMARY) != 0 ? e.b.f10855a : new b(context));
return a2;
}
public final l<cr> a(Context context, InputConnectToWifi inputConnectToWifi) {
l<cr> a2;
k.b(context, "context");
k.b(inputConnectToWifi, "input");
String a3 = an.a(R.string.an_connect_to_wifi, context, new Object[0]);
String string = context.getString(R.string.cant_connect_to_wifi);
k.a((Object) string, "context.getString(R.string.cant_connect_to_wifi)");
a2 = e.a(context, a3, "ConnectToWifi", inputConnectToWifi, "connect to wifi", string, (r22 & 64) != 0 ? 3 : 6, (r22 & 128) != 0 ? (Class) null : null, (r22 & 256) != 0 ? new e.a(inputConnectToWifi, "ConnectToWifi") : null, (r22 & NotificationCompat.FLAG_GROUP_SUMMARY) != 0 ? e.b.f10855a : null);
return a2;
}
public final l<cr> a(Context context, InputToggleBackCompat inputToggleBackCompat) {
l<cr> a2;
k.b(context, "context");
k.b(inputToggleBackCompat, "input");
String a3 = an.a(R.string.an_camera, context, new Object[0]);
String string = context.getString(R.string.cant_toggle_camera);
k.a((Object) string, "context.getString(R.string.cant_toggle_camera)");
a2 = e.a(context, a3, "ToggleCamera", inputToggleBackCompat, "toggle camera", string, (r22 & 64) != 0 ? 3 : 5, (r22 & 128) != 0 ? (Class) null : null, (r22 & 256) != 0 ? new e.a(inputToggleBackCompat, "ToggleCamera") : null, (r22 & NotificationCompat.FLAG_GROUP_SUMMARY) != 0 ? e.b.f10855a : null);
return a2;
}
public final l<cr> a(Context context, InputRunShell inputRunShell) {
l<cr> a2;
k.b(context, "context");
k.b(inputRunShell, "input");
String a3 = an.a(R.string.an_run_shell, context, new Object[0]);
String string = context.getString(R.string.cant_run_shell_with_tasker_settings);
k.a((Object) string, "context.getString(R.stri…ell_with_tasker_settings)");
a2 = e.a(context, a3, "RunShell", inputRunShell, "run shell with Tasker Settings", string, (r22 & 64) != 0 ? 3 : 7, (r22 & 128) != 0 ? (Class) null : OutputRunShell.class, (r22 & 256) != 0 ? new e.a(inputRunShell, "RunShell") : null, (r22 & NotificationCompat.FLAG_GROUP_SUMMARY) != 0 ? e.b.f10855a : null);
return a2;
}
public final l<cr> a(Context context, InputOpenFile inputOpenFile) {
l<cr> a2;
k.b(context, "context");
k.b(inputOpenFile, "input");
String a3 = an.a(R.string.an_view_file, context, new Object[0]);
String string = context.getString(R.string.cant_run_open_file_with_tasker_settings);
k.a((Object) string, "context.getString(R.stri…ile_with_tasker_settings)");
a2 = e.a(context, a3, "OpenFile", inputOpenFile, "Open File with Tasker Settings", string, (r22 & 64) != 0 ? 3 : 8, (r22 & 128) != 0 ? (Class) null : OutputOpenFile.class, (r22 & 256) != 0 ? new e.a(inputOpenFile, "OpenFile") : null, (r22 & NotificationCompat.FLAG_GROUP_SUMMARY) != 0 ? e.b.f10855a : null);
return a2;
}
public final l<cr> a(Context context, String str, String str2) {
l<cr> a2;
k.b(context, "context");
k.b(str, "key");
k.b(str2, "value");
String a3 = an.a(R.string.an_custom_setting, context, new Object[0]);
String string = context.getString(R.string.cant_run_custom_setting_tasker_settings);
k.a((Object) string, "context.getString(R.stri…_setting_tasker_settings)");
a2 = e.a(context, a3, "ChangeSetting", null, "change custom setting with Tasker Settings", string, (r22 & 64) != 0 ? 3 : 3, (r22 & 128) != 0 ? (Class) null : null, (r22 & 256) != 0 ? new e.a(null, "ChangeSetting") : new C0286a(str, str2), (r22 & NotificationCompat.FLAG_GROUP_SUMMARY) != 0 ? e.b.f10855a : null);
return a2;
}
}
}