正在查看: Rilo v2.0.21 应用的 CallBroadcastReceiver.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Rilo v2.0.21 应用的 CallBroadcastReceiver.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package app.callpe.common.utils.receivers;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import app.callpe.common.utils.Constants;
import app.callpe.data.model.StreamerModel;
import app.callpe.data.model.VideoDetailModel;
import app.callpe.ui.call.BotCallActivity;
import app.callpe.ui.call.CallActivity;
import com.google.gson.Gson;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import timber.log.Timber;
@Metadata(d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\u0018\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\bH\u0016¨\u0006\t"}, d2 = {"Lapp/callpe/common/utils/receivers/CallBroadcastReceiver;", "Landroid/content/BroadcastReceiver;", "()V", "onReceive", "", "context", "Landroid/content/Context;", "intent", "Landroid/content/Intent;", "app_riloRelease"}, k = 1, mv = {1, 8, 0}, xi = 48)
public final class CallBroadcastReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
VideoDetailModel videoDetailModel;
boolean z;
boolean z2;
Intent intent2;
String str;
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(intent, "intent");
if (intent.getExtras() != null) {
String stringExtra = intent.getStringExtra(Constants.FCM_DATA);
Timber.e("fcm data %s", new Object[]{stringExtra});
if (stringExtra == null || (videoDetailModel = (VideoDetailModel) new Gson().fromJson(stringExtra, VideoDetailModel.class)) == null) {
return;
}
if (videoDetailModel.getCallType() != null) {
z = Intrinsics.areEqual(videoDetailModel.getCallType(), "BOT");
z2 = Intrinsics.areEqual(videoDetailModel.getCallType(), "BOT_VIDEO");
} else {
z = false;
z2 = false;
}
if (z) {
intent2 = new Intent(context, (Class<?>) BotCallActivity.class);
} else {
intent2 = new Intent(context, (Class<?>) CallActivity.class);
}
String str2 = videoDetailModel.getUserInitiated() ? "USER" : "STREAMER";
intent2.putExtra(Constants.KEY_CALLING_CHANNEL, videoDetailModel.getAgoraChannelName());
intent2.putExtra(Constants.KEY_CALLING_VIDEO_ID, videoDetailModel.getId());
intent2.putExtra(Constants.KEY_CALLER, str2);
intent2.putExtra(Constants.FCM_DATA, stringExtra);
intent2.putExtra(CallActivity.IS_BOT, z);
intent2.putExtra(CallActivity.IS_BOT_VIDEO, z2);
if (videoDetailModel.getStreamerDetails() != null) {
StreamerModel streamerDetails = videoDetailModel.getStreamerDetails();
Intrinsics.checkNotNull(streamerDetails);
if (streamerDetails.getProfilePic() != null) {
StreamerModel streamerDetails2 = videoDetailModel.getStreamerDetails();
Intrinsics.checkNotNull(streamerDetails2);
String profilePic = streamerDetails2.getProfilePic();
Intrinsics.checkNotNull(profilePic);
if (!(profilePic.length() == 0)) {
StreamerModel streamerDetails3 = videoDetailModel.getStreamerDetails();
if (streamerDetails3 == null || (str = streamerDetails3.getProfilePic()) == null) {
str = "";
}
intent2.putExtra(CallActivity.PROFILE_PIC, str);
}
}
}
intent2.putExtra(Constants.KEY_CALLING_ROLE, "STREAMER");
intent2.setFlags(268435456);
context.startActivity(intent2);
}
}
}