Files
rr3-apk/decompiled-community/sources/com/google/firebase/messaging/ProxyNotificationPreferences.java
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- Added realracing3-community.apk (71.57 MB)
- Removed 32-bit support (armeabi-v7a)
- Only includes arm64-v8a libraries
- Decompiled source code included
- Added README-community.md with analysis
2026-02-18 15:48:36 -08:00

50 lines
2.3 KiB
Java

package com.google.firebase.messaging;
import android.content.Context;
import android.content.SharedPreferences;
import androidx.credentials.CredentialManager$$ExternalSyntheticLambda0;
import com.google.android.gms.common.util.PlatformVersion;
import com.google.android.gms.tasks.OnSuccessListener;
/* loaded from: classes3.dex */
public abstract class ProxyNotificationPreferences {
public static SharedPreferences getPreference(Context context) {
Context applicationContext = context.getApplicationContext();
if (applicationContext != null) {
context = applicationContext;
}
return context.getSharedPreferences("com.google.firebase.messaging", 0);
}
public static void setProxyNotificationsInitialized(Context context, boolean z) {
SharedPreferences.Editor edit = getPreference(context).edit();
edit.putBoolean("proxy_notification_initialized", z);
edit.apply();
}
public static void setProxyRetention(final Context context, GmsRpc gmsRpc, final boolean z) {
if (PlatformVersion.isAtLeastQ() && !isProxyNotificationRetentionSet(getPreference(context), z)) {
gmsRpc.setRetainProxiedNotifications(z).addOnSuccessListener(new CredentialManager$$ExternalSyntheticLambda0(), new OnSuccessListener() { // from class: com.google.firebase.messaging.ProxyNotificationPreferences$$ExternalSyntheticLambda0
@Override // com.google.android.gms.tasks.OnSuccessListener
public final void onSuccess(Object obj) {
ProxyNotificationPreferences.setProxyRetentionPreferences(context, z);
}
});
}
}
public static boolean isProxyNotificationInitialized(Context context) {
return getPreference(context).getBoolean("proxy_notification_initialized", false);
}
public static boolean isProxyNotificationRetentionSet(SharedPreferences sharedPreferences, boolean z) {
return sharedPreferences.contains("proxy_retention") && sharedPreferences.getBoolean("proxy_retention", false) == z;
}
public static void setProxyRetentionPreferences(Context context, boolean z) {
SharedPreferences.Editor edit = getPreference(context).edit();
edit.putBoolean("proxy_retention", z);
edit.apply();
}
}