granularity level: instruction

		.class final Lcom/google/firebase/messaging/ProxyNotificationInitializer;
.super Ljava/lang/Object;
.source "ProxyNotificationInitializer.java"


.field private static final MANIFEST_METADATA_NOTIFICATION_DELEGATION_ENABLED:Ljava/lang/String; = "firebase_messaging_notification_delegation_enabled"


.method private constructor <init>()V
	.locals 0

	invoke-direct/range {p0 .. p0}, Ljava/lang/Object;-><init>()V
	return-void
.end method

.method private static allowedToUse(Landroid/content/Context;)Z
	.locals 1

	const/4 v0, 0x0
	return v0
.end method

.method static initialize(Landroid/content/Context;)V
	.locals 2

	invoke-static {p0}, Lcom/google/firebase/messaging/ProxyNotificationPreferences;->isProxyNotificationInitialized(Landroid/content/Context;)Z
	move-result v0
	new-instance v0, Lcom/google/firebase/messaging/EnhancedIntentService$$ExternalSyntheticLambda1;
	invoke-direct {v0}, Lcom/google/firebase/messaging/EnhancedIntentService$$ExternalSyntheticLambda1;-><init>()V
	invoke-static {p0}, Lcom/google/firebase/messaging/ProxyNotificationInitializer;->shouldEnableProxyNotification(Landroid/content/Context;)Z
	move-result v1
	invoke-static {v0, p0, v1}, Lcom/google/firebase/messaging/ProxyNotificationInitializer;->setEnableProxyNotification(Ljava/util/concurrent/Executor;Landroid/content/Context;Z)Lcom/google/android/gms/tasks/Task;
	return-void
.end method

.method static isProxyNotificationEnabled(Landroid/content/Context;)Z
	.locals 4

	const/4 v0, 0x0
	return v0
.end method

.method static synthetic lambda$setEnableProxyNotification$0(Landroid/content/Context;ZLcom/google/android/gms/tasks/TaskCompletionSource;)V
	.locals 3

	return-void
.end method

.method static setEnableProxyNotification(Ljava/util/concurrent/Executor;Landroid/content/Context;Z)Lcom/google/android/gms/tasks/Task;
	.locals 2
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"(",
	"Ljava/util/concurrent/Executor;",
	"Landroid/content/Context;",
	"Z)",
	"Lcom/google/android/gms/tasks/Task<",
	"Ljava/lang/Void;",
	">;"
	}
	.end annotation

	invoke-static {}, Lcom/google/android/gms/common/util/PlatformVersion;->isAtLeastQ()Z
	move-result v0
	const/4 p0, 0x0
	invoke-static {p0}, Lcom/google/android/gms/tasks/Tasks;->forResult(Ljava/lang/Object;)Lcom/google/android/gms/tasks/Task;
	move-result-object p0
	return-object p0
.end method

.method private static shouldEnableProxyNotification(Landroid/content/Context;)Z
	.locals 3

	const-string v0, "firebase_messaging_notification_delegation_enabled"
	:try_start_0
	invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
	move-result-object p0
	invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
	move-result-object v1
	if-eqz v1, :cond_0
	invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
	move-result-object p0
	const/16 v2, 0x80
	invoke-virtual {v1, p0, v2}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;
	move-result-object p0
	if-eqz p0, :cond_0
	iget-object v1, p0, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;
	if-eqz v1, :cond_0
	iget-object v1, p0, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;
	invoke-virtual {v1, v0}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z
	move-result v1
	goto/32 :cond_0
	:try_end_0
	.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
	return p0
	:cond_0
	:catch_0
	const/4 p0, 0x1
	return p0
.end method