mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-15 02:17:18 +01:00
34 lines
1.2 KiB
Java
34 lines
1.2 KiB
Java
package com.google.firebase.messaging;
|
|
|
|
import android.content.Context;
|
|
import android.content.SharedPreferences;
|
|
import androidx.annotation.WorkerThread;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes8.dex */
|
|
final class ProxyNotificationPreferences {
|
|
private static final String FCM_PREFERENCES = "com.google.firebase.messaging";
|
|
|
|
private ProxyNotificationPreferences() {
|
|
}
|
|
|
|
private static SharedPreferences getPreference(Context context) {
|
|
Context applicationContext = context.getApplicationContext();
|
|
if (applicationContext != null) {
|
|
context = applicationContext;
|
|
}
|
|
return context.getSharedPreferences("com.google.firebase.messaging", 0);
|
|
}
|
|
|
|
@WorkerThread
|
|
public static boolean isProxyNotificationInitialized(Context context) {
|
|
return getPreference(context).getBoolean("proxy_notification_initialized", false);
|
|
}
|
|
|
|
@WorkerThread
|
|
public static void setProxyNotificationsInitialized(Context context, boolean z) {
|
|
SharedPreferences.Editor edit = getPreference(context).edit();
|
|
edit.putBoolean("proxy_notification_initialized", z);
|
|
edit.apply();
|
|
}
|
|
}
|