正在查看: Housing v14.7.8 应用的 IncomingCallReceiver.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Housing v14.7.8 应用的 IncomingCallReceiver.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.locon.housing.customNotifications;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.telephony.PhoneStateListener;
import android.telephony.TelephonyCallback;
import android.telephony.TelephonyManager;
import androidx.annotation.RequiresApi;
import androidx.compose.runtime.internal.StabilityInferred;
import androidx.core.content.ContextCompat;
import com.locon.home.presentation.ui.components.sections.t2;
import dagger.hilt.android.AndroidEntryPoint;
import java.util.concurrent.Executor;
import javax.inject.Inject;
import kotlin.Metadata;
import kotlin.coroutines.f;
import kotlin.jvm.internal.m0;
import kotlinx.coroutines.b2;
import kotlinx.coroutines.k0;
import kotlinx.coroutines.l0;
import kotlinx.coroutines.v2;
import kotlinx.coroutines.z0;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@StabilityInferred(parameters = 0)
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\n\b\u0007\u0018\u0000 \u000b2\u00020\u0001:\u0002\f\rB\u0007¢\u0006\u0004\b\u0002\u0010\u0003R\"\u0010\u0005\u001a\u00020\u00048\u0006@\u0006X\u0087.¢\u0006\u0012\n\u0004\b\u0005\u0010\u0006\u001a\u0004\b\u0007\u0010\b\"\u0004\b\t\u0010\n¨\u0006\u000e"}, d2 = {"Lcom/locon/housing/customNotifications/IncomingCallReceiver;", "Landroid/content/BroadcastReceiver;", "<init>", "()V", "Lcom/locon/database/dao/k;", "propertyLeadDao", "Lcom/locon/database/dao/k;", "getPropertyLeadDao", "()Lcom/locon/database/dao/k;", "setPropertyLeadDao", "(Lcom/locon/database/dao/k;)V", "Companion", "b", "a", "app_gammaRelease"}, k = t2.HOUSE_RENT_ID, mv = {t2.OFFICE_RENT_ID, 0, 0}, xi = 48)
@AndroidEntryPoint
public final class IncomingCallReceiver extends c {
@Nullable
private static PhoneStateListener phoneStateListener;
@Nullable
private static TelephonyCallback telephonyCallback;
@Inject
public com.locon.database.dao.k propertyLeadDao;
public static final int $stable = 8;
private static int storedState = -1;
@NotNull
private static String storedNumber = "";
@RequiresApi(31)
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\b\u0083\u0004\u0018\u00002\u00020\u00012\u00020\u0002B\u000f\u0012\u0006\u0010\u0004\u001a\u00020\u0003¢\u0006\u0004\b\u0005\u0010\u0006R\u0014\u0010\u0004\u001a\u00020\u00038\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0004\u0010\u0007¨\u0006\b"}, d2 = {"Lcom/locon/housing/customNotifications/IncomingCallReceiver$b;", "Landroid/telephony/TelephonyCallback;", "Landroid/telephony/TelephonyCallback$CallStateListener;", "Landroid/content/Context;", "context", "<init>", "(Lcom/locon/housing/customNotifications/IncomingCallReceiver;Landroid/content/Context;)V", "Landroid/content/Context;", "app_gammaRelease"}, k = t2.HOUSE_RENT_ID, mv = {t2.OFFICE_RENT_ID, 0, 0}, xi = 48)
public final class b extends TelephonyCallback implements TelephonyCallback.CallStateListener {
@NotNull
private final Context context;
final IncomingCallReceiver this$0;
public b(@NotNull IncomingCallReceiver incomingCallReceiver, Context context) {
kotlin.jvm.internal.r.k(context, "context");
this.this$0 = incomingCallReceiver;
this.context = context;
}
@Override
public final void onCallStateChanged(int i) {
IncomingCallReceiver.b(this.this$0, this.context, i, IncomingCallReceiver.storedNumber);
}
}
public static final void b(IncomingCallReceiver incomingCallReceiver, Context context, int i, String str) {
incomingCallReceiver.getClass();
if (i == 1 && str != null && !str.equals(storedNumber)) {
storedNumber = str;
}
if (storedNumber.length() > 0 && i == 0 && storedState == 2) {
m0 m0Var = new m0();
b2 b2 = v2.b();
z0 z0Var = z0.INSTANCE;
kotlinx.coroutines.k.c(k0.a(f.a.a.d(kotlinx.coroutines.scheduling.b.INSTANCE, b2)), (kotlin.coroutines.f) null, (l0) null, new m(m0Var, incomingCallReceiver, context, null), 3);
}
if (i == 0) {
Object systemService = context.getSystemService("phone");
kotlin.jvm.internal.r.i(systemService, "null cannot be cast to non-null type android.telephony.TelephonyManager");
TelephonyManager telephonyManager = (TelephonyManager) systemService;
if (Build.VERSION.SDK_INT >= 31) {
TelephonyCallback telephonyCallback2 = telephonyCallback;
if (telephonyCallback2 != null) {
androidx.core.view.c.s(telephonyManager, com.facebook.react.uimanager.a.n((b) telephonyCallback2));
telephonyCallback = null;
}
} else {
PhoneStateListener phoneStateListener2 = phoneStateListener;
if (phoneStateListener2 != null) {
telephonyManager.listen(phoneStateListener2, 0);
phoneStateListener = null;
}
}
}
if (storedState != i) {
storedState = i;
}
}
@Override
public final void onReceive(Context context, Intent intent) {
super.onReceive(context, intent);
kotlin.jvm.internal.r.k(context, "context");
kotlin.jvm.internal.r.k(intent, "intent");
if (kotlin.text.q.v(intent.getAction(), "android.intent.action.PHONE_STATE", false) && ContextCompat.checkSelfPermission(context, "android.permission.READ_PHONE_STATE") == 0) {
Object systemService = context.getSystemService("phone");
kotlin.jvm.internal.r.i(systemService, "null cannot be cast to non-null type android.telephony.TelephonyManager");
TelephonyManager telephonyManager = (TelephonyManager) systemService;
if (Build.VERSION.SDK_INT < 31) {
if (phoneStateListener == null) {
n nVar = new n(this, context);
phoneStateListener = nVar;
telephonyManager.listen(nVar, 32);
return;
}
return;
}
Bundle extras = intent.getExtras();
String string = extras != null ? extras.getString(x.INCOMING_NUMBER) : null;
if (string != null && !kotlin.jvm.internal.r.f(storedNumber, string)) {
storedNumber = string;
}
if (telephonyCallback == null) {
telephonyCallback = com.facebook.react.uimanager.a.n(new b(this, context));
Executor g = com.contentsquare.android.core.utils.b.g(context);
TelephonyCallback telephonyCallback2 = telephonyCallback;
kotlin.jvm.internal.r.i(telephonyCallback2, "null cannot be cast to non-null type com.locon.housing.customNotifications.IncomingCallReceiver.CustomTelephonyCallback");
androidx.core.view.c.t(telephonyManager, g, com.facebook.react.uimanager.a.n((b) telephonyCallback2));
}
}
}
}