正在查看: Hyouka private v5.8.9 应用的 CallActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Hyouka private v5.8.9 应用的 CallActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.beint.project.screens;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import com.beint.project.Engine;
import com.beint.project.MainActivity;
import com.beint.project.call.CallHelper;
import com.beint.project.core.services.impl.ZangiConfigurationService;
import com.beint.project.core.signal.AVSession;
import com.beint.project.core.utils.AppUserManager;
import com.beint.project.core.utils.Constants;
import com.beint.project.core.utils.Log;
import com.beint.project.core.utils.NotificationCenter;
import com.beint.project.core.utils.ZangiPermissionUtils;
import com.beint.project.managers.LoginManager;
import com.beint.project.push.NotificationController;
import com.beint.project.screens.sms.AppModeNotifierActivity;
import com.beint.project.voice.managers.VoiceManager;
import com.fasterxml.jackson.core.util.MinimalPrettyPrinter;
import java.util.ArrayList;
public class CallActivity extends AppModeNotifierActivity {
boolean makeCaqll = false;
public void lambda$onCreate$0(boolean z, ArrayList arrayList, boolean z6) {
if (z6 && z) {
makeCall();
} else {
BaseScreen.showCustomToast((Context) this, 2131887125);
finish();
}
}
public fb.r lambda$onCreate$1(Object obj) {
if (!this.makeCaqll) {
makeCall();
}
return fb.r.a;
}
private void makeCall() {
this.makeCaqll = true;
Intent intent = getIntent();
Bundle extras = getIntent().getExtras();
if (extras != null) {
String string = extras.getString(Constants.CALLING_ACTION, "");
String userEmail = AppUserManager.INSTANCE.getUserEmail();
if (string != null && !string.isEmpty()) {
if (getIntent().getBooleanExtra(Constants.HIDE_MSG_NOTIFICATION, false)) {
NotificationController.INSTANCE.removeNotifications(string.substring(1));
}
if (getIntent().getBooleanExtra(Constants.HIDE_MSG_NOTIFICATION_FROM_MISSED, false)) {
NotificationController.INSTANCE.removeMissedNotifications();
}
if (!string.startsWith("+")) {
string = "+" + string;
}
CallHelper.makeCall(this, string, userEmail);
finish();
return;
}
}
Uri data = intent.getData();
if (data != null) {
String uri = data.toString();
AVSession activeSession = AVSession.Companion.getActiveSession();
if (data.getScheme() == null || !data.getScheme().equals("tel")) {
if (LoginManager.INSTANCE.getAutoLogin()) {
Engine.getInstance().getScreenService().getArguments().putInt("com.beint.project.CURRENT_TAB_POSITION", 1);
getScreenService().showFragment(HomeActivity.class);
ZangiConfigurationService zangiConfigurationService = ZangiConfigurationService.INSTANCE;
zangiConfigurationService.putBoolean("FROM_CALL_ACTIVITY", true);
zangiConfigurationService.putString("IDENTITI_CALL_NUMBER.com.beint.zangi.core.c.b", uri);
} else {
Intent intent2 = new Intent((Context) this, (Class<?>) MainActivity.class);
intent2.addFlags(268435456);
startActivity(intent2);
}
finish();
return;
}
String replace = uri.substring(4, uri.length()).replace(MinimalPrettyPrinter.DEFAULT_ROOT_VALUE_SEPARATOR, "").replace("-", "").replace("(", "").replace(")", "");
Log.i("Call_Activity", replace);
if (!LoginManager.INSTANCE.getAutoLogin()) {
Intent intent3 = new Intent((Context) this, (Class<?>) MainActivity.class);
intent3.addFlags(268435456);
startActivity(intent3);
} else if (activeSession != null) {
BaseScreen.showCustomToast((Context) this, 2131886748);
finish();
} else {
Engine.getInstance().getScreenService().getArguments().putInt("com.beint.project.CURRENT_TAB_POSITION", 1);
getScreenService().showFragment(HomeActivity.class);
ZangiConfigurationService zangiConfigurationService2 = ZangiConfigurationService.INSTANCE;
zangiConfigurationService2.putBoolean("FROM_CALL_ACTIVITY", true);
zangiConfigurationService2.putString("IDENTITI_CALL_NUMBER.com.beint.zangi.core.c.b", replace);
}
finish();
}
}
@Override
protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
VoiceManager voiceManager = VoiceManager.INSTANCE;
if (voiceManager.isRecording()) {
voiceManager.onCallStart();
}
final boolean ismStarted2 = Engine.getInstance().ismStarted2();
if (ZangiPermissionUtils.hasPermission(this, 1009, true, new ZangiPermissionUtils.OnPermissionResult() {
public final void onResult(ArrayList arrayList, boolean z) {
CallActivity.this.lambda$onCreate$0(ismStarted2, arrayList, z);
}
}) && ismStarted2) {
makeCall();
}
NotificationCenter.INSTANCE.addObserver(this, NotificationCenter.NotificationType.ENGINE_START_2, new qb.l() {
public final Object invoke(Object obj) {
fb.r lambda$onCreate$1;
lambda$onCreate$1 = CallActivity.this.lambda$onCreate$1(obj);
return lambda$onCreate$1;
}
});
}
@Override
protected void onDestroy() {
super.onDestroy();
VoiceManager.INSTANCE.onCallClosed();
NotificationCenter.INSTANCE.removeObserver(this);
}
}