Initial import of ADIF API reverse-engineering toolkit
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
package com.google.firebase.messaging;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.SharedPreferences;
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: package-private */
|
||||
/* loaded from: classes3.dex */
|
||||
public 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);
|
||||
}
|
||||
|
||||
public static boolean isProxyNotificationInitialized(Context context) {
|
||||
return getPreference(context).getBoolean("proxy_notification_initialized", false);
|
||||
}
|
||||
|
||||
public static void setProxyNotificationsInitialized(Context context, boolean z3) {
|
||||
SharedPreferences.Editor edit = getPreference(context).edit();
|
||||
edit.putBoolean("proxy_notification_initialized", z3);
|
||||
edit.apply();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user