正在查看: Tasker v6.5.11 应用的 EventEdit.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Tasker v6.5.11 应用的 EventEdit.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package net.dinglisch.android.taskerm;
import android.content.ActivityNotFoundException;
import android.content.DialogInterface;
import android.content.Intent;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.AdapterView;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.SeekBar;
import android.widget.Spinner;
import android.widget.SpinnerAdapter;
import com.joaomgcd.taskerm.spawn.RFactory;
import java.util.ArrayList;
import java.util.List;
import net.dinglisch.android.taskerm.FileSelect;
import net.dinglisch.android.taskerm.HTMLView;
import net.dinglisch.android.taskerm.ri;
public class EventEdit extends HasArgsEdit implements SensorEventListener, AdapterView.OnItemSelectedListener, pf.a {
private static int A0 = 2;
private static int B0 = 3;
private static int z0;
private Spinner m0;
private CheckBox n0;
private LinearLayout o0;
private LinearLayout p0;
private float q0;
private float r0;
private float s0;
private List<Float> t0;
private List<Float> u0;
private List<Float> v0;
private k2 x0;
private int w0 = B0;
public qf.i y0 = new qf.i(this);
class a extends Handler {
final k2 a;
a(k2 k2Var) {
this.a = k2Var;
}
@Override
public void handleMessage(Message message) {
if (message.what == 1) {
if (EventEdit.this.D == -1) {
r7.G("EventEdit", "noteCatSelect handleMessage: editing arg -1");
return;
}
String str = ji.b[message.getData().getInt("index")];
EventEdit eventEdit = EventEdit.this;
dq.o(eventEdit.v[eventEdit.D], str, "/");
k2 k2Var = this.a;
EventEdit eventEdit2 = EventEdit.this;
int i = eventEdit2.D;
k2Var.k0(i, dq.m1(eventEdit2.v[i]));
}
}
}
class b extends Handler {
final k2 a;
b(k2 k2Var) {
this.a = k2Var;
}
@Override
public void handleMessage(Message message) {
if (message.what == 1) {
if (EventEdit.this.D == -1) {
r7.G("EventEdit", "taskSelect handleMessage: editing arg -1");
return;
}
String str = EventEdit.this.L0().v().get(message.getData().getInt("index"));
this.a.k0(EventEdit.this.D, str);
EventEdit eventEdit = EventEdit.this;
eventEdit.v[eventEdit.D].setText(str);
}
}
}
class c extends Handler {
c() {
}
@Override
public void handleMessage(Message message) {
if (message.what != 0) {
EventEdit.this.K2();
return;
}
try {
EventEdit.this.startActivityForResult(ji.j(), -1);
} catch (ActivityNotFoundException unused) {
dq.a0(EventEdit.this, 2131887775, new Object[0]);
EventEdit.this.K2();
}
}
}
class d extends Handler {
d() {
}
@Override
public void handleMessage(Message message) {
if (message.what == 0) {
MyAccessibilityService.v(EventEdit.this);
} else {
EventEdit.this.K2();
}
}
}
class e implements DialogInterface.OnDismissListener {
final d2 i;
final View q;
e(d2 d2Var, View view) {
this.i = d2Var;
this.q = view;
}
@Override
public void onDismiss(DialogInterface dialogInterface) {
if (EventEdit.this.N2(this.i.w())) {
this.q.setVisibility(0);
}
EventEdit.this.z = null;
}
}
class f implements DialogInterface.OnCancelListener {
final View i;
f(View view) {
this.i = view;
}
@Override
public void onCancel(DialogInterface dialogInterface) {
if (EventEdit.this.x0 == null) {
EventEdit.this.finish();
} else {
this.i.setVisibility(0);
}
EventEdit.this.z = null;
}
}
class g extends Handler {
g() {
}
@Override
public void handleMessage(Message message) {
if (message.what == 0) {
EventEdit.this.b3(1, 1);
}
}
}
public void K2() {
Intent intent = new Intent();
intent.putExtra("scntxt", this.x0.U(0).c0());
setResult(-1, intent);
finish();
}
private void M2(int i) {
k2 k2Var = this.x0;
if (k2Var == null) {
MyActivity.L(this, "handleChoosePress tEvent null");
return;
}
this.v[i].requestFocus();
String O = j2.O(k2Var.j(), i);
if (O.equals("pkgName")) {
this.D = i;
startActivityForResult(AppSelect.G0(this, true, false, false, false, true, false, null, null), 8);
} else if (O.equals("pkgLabel")) {
this.D = i;
startActivityForResult(AppSelect.G0(this, true, false, false, false, true, false, null, null), 9);
} else if (O.contains("btn")) {
this.D = i;
c2(2131887398);
} else if (O.contains("bta")) {
this.D = i;
c2(2131887397);
} else if (O.contains("simc")) {
this.y0.B2(this.v, i);
} else if (O.equals("inpval")) {
this.y0.S0(this.v, i);
} else if (O.equals("p") || O.equals("sms")) {
eh.w(this, this.v[i], true);
this.D = i;
} else if (O.equals("ncat")) {
this.D = i;
k2(new a(k2Var));
} else if (O.equals("m")) {
o2(new b(k2Var), L0());
} else if (O.equals("acc")) {
dq.h0(this, 2131888232, new Object[0]);
} else if (O.equals("f")) {
g2(i, FileSelect.e.File, null);
} else if (O.equals("fme")) {
this.y0.E2(i, M0(0));
} else if (O.equals("sset")) {
this.y0.X2(this.V, this.v);
} else if (O.equals("nfctid")) {
this.y0.V2(this.v);
} else if (O.equals("nfctcont")) {
this.y0.W2(this.v);
} else if (O.equals("apppakc")) {
this.y0.E0(this.v, i);
} else if (O.equals("notcatoreo")) {
this.y0.X0(this.v, i);
} else if (O.equals("buttprsti")) {
this.y0.I0(this.v, i);
}
if (this.y0.D2(i)) {
this.y0.t2(new qf.b(i, k2Var));
}
}
public boolean N2(int i) {
if (i != -1) {
this.y0.y2(i);
this.y0.h2(i);
com.joaomgcd.taskerm.util.k4.X(this, i);
k2 k2Var = this.x0;
if (k2Var == null) {
this.x0 = new k2(i);
} else {
k2Var.q1(i);
}
invalidateOptionsMenu();
if (this.x0.Y() == 0 && j2.B(i) == null && !j2.c(i)) {
K2();
return false;
}
if ((i == 3001 || i == 3000) && !this.w.contains("accMax")) {
oi.h(this, 2131891282, 2131887144);
} else if (i == 201) {
this.y0.Q2();
} else if (i == 2079) {
this.y0.S2();
} else if (this.y0.j2(i)) {
this.y0.p2(this.x0);
}
W2(-1);
this.y0.q2(this.x0, null);
}
return true;
}
private void P2(int i) {
this.v[i].requestFocus();
if ((this.x0.j() == 3050 || this.x0.j() == 3060) && i == 0) {
p2(2131887421, false, this.x0, null);
} else {
p2(2131887420, false, this.x0, null);
}
}
public void R2(SensorEvent sensorEvent) {
float[] fArr = sensorEvent.values;
float f2 = fArr[0];
this.q0 = f2;
float f3 = fArr[1];
this.r0 = f3;
float f4 = fArr[2];
this.s0 = f4;
if (this.w0 != z0 || f2 == 0.0f || f3 == 0.0f || f4 == 0.0f) {
return;
}
dq.j0(this, 2131891229, new Object[0]);
T2();
this.w0 = A0;
}
private boolean S2() {
try {
if (!d3()) {
return false;
}
V2();
k2 k2Var = this.x0;
if (k2Var != null && j2.Y(k2Var) && MyAccessibilityService.a() && !MyAccessibilityService.p()) {
X2();
return false;
}
k2 k2Var2 = this.x0;
if (k2Var2 != null && j2.Z(k2Var2.j()) && !ji.v()) {
a3();
return false;
}
k2 k2Var3 = this.x0;
if (k2Var3 == null || k2Var3.j() != 2079 || com.joaomgcd.taskerm.util.e5.R0(this).B()) {
K2();
return true;
}
this.y0.Q(com.joaomgcd.taskerm.dialog.a.m3(this));
return false;
} catch (NullPointerException unused) {
r7.f("EventEdit", "saveAndExit: npe");
return false;
}
}
private void T2() {
dq.L3(this, 50L);
this.t0.add(Float.valueOf(this.q0));
this.u0.add(Float.valueOf(this.r0));
this.v0.add(Float.valueOf(this.s0));
}
private void U2(boolean z) {
SensorManager D = this.y0.D();
if (D == null) {
dq.a0(this, 2131887720, new Object[0]);
return;
}
Sensor defaultSensor = D.getDefaultSensor(1);
if (defaultSensor == null) {
dq.a0(this, 2131887856, vh.g(this, 2131891112, new Object[0]));
return;
}
if (!z) {
this.w0 = B0;
this.y0.d0(D, this);
} else {
if (!this.y0.K(D, this, defaultSensor, 0)) {
dq.a0(this, 2131887856, vh.g(this, 2131891112, new Object[0]));
return;
}
this.t0 = new ArrayList();
this.u0 = new ArrayList();
this.v0 = new ArrayList();
this.w0 = z0;
}
}
private void V2() {
int intValue;
this.x0.y1(this.m0.getSelectedItemPosition());
this.x0.r1(this.n0.isChecked());
int j = this.x0.j();
if (this.y0.V1()) {
this.x0.o(K0());
}
int i = 0;
while (i < this.x0.Y()) {
String m1 = dq.m1(this.v[i]);
int p0 = this.x0.p0(i);
if (p0 == 0) {
if (j2.V(getResources(), j, i, this.x0) != null) {
intValue = this.V[i].getSelectedItemPosition();
} else if (this.y0.J2(i)) {
intValue = this.P[i].getProgress();
} else if (m1.length() == 0) {
intValue = (j == 8 && i == 1) ? -1 : 0;
} else {
Integer E3 = dq.E3(m1);
if (E3 == null) {
this.x0.x(i).L(m1);
intValue = Integer.MAX_VALUE;
} else {
intValue = E3.intValue();
}
}
if (intValue != Integer.MAX_VALUE) {
this.x0.x1(i, intValue);
}
} else if (p0 == 1) {
this.x0.k0(i, m1);
} else if (p0 != 2) {
if (p0 == 3) {
this.x0.u1(i, this.U[i].isChecked());
} else if (p0 != 5) {
r7.k("EventEdit", "edit: setEventFromUI: bad arg type");
}
}
i++;
}
}
private void W2(int r26) {
throw new UnsupportedOperationException("Method not decompiled: net.dinglisch.android.taskerm.EventEdit.W2(int):void");
}
private void X2() {
TextBoxDialogFragment.F(this, new d(), 2131887405, vh.g(this, this.x0.j() == 2000 ? 2131887260 : 2131887259, new Object[0]), 2131886891, 2131886889, -1, 0).E(this);
}
private void Y2() {
View findViewById = findViewById(2131296767);
d2 d2Var = new d2(this);
k2 k2Var = this.x0;
if (k2Var != null) {
d2Var.A(k2Var.j());
}
k2 k2Var2 = this.x0;
if (k2Var2 == null) {
d2Var.x(true);
} else {
d2Var.y(false, j2.q(k2Var2.j()));
}
d2Var.setOnDismissListener(new e(d2Var, findViewById));
d2Var.setOnCancelListener(new f(findViewById));
findViewById.setVisibility(4);
this.y0.z2();
d2Var.show();
this.z = d2Var;
}
private void Z2() {
sp.t0(this, new g()).E(this);
}
private void a3() {
TextBoxDialogFragment.F(this, new c(), 2131887506, vh.g(this, 2131887267, new Object[0]), 2131886891, 2131886889, -1, 0).E(this);
}
public void b3(int i, int i2) {
Intent intent = new Intent(this, (Class<?>) Settings.class);
intent.putExtra("tno", i);
intent.putExtra("flags", i2);
startActivity(intent);
}
private boolean d3() {
Integer E3;
int j = this.x0.j();
if (!c3()) {
return false;
}
for (int i = 0; i < this.x0.Y(); i++) {
String str = dq.m1(this.Q[i]) + " ";
String m1 = dq.m1(this.v[i]);
int p0 = this.x0.p0(i);
if (p0 == 0) {
if (this.y0.J2(i)) {
m1 = Integer.toString(this.P[i].getProgress());
}
if (j2.V(getResources(), j, i, this.x0) == null) {
if (m1.length() != 0) {
E3 = dq.E3(m1);
} else {
if (j2.E(j, i)) {
return dq.a0(this, 2131887924, str);
}
E3 = 0;
}
if (E3 != null) {
int F = j2.F(j, i);
int G = j2.G(j, i);
if (E3.intValue() < G || E3.intValue() > F) {
return dq.b0(this, str + vh.g(this, 2131886183, new Object[0]) + " (" + G + "-" + F + ")", new Object[0]);
}
} else {
continue;
}
} else {
continue;
}
} else if (p0 == 1) {
if (m1.length() == 0 && (j2.e0(j, i) || (j == 3050 && dq.m1(this.v[0]).equals(kq.I0(77))))) {
dq.a0(this, 2131887835, str);
return false;
}
if (j == 3000 && !j2.a0(dq.m1(this.v[1]), new ArrayList(), new ArrayList(), new ArrayList())) {
dq.a0(this, 2131887799, new Object[0]);
return false;
}
} else if (p0 == 5 && !this.x0.a(i).y()) {
return dq.a0(this, 2131887851, new Object[0]);
}
}
String m12 = dq.m1(this.v[0]);
if ((j != 3050 && j != 3060) || !kq.S0(m12) || kq.U0(m12)) {
return this.y0.M2();
}
dq.a0(this, 2131890307, new Object[0]);
return false;
}
public k2 L2() {
return this.x0;
}
@Override
public b5 O0() {
return L2();
}
public void O2() {
float f2;
float f3;
float f4;
dq.L3(this, 50L);
U2(false);
StringBuilder sb = new StringBuilder(1024);
float f5 = this.w.getFloat("accMR", 3.5f);
int i = 0;
float f6 = 0.0f;
float f7 = 0.0f;
float f8 = 0.0f;
while (true) {
if (i < this.t0.size()) {
float floatValue = this.t0.get(i).floatValue();
float floatValue2 = this.u0.get(i).floatValue();
float floatValue3 = this.v0.get(i).floatValue();
if (i > 0) {
f2 = Math.abs(floatValue - f6);
f3 = Math.abs(floatValue2 - f7);
f4 = Math.abs(floatValue3 - f8);
} else {
f2 = 0.0f;
f3 = 0.0f;
f4 = 0.0f;
}
if (i != 0 && f2 < f5 && f3 < f5 && f4 < f5) {
dq.a0(this, 2131887800, new Object[0]);
break;
}
if (i > 0) {
sb.append(",\n");
}
sb.append(dq.p0(this.t0.get(i).floatValue(), 2));
sb.append(", ");
sb.append(dq.p0(this.u0.get(i).floatValue(), 2));
sb.append(", ");
sb.append(dq.p0(this.v0.get(i).floatValue(), 2));
i++;
f6 = floatValue;
f7 = floatValue2;
f8 = floatValue3;
} else if (sb.length() > 1024) {
dq.a0(this, 2131887802, new Object[0]);
} else {
dq.j0(this, 2131887801, Integer.valueOf(i));
this.x0.k0(1, sb.toString());
this.v[1].setText(sb.toString());
}
}
this.t0 = null;
this.u0 = null;
this.v0 = null;
}
public boolean Q2() {
ze.b e1;
k2 k2Var = this.x0;
if (k2Var == null || (e1 = k2Var.e1()) == null) {
return false;
}
return e1.B(this);
}
@Override
public void U1(int i) {
W2(i);
}
protected boolean c3() {
if (Z0()) {
return super.C2(!Q2(), false, true);
}
return true;
}
@Override
public void g(com.joaomgcd.taskerm.util.e5 e5Var, com.joaomgcd.taskerm.util.t6 t6Var) {
if (this.y0.w2(e5Var, t6Var)) {
return;
}
Y2();
}
@Override
public void onAccuracyChanged(Sensor sensor, int i) {
}
@Override
public void onActivityResult(int i, int i2, Intent intent) {
if (this.y0.z0(i, i2, intent) || this.y0.r2(i, i2, intent) || super.n1(i, i2, intent)) {
return;
}
if (eh.l(i)) {
if (eh.n(i, i2, intent, getContentResolver(), this.v[this.D], 2, false)) {
return;
}
dq.n0(this, 2131887773, new Object[0]);
return;
}
k2 k2Var = this.x0;
if (k2Var == null) {
return;
}
if (i != 1) {
if (i == 7) {
if (i2 == -1) {
W0(intent.getExtras().getString("path"), j2.O(k2Var.j(), this.D), false, false);
return;
}
return;
} else {
if (i == 6 && i2 == -1) {
g1 g1Var = new g1(new qi(intent.getBundleExtra("ssc")));
if (g1Var.d1() == 0) {
k2Var.a1(this.D).q();
} else {
k2Var.t1(this.D, g1Var.p1());
}
W2(this.D);
return;
}
return;
}
}
this.D = 0;
if (i2 != -1) {
if (i2 == 0) {
r7.f("EventEdit", "Cancelled");
return;
}
r7.f("EventEdit", "R: " + i2);
return;
}
Bundle s = ri.s(intent);
if (s != null) {
if (!ri.i0(s)) {
dq.a0(this, 2131887879, new Object[0]);
return;
}
k2Var.v1(0, s);
ri.f0(k2Var, k2Var.j(), ri.c.Event);
W2(this.D);
W2(2);
W2(1);
}
}
@Override
public void onClick(View view) {
if (super.o1(view, this.x0)) {
if (this.J.equals(view)) {
r2(2131887421, false, this.x0, null, this.y0.i2(N0(this.x0)) ? this.y0.e2(this.x0.e1()) : null);
}
if (this.K.equals(view)) {
this.y0.R0(N0(this.x0));
return;
}
return;
}
for (int i = 0; i < 17; i++) {
if (view == this.Z[i]) {
this.y0.F2(this.x0, i);
}
if (view == this.c0[i]) {
k2 k2Var = this.x0;
if (k2Var == null) {
MyActivity.L(this, "onClick tEvent null");
return;
}
this.D = 0;
Intent G = ri.G(this, ri.c.Event, k2Var.a(0), k2Var.j(), null);
if (G != null) {
startActivityForResult(G, 1);
}
} else if (view == this.a0[i]) {
this.P[i].incrementProgressBy(1);
SeekBar seekBar = this.P[i];
onProgressChanged(seekBar, seekBar.getProgress(), true);
} else if (view == this.b0[i]) {
this.P[i].incrementProgressBy(-1);
SeekBar seekBar2 = this.P[i];
onProgressChanged(seekBar2, seekBar2.getProgress(), true);
} else if (view == this.e0[i]) {
M2(i);
} else if (view == this.f0[i]) {
P2(i);
} else if (view != this.X[i]) {
MyCheckBox myCheckBox = this.U[i];
if (view == myCheckBox && !this.y0.u2(i, myCheckBox.isChecked())) {
D1(i, false);
}
} else if (this.x0.p0(i) == 2) {
this.D = i;
boolean z = this.x0.j() == 2000;
net.dinglisch.android.taskerm.d a1 = this.x0.a1(i);
startActivityForResult(AppSelect.G0(this, false, false, false, false, z, false, null, a1.k() ? new g1(a1) : null), 6);
}
}
}
@Override
public void onCreate(Bundle bundle) {
super.p1(bundle, 2131493235);
G1(true, 2131891277, 2131890053);
setTitle(vh.g(this, 2131886725, new Object[0]));
this.p0 = (LinearLayout) findViewById(2131297264);
this.o0 = (LinearLayout) findViewById(2131296272);
t1(10, this.B ? 106479 : 73711);
for (int i = 0; i < 10; i++) {
this.Z[i].setOnClickListener(this);
this.c0[i].setOnClickListener(this);
this.a0[i].setOnClickListener(this);
this.b0[i].setOnClickListener(this);
this.U[i].setOnClickListener(this);
}
this.n0 = (CheckBox) findViewById(2131296270);
Spinner spinner = (Spinner) findViewById(2131297270);
this.m0 = spinner;
spinner.setAdapter((SpinnerAdapter) dq.f1(this, RFactory.layout.mysimple_list_item));
q1(false);
dq.M2(this, 2131297267, 2131891220);
dq.M2(this, 2131296271, 2131889978);
Bundle bundleExtra = bundle == null ? getIntent().getBundleExtra("scntxt") : bundle.getBundle("tevt");
if (bundleExtra != null) {
this.x0 = new k2(new qi(bundleExtra));
W2(-1);
} else if (bundle == null) {
Y2();
}
k2 k2Var = this.x0;
if (!((k2Var == null || j2.q(k2Var.j()) != 999) ? false : lp.e(this, 1, 2131890872, 1))) {
lp.e(this, 0, 2131890873, 2);
}
super.Z1(this, 5);
this.y0.I();
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
net.dinglisch.android.taskerm.a.M(this, 8, 2131891165, menu);
k2 k2Var = this.x0;
if (k2Var != null) {
if (k2Var.g1() != null) {
net.dinglisch.android.taskerm.a.v(this, 7777, menu);
}
int j = this.x0.j();
if (j == 3000 || j == 3001) {
net.dinglisch.android.taskerm.a.t(this, 564, menu);
}
}
return super.r1(menu, 2131888880, 2131888850);
}
@Override
public void onDestroy() {
super.onDestroy();
this.m0 = null;
this.n0 = null;
this.o0 = null;
this.p0 = null;
this.t0 = null;
this.u0 = null;
this.v0 = null;
this.x0 = null;
this.y0.J();
}
@Override
public void onItemSelected(AdapterView<?> adapterView, View view, int i, long j) {
int j2 = this.x0.j();
int i2 = 0;
while (true) {
if (i2 >= this.x0.Y()) {
i2 = -1;
break;
} else if (adapterView.equals(this.V[i2])) {
break;
} else {
i2++;
}
}
if (j2 == 447) {
W2(2);
}
this.y0.F1(i2, i);
}
@Override
public boolean onKeyDown(int i, KeyEvent keyEvent) {
if (i != 4) {
k2 k2Var = this.x0;
if (k2Var == null) {
r7.k("EventEdit", "onKeyDown: null tEvent");
} else if (keyEvent == null) {
r7.k("EventEdit", "onKeyDown: null event");
} else if (k2Var.j() == 3000 && (i == 27 || i == 5 || i == 84 || i == 82 || i == 25 || i == 24)) {
if (keyEvent.getRepeatCount() == 0) {
if (this.w0 == A0) {
T2();
}
} else if (keyEvent.getRepeatCount() == 1) {
if (this.w0 == B0) {
U2(true);
} else {
O2();
}
}
return true;
}
} else if (!S2()) {
return true;
}
return super.onKeyDown(i, keyEvent);
}
@Override
public void onNothingSelected(AdapterView<?> adapterView) {
}
@Override
public boolean onOptionsItemSelected(MenuItem menuItem) {
int itemId = menuItem.getItemId();
if (itemId == 6) {
setResult(0, null);
finish();
return true;
}
if (itemId == 8) {
Y2();
return true;
}
if (itemId == 564) {
if (sp.r0(this)) {
Z2();
} else {
b3(1, 1);
}
return true;
}
if (itemId == 7777) {
HTMLView.H0(this, HasArgsEdit.P0("eh", this.x0.g1()), -1, HTMLView.g.Inform);
return true;
}
if (itemId != 16908332) {
return s1(menuItem, "help/eh_index.html", "activity_eventedit.html");
}
S2();
return true;
}
@Override
protected void onPause() {
if (this.w0 != B0) {
U2(false);
}
super.onPause();
this.y0.v2();
}
@Override
public void onProgressChanged(SeekBar seekBar, int i, boolean z) {
if (z) {
seekBar.requestFocus();
int i2 = 0;
while (true) {
if (i2 >= 7) {
break;
}
if (seekBar.equals(this.P[i2])) {
try {
this.R[i2].setText(j2.M(this.x, this.x0.j(), i2, seekBar.getProgress()));
break;
} catch (Throwable th2) {
pg.w0.X0(this, th2);
}
} else {
i2++;
}
}
}
for (int i3 = 0; i3 < this.x0.Y(); i3++) {
this.y0.G1(i3, i);
}
}
@Override
public void onRequestPermissionsResult(int i, String[] strArr, int[] iArr) {
super.onRequestPermissionsResult(i, strArr, iArr);
this.y0.A0(i, strArr, iArr);
}
@Override
protected void onResume() {
super.onResume();
this.y0.x2();
}
@Override
protected void onSaveInstanceState(Bundle bundle) {
super.onSaveInstanceState(bundle);
if (this.x0 != null) {
V2();
bundle.putBundle("tevt", this.x0.U(0).c0());
}
}
@Override
public void onSensorChanged(final SensorEvent sensorEvent) {
this.y0.r(new Runnable() {
@Override
public final void run() {
EventEdit.this.R2(sensorEvent);
}
});
}
@Override
public void onStartTrackingTouch(SeekBar seekBar) {
EditText N0 = N0(this.x0);
if (D2(N0)) {
N0.clearFocus();
}
}
@Override
public void onStopTrackingTouch(SeekBar seekBar) {
}
@Override
protected boolean w0() {
return this.y0.M1();
}
@Override
public boolean y0() {
return this.y0.V1();
}
}