正在查看: 050 IP Phone v2.3.0 应用的 AdvanceSettingActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 050 IP Phone v2.3.0 应用的 AdvanceSettingActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.ntt.voip.android.com050plus.setting;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.CheckBox;
import androidx.activity.result.ActivityResult;
import androidx.activity.result.ActivityResultCallback;
import androidx.activity.result.ActivityResultLauncher;
import androidx.activity.result.contract.ActivityResultContracts;
import androidx.annotation.Nullable;
import androidx.fragment.app.FragmentActivity;
import k4.s;
import t4.p;
import t4.z;
import y3.g;
public class AdvanceSettingActivity extends BasicOssActivity {
private s v0;
private final String u0 = "AdvanceSettingActivity";
private ActivityResultLauncher<Intent> w0 = registerForActivityResult(new ActivityResultContracts.StartActivityForResult(), new b());
class a implements View.OnClickListener {
a() {
}
@Override
public void onClick(View view) {
p.s(AdvanceSettingActivity.this, 11, null);
}
}
class b implements ActivityResultCallback<ActivityResult> {
b() {
}
public void onActivityResult(ActivityResult activityResult) {
AdvanceSettingActivity.this.X0(1, activityResult.getResultCode(), activityResult.getData());
}
}
class c implements DialogInterface.OnClickListener {
c() {
}
@Override
public void onClick(DialogInterface dialogInterface, int i) {
FragmentActivity fragmentActivity = AdvanceSettingActivity.this;
String str = fragmentActivity.getResources().getStringArray(2130903089)[i];
j3.e.n(fragmentActivity, str);
j3.e.m(AdvanceSettingActivity.this, false);
((Button) AdvanceSettingActivity.this.findViewById(2131296720)).setText(fragmentActivity.getResources().getStringArray(2130903088)[i]);
z.h("AdvanceSettingActivity", "call hook mode changed. mode=[" + str + "]");
if (AdvanceSettingActivity.this.getString(com.oki_access.android.ims.call.d.e.d()).equals(str)) {
return;
}
if (!j3.e.g(AdvanceSettingActivity.this)) {
AdvanceSettingActivity.this.Y0();
AdvanceSettingActivity.this.U0(false);
} else {
if (j3.e.h(AdvanceSettingActivity.this)) {
return;
}
?? r52 = AdvanceSettingActivity.this;
j3.e.l(r52, ((AdvanceSettingActivity) r52).w0);
}
}
}
class d implements DialogInterface.OnClickListener {
d() {
}
@Override
public void onClick(DialogInterface dialogInterface, int i) {
AdvanceSettingActivity.this.startActivity(new Intent((Context) AdvanceSettingActivity.this, (Class<?>) OtherSettingActivity.class));
}
}
class e implements View.OnClickListener {
e() {
}
@Override
public void onClick(View view) {
CheckBox checkBox = (CheckBox) AdvanceSettingActivity.this.findViewById(2131296730);
checkBox.toggle();
AdvanceSettingActivity.this.v0.v(131097, checkBox.isChecked());
h4.d.h0(131097, checkBox.isChecked());
}
}
class f implements View.OnClickListener {
f() {
}
@Override
public void onClick(View view) {
CheckBox checkBox = (CheckBox) AdvanceSettingActivity.this.findViewById(2131296737);
checkBox.toggle();
AdvanceSettingActivity.this.v0.v(131098, checkBox.isChecked());
h4.d.h0(131098, checkBox.isChecked());
}
}
class g implements View.OnClickListener {
g() {
}
@Override
public void onClick(View view) {
CheckBox checkBox = (CheckBox) AdvanceSettingActivity.this.findViewById(2131296736);
checkBox.toggle();
AdvanceSettingActivity.this.v0.v(131095, checkBox.isChecked());
h4.d.h0(131095, checkBox.isChecked());
}
}
class h implements View.OnClickListener {
h() {
}
@Override
public void onClick(View view) {
CheckBox checkBox = (CheckBox) AdvanceSettingActivity.this.findViewById(2131296735);
checkBox.toggle();
AdvanceSettingActivity.this.v0.v(131096, checkBox.isChecked());
h4.d.h0(131096, checkBox.isChecked());
}
}
class i implements View.OnClickListener {
i() {
}
@Override
public void onClick(View view) {
CheckBox checkBox = (CheckBox) AdvanceSettingActivity.this.findViewById(2131296733);
checkBox.toggle();
k4.d.y(AdvanceSettingActivity.this, d4.f.O2, checkBox.isChecked());
AdvanceSettingActivity.this.findViewById(2131296732).setEnabled(checkBox.isChecked());
AdvanceSettingActivity.this.findViewById(2131296723).setEnabled(checkBox.isChecked());
StringBuilder sb = new StringBuilder();
sb.append("NetworkMonitor ");
sb.append(checkBox.isChecked() ? "ON" : "OFF");
z.h("AdvanceSettingActivity", sb.toString());
}
}
class j implements View.OnClickListener {
j() {
}
@Override
public void onClick(View view) {
CheckBox checkBox = (CheckBox) AdvanceSettingActivity.this.findViewById(2131296732);
checkBox.toggle();
k4.d.y(AdvanceSettingActivity.this, d4.f.P2, checkBox.isChecked());
}
}
class k implements View.OnClickListener {
k() {
}
@Override
public void onClick(View view) {
CheckBox checkBox = (CheckBox) AdvanceSettingActivity.this.findViewById(2131296734);
checkBox.toggle();
k4.d.y(AdvanceSettingActivity.this, d4.f.f127b3, checkBox.isChecked());
StringBuilder sb = new StringBuilder();
sb.append("NetworkMonitor(incoming) ");
sb.append(checkBox.isChecked() ? "ON" : "OFF");
z.h("AdvanceSettingActivity", sb.toString());
}
}
class l implements View.OnClickListener {
l() {
}
@Override
public void onClick(View view) {
p.s(AdvanceSettingActivity.this, 9, null);
}
}
class m implements View.OnClickListener {
m() {
}
@Override
public void onClick(View view) {
CheckBox checkBox = (CheckBox) AdvanceSettingActivity.this.findViewById(2131296731);
checkBox.toggle();
k4.d.y(AdvanceSettingActivity.this, d4.f.f188q4, checkBox.isChecked());
StringBuilder sb = new StringBuilder();
sb.append("SlideEndCallButton ");
sb.append(checkBox.isChecked() ? "ON" : "OFF");
z.h("AdvanceSettingActivity", sb.toString());
}
}
private Dialog R0() {
return new AlertDialog.Builder(this).setTitle(2131886840).setItems(2130903088, new c()).create();
}
private Dialog S0(String str) {
return new AlertDialog.Builder(this).setTitle("").setMessage(getString(2131886836, str)).setPositiveButton(com.oki_access.android.ims.call.d.e.G1(), (DialogInterface.OnClickListener) null).create();
}
private Dialog T0() {
return new AlertDialog.Builder(this).setMessage(2131886837).setPositiveButton(2131887450, new d()).create();
}
public void U0(boolean z) {
z.a("AdvanceSettingActivity", "fallbackCallHookModeToUnhook. isCallRedirectionAvailable: " + z);
j3.e.n(this, getString(com.oki_access.android.ims.call.d.e.d()));
String[] stringArray = getResources().getStringArray(2130903088);
String[] stringArray2 = getResources().getStringArray(2130903089);
if (stringArray == null || stringArray2 == null || stringArray.length != stringArray2.length) {
return;
}
for (int i8 = 0; i8 < stringArray2.length; i8++) {
if (getString(com.oki_access.android.ims.call.d.e.d()).equals(stringArray2[i8])) {
((Button) findViewById(2131296720)).setText(stringArray[i8]);
return;
}
}
}
private int V0(String str) {
String[] stringArray = getResources().getStringArray(2130903089);
for (int i8 = 0; i8 < stringArray.length; i8++) {
if (stringArray[i8].equals(str)) {
return i8;
}
}
return 0;
}
private String W0() {
String c8 = j3.e.c(this);
String[] stringArray = getResources().getStringArray(2130903088);
String[] stringArray2 = getResources().getStringArray(2130903089);
if (stringArray != null && stringArray2 != null && stringArray.length == stringArray2.length) {
for (int i8 = 0; i8 < stringArray2.length; i8++) {
if (c8.equals(stringArray2[i8])) {
return stringArray[i8];
}
}
}
return null;
}
public void X0(int i8, int i9, @Nullable Intent intent) {
if (1 != i8 || j3.e.h(this)) {
return;
}
Y0();
z.p("AdvanceSettingActivity", "User denied 'Call redirection role'. Fallback to unhook mode.");
U0(true);
}
public void Y0() {
String W0 = W0();
Bundle bundle = new Bundle();
bundle.putString("selected_call_hook_mode", W0);
p.s(this, 10, bundle);
}
@Override
protected g.b P() {
return g.b.COM0616;
}
@Override
protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
this.v0 = new s(this, "spitz.call", 2);
setContentView(2131492956);
((CheckBox) findViewById(2131296730)).setChecked(this.v0.a(131097));
((Button) findViewById(2131296721)).setOnClickListener(new e());
((CheckBox) findViewById(2131296737)).setChecked(this.v0.a(131098));
((Button) findViewById(2131296729)).setOnClickListener(new f());
((CheckBox) findViewById(2131296736)).setChecked(this.v0.a(131095));
((Button) findViewById(2131296728)).setOnClickListener(new g());
((CheckBox) findViewById(2131296735)).setChecked(this.v0.a(131096));
((Button) findViewById(2131296727)).setOnClickListener(new h());
((CheckBox) findViewById(2131296733)).setChecked(k4.d.h(this, d4.f.O2));
((Button) findViewById(2131296724)).setOnClickListener(new i());
CheckBox checkBox = (CheckBox) findViewById(2131296732);
checkBox.setChecked(k4.d.h(this, d4.f.P2));
boolean h8 = k4.d.h(this, d4.f.O2);
checkBox.setEnabled(h8);
Button button = (Button) findViewById(2131296723);
button.setEnabled(h8);
button.setOnClickListener(new j());
if (!x3.a.q(this)) {
findViewById(2131296719).setVisibility(8);
}
((CheckBox) findViewById(2131296734)).setChecked(k4.d.h(this, d4.f.f127b3));
((Button) findViewById(2131296725)).setOnClickListener(new k());
if (!x3.a.p(this)) {
findViewById(2131296718).setVisibility(8);
}
Button button2 = (Button) findViewById(2131296720);
button2.setText(getResources().getStringArray(2130903088)[V0(j3.e.c(this))]);
button2.setOnClickListener(new l());
((CheckBox) findViewById(2131296731)).setChecked(k4.d.h(this, d4.f.f188q4));
((Button) findViewById(2131296722)).setOnClickListener(new m());
Button button3 = (Button) findViewById(2131296726);
button3.setOnClickListener(new a());
Boolean[] d0 = OtherSettingActivity.d0(this);
Boolean[] b0 = OtherSettingActivity.b0(this);
if (!OtherSettingActivity.W(d0) && !OtherSettingActivity.W(b0)) {
button3.setVisibility(8);
}
j0();
}
@Override
public Dialog y(int i8, Bundle bundle, p pVar) {
switch (i8) {
case 9:
return R0();
case 10:
pVar.setCancelable(false);
return S0(bundle.getString("selected_call_hook_mode"));
case 11:
return T0();
default:
return super.y(i8, bundle, pVar);
}
}
}