正在查看: OLX India v19.42.007 应用的 NotificationBuilder$openNotificationReceiver.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: OLX India v19.42.007 应用的 NotificationBuilder$openNotificationReceiver.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.olxgroup.panamera.app.common.helpers;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.olx.plush.data.model.PushExtras;
import com.olxgroup.panamera.app.common.infra.m2;
import com.olxgroup.panamera.app.common.tracking.q;
import com.olxgroup.panamera.domain.common.tracking.repository.UserCommsTrackingService;
import olx.com.delorean.domain.entity.notification.NotificationMessage;
public class NotificationBuilder$openNotificationReceiver extends BroadcastReceiver {
private static NotificationMessage a(Intent intent) {
if (intent.hasExtra("notificationExtra")) {
return (NotificationMessage) intent.getExtras().get("notificationExtra");
}
return null;
}
private PushExtras b(Intent intent) {
if (intent.hasExtra("push_message")) {
return (PushExtras) intent.getExtras().get("push_message");
}
return null;
}
private void c(Intent intent) {
if (intent.hasExtra("push_message")) {
intent.removeExtra("push_message");
}
}
@Override
public void onReceive(Context context, Intent intent) {
String action = intent.getAction();
PushExtras b = b(intent);
c(intent);
UserCommsTrackingService userCommsTrackingService = (UserCommsTrackingService) m2.a.P2().getValue();
com.olxgroup.panamera.app.application.gcm.g.b(intent.getExtras());
if (action.equals("push_dismiss")) {
if (userCommsTrackingService == null || b == null) {
return;
}
userCommsTrackingService.onPushDismissed(q.z().j0(b));
return;
}
if (userCommsTrackingService != null && b != null) {
NotificationMessage a = a(intent);
userCommsTrackingService.onPushOpen(a.getType(), action.split("#")[1], q.z().j0(b));
}
com.olxgroup.panamera.app.common.tracking.o.h().setOriginPostingFlow("push");
com.olxgroup.panamera.app.common.tracking.o.h().setOriginReplyFlow("push");
com.olxgroup.panamera.app.common.di.entrypoints.a aVar = (com.olxgroup.panamera.app.common.di.entrypoints.a) com.olxgroup.panamera.app.common.di.entrypoints.b.a.a(m2.b, com.olxgroup.panamera.app.common.di.entrypoints.a.class);
aVar.I().setReplyFlowOrigin("push");
aVar.I().setOriginPostingFlow("push");
aVar.t().setOriginLoginFlow("push");
context.startActivity(olx.com.delorean.a.d1(intent));
}
}