正在查看: Hyouka private v5.8.9 应用的 CallActionReceiver.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Hyouka private v5.8.9 应用的 CallActionReceiver.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.beint.project;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.beint.project.core.managers.ConferenceManager;
import com.beint.project.core.model.sms.GroupMember;
import com.beint.project.core.model.sms.GroupMemberCallState;
import com.beint.project.core.signal.AVSession;
import com.beint.project.core.utils.ZangiEngineUtils;
import com.beint.project.managers.SignalingManager;
public final class CallActionReceiver extends BroadcastReceiver {
private final void declineButtonClickInCallNotification() {
AVSession.Companion companion = AVSession.Companion;
AVSession currentAvSession = companion.getCurrentAvSession();
if (currentAvSession == null) {
currentAvSession = companion.getActiveSession();
}
if (currentAvSession != null) {
currentAvSession.setHangUpCallInScreen(true);
if (currentAvSession.isInFakeCallState()) {
currentAvSession.hangUpFakeCall();
} else if (currentAvSession.isConferenceCall()) {
GroupMember groupMember = ConferenceManager.INSTANCE.getCallMembersMap().get(ZangiEngineUtils.getCurrentRegisteredUserId());
if ((groupMember != null ? groupMember.getCallState() : null) != GroupMemberCallState.inCall) {
currentAvSession.declineConferenceCall();
} else {
currentAvSession.hangUpCall();
}
} else {
currentAvSession.hangUpCall();
}
}
SignalingManager.INSTANCE.stopOnForegroundService();
}
@Override
public void onReceive(Context context, Intent intent) {
if (kotlin.jvm.internal.k.b(intent != null ? Boolean.valueOf(intent.getBooleanExtra("action_decline", false)) : null, Boolean.TRUE)) {
declineButtonClickInCallNotification();
}
}
}