79 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			79 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class final Lcom/google/firebase/messaging/ProxyNotificationPreferences;
 | |
| .super Ljava/lang/Object;
 | |
| .source "com.google.firebase:firebase-messaging@@23.0.0"
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method private static getPreference(Landroid/content/Context;)Landroid/content/SharedPreferences;
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     move-object p0, v0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     const-string v1, "com.google.firebase.messaging"
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0, v1, v0}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public static isProxyNotificationInitialized(Landroid/content/Context;)Z
 | |
|     .locals 2
 | |
|     .annotation build Landroidx/annotation/WorkerThread;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p0}, Lcom/google/firebase/messaging/ProxyNotificationPreferences;->getPreference(Landroid/content/Context;)Landroid/content/SharedPreferences;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     const-string v0, "proxy_notification_initialized"
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     invoke-interface {p0, v0, v1}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z
 | |
| 
 | |
|     move-result p0
 | |
| 
 | |
|     return p0
 | |
| .end method
 | |
| 
 | |
| .method public static setProxyNotificationsInitialized(Landroid/content/Context;Z)V
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/WorkerThread;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p0}, Lcom/google/firebase/messaging/ProxyNotificationPreferences;->getPreference(Landroid/content/Context;)Landroid/content/SharedPreferences;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     invoke-interface {p0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     const-string p1, "proxy_notification_initialized"
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     .line 2
 | |
|     invoke-interface {p0, p1, v0}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;
 | |
| 
 | |
|     .line 3
 | |
|     invoke-interface {p0}, Landroid/content/SharedPreferences$Editor;->apply()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 |