ComeetChat v1.866866806590版本的 MD5 值为:4a7461802cd62adce19de75377dd7ca7
以下内容为反编译后的 g.java 源代码,内容仅作参考
package com.joaomgcd.taskerm.helper.actions;
import android.app.Activity;
import android.content.Context;
import android.os.Build;
import android.provider.Settings;
import android.widget.EditText;
import android.widget.Spinner;
import c.f.b.k;
import c.f.b.l;
import c.l.n;
import c.s;
import com.joaomgcd.taskerm.dialog.x;
import com.joaomgcd.taskerm.dialog.y;
import com.joaomgcd.taskerm.nfc.ActivityNFCTag;
import com.joaomgcd.taskerm.nfc.NFCTagTasker;
import com.joaomgcd.taskerm.util.al;
import com.joaomgcd.taskerm.util.bw;
import net.danlew.android.joda.R;
import net.dinglisch.android.taskerm.EventEdit;
import net.dinglisch.android.taskerm.am;
import net.dinglisch.android.taskerm.an;
import net.dinglisch.android.taskerm.ao;
public final class g extends com.joaomgcd.taskerm.helper.i<com.joaomgcd.taskerm.event.b<?, ?, ?, ?>, ao, am, com.joaomgcd.taskerm.event.a, EventEdit> {
@Override
public boolean h(int i, int i2) {
return false;
}
public static final class b extends l implements c.f.a.a<s> {
final c.f.a.b f7497b;
final EditText[] f7498c;
final int f7499d;
b(c.f.a.b bVar, EditText[] editTextArr, int i) {
super(0);
this.f7497b = bVar;
this.f7498c = editTextArr;
this.f7499d = i;
}
public static final class a extends l implements c.f.a.a<s> {
final String f7500a;
final b f7501b;
a(String str, b bVar) {
super(0);
this.f7500a = str;
this.f7501b = bVar;
}
@Override
public s invoke() {
a();
return s.f2131a;
}
public final void a() {
this.f7501b.f7498c[this.f7501b.f7499d].setText(this.f7500a);
}
}
@Override
public s invoke() {
a();
return s.f2131a;
}
public final void a() {
String str;
NFCTagTasker a2 = ActivityNFCTag.f8237b.a(g.this.d()).b().a();
if (a2 == null || (str = (String) this.f7497b.invoke(a2)) == null) {
return;
}
com.joaomgcd.taskerm.rx.h.e(new a(str, this));
}
}
public g(EventEdit eventEdit) {
super(eventEdit);
k.b(eventEdit, "activity");
}
@Override
public com.joaomgcd.taskerm.event.a g() {
return com.joaomgcd.taskerm.event.h.a();
}
@Override
public com.joaomgcd.taskerm.helper.l<ao, ?, EventEdit> a(EventEdit eventEdit, com.joaomgcd.taskerm.event.b<?, ?, ?, ?> bVar) {
k.b(eventEdit, "receiver$0");
k.b(bVar, "configurable");
return bVar.a((com.joaomgcd.taskerm.event.b<?, ?, ?, ?>) eventEdit);
}
public final void a(Spinner[] spinnerArr, EditText[] editTextArr) {
k.b(spinnerArr, "argSpinners");
k.b(editTextArr, "argEditTextViews");
com.joaomgcd.taskerm.helper.h.a(this, spinnerArr, editTextArr, false, null, 8, null);
}
private final void a(EditText[] editTextArr, int i, c.f.a.b<? super NFCTagTasker, String> bVar) {
a(new b(bVar, editTextArr, i));
}
public static final class c extends l implements c.f.a.b<NFCTagTasker, String> {
public static final c f7502a = new c();
c() {
super(1);
}
@Override
public final String invoke(NFCTagTasker nFCTagTasker) {
k.b(nFCTagTasker, "receiver$0");
return nFCTagTasker.getIdString();
}
}
public static final class d extends l implements c.f.a.b<NFCTagTasker, String> {
public static final d f7503a = new d();
d() {
super(1);
}
@Override
public final String invoke(NFCTagTasker nFCTagTasker) {
k.b(nFCTagTasker, "receiver$0");
return nFCTagTasker.getPayload();
}
}
public final void a(EditText[] editTextArr) {
k.b(editTextArr, "argEditTextViews");
a(editTextArr, 0, c.f7502a);
}
public final void b(EditText[] editTextArr) {
k.b(editTextArr, "argEditTextViews");
a(editTextArr, 1, d.f7503a);
}
public final boolean w() {
return k.a((Object) Settings.Secure.getString(((EventEdit) d()).getContentResolver(), "assist_gesture_any_assistant"), (Object) "1");
}
public final void x() {
String str = Build.MODEL;
if (str == null || !n.b((CharSequence) str, (CharSequence) "Pixel", false, 2, (Object) null) || w()) {
return;
}
if (bw.a.h(bw.f9512c, u(), 0, 2, null).g()) {
Settings.Secure.putString(((EventEdit) d()).getContentResolver(), "assist_gesture_any_assistant", "1");
} else {
a(y.a((Activity) d(), R.string.en_assist, R.string.dc_pixel_squeeze_assist, (com.joaomgcd.taskerm.util.i) null, 8, (Object) null), new a());
}
}
public static final class a<T> implements b.a.d.f<x> {
a() {
}
@Override
public final void accept(x xVar) {
k.b(xVar, "result");
if (xVar.d()) {
al.a((Context) g.this.d(), "https://www.xda-developers.com/android-q-google-pixel-2-pixel-3-remap-active-edge/", false, false, false, 14, (Object) null);
}
}
}
public final void y() {
com.joaomgcd.taskerm.helper.j.a(this, y.a((Activity) d(), R.string.en_volume_long_press, R.string.dc_volume_long_press_may_not_work, 0, false, (String) null, 56, (Object) null), (b.a.d.f) null, 2, (Object) null);
}
@Override
public String d(int i, int i2) {
return an.b(i, i2);
}
}