正在查看: Hyouka private v5.8.9 应用的 ReplyMessageBroadcastReceiver.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Hyouka private v5.8.9 应用的 ReplyMessageBroadcastReceiver.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.beint.project;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import androidx.core.app.s1;
import com.beint.project.bottomPanel.GroupMemberTagChooseViewController;
import com.beint.project.core.services.BadgeManager;
import com.beint.project.core.services.impl.MessagingService;
import com.beint.project.core.services.impl.SignalingService;
import com.beint.project.core.services.impl.StorageService;
import com.beint.project.core.utils.Constants;
import com.beint.project.core.utils.Log;
import com.beint.project.core.utils.ObjectType;
import com.beint.project.push.NotificationController;
import com.beint.project.screens.ConversationManager;
import java.util.Map;
public final class ReplyMessageBroadcastReceiver extends BroadcastReceiver {
public static final int ACTION_SHOW_SMS = 4;
public static final Companion Companion = new Companion(null);
public static final class Companion {
private Companion() {
}
public Companion(kotlin.jvm.internal.g gVar) {
this();
}
}
private final void handleAction(Intent intent) {
String str;
Bundle extras = intent.getExtras();
Log.i("ReplyMessageBroadcastReceiver", "handleAction=");
String string = extras != null ? extras.getString(Constants.CONV_JID) : null;
if (string == null) {
Log.i("ReplyMessageBroadcastReceiver", "PH -> jid == null return");
return;
}
Bundle j2 = s1.j(intent);
if (j2 == null) {
return;
}
Log.i("ReplyMessageBroadcastReceiver", "PH -> jid == " + string);
String valueOf = String.valueOf(j2.getCharSequence(Constants.REPLY_MESSAGE_TEXT));
SignalingService.INSTANCE.sendBkgModeToServer(false);
GroupMemberTagChooseViewController.Companion companion = GroupMemberTagChooseViewController.Companion;
Map<ObjectType, GroupMemberTagChooseViewController> map = companion.getMap();
ConversationManager conversationManager = ConversationManager.INSTANCE;
if (map.get(conversationManager.getCurrentConversation()) != null) {
GroupMemberTagChooseViewController groupMemberTagChooseViewController = companion.getMap().get(conversationManager.getCurrentConversation());
kotlin.jvm.internal.k.c(groupMemberTagChooseViewController);
str = groupMemberTagChooseViewController.getTagRanges();
} else {
str = "";
}
String str2 = str;
MessagingService messagingService = MessagingService.INSTANCE;
messagingService.createAndSendMessageByHttp(string, valueOf, null, ExtensionsKt.isGroup(string), null, null, str2, false);
messagingService.sendSeens(string);
StorageService.INSTANCE.setChatReaded(string);
new Handler().postDelayed(new Runnable() {
@Override
public final void run() {
ReplyMessageBroadcastReceiver.handleAction$lambda$0();
}
}, 1000L);
NotificationController notificationController = NotificationController.INSTANCE;
notificationController.removeMissedNotifications();
notificationController.removeNotifications(string);
BadgeManager.INSTANCE.calculateMessageBadges();
}
public static final void handleAction$lambda$0() {
SignalingService.INSTANCE.sendBkgModeToServer(true);
}
@Override
public void onReceive(Context context, Intent intent) {
kotlin.jvm.internal.k.f(context, "context");
kotlin.jvm.internal.k.f(intent, "intent");
handleAction(intent);
}
}