forked from distok/cutthecord
		
	Fix images defaulting to spoilered state + not getting out
This commit is contained in:
		
							parent
							
								
									4199ef9d22
								
							
						
					
					
						commit
						d3c51e2bef
					
				
					 2 changed files with 7 additions and 6 deletions
				
			
		
							
								
								
									
										1
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							| 
						 | 
					@ -2,4 +2,5 @@ patches/*/*-custom.patch
 | 
				
			||||||
patches/*/*.patch-failed
 | 
					patches/*/*.patch-failed
 | 
				
			||||||
resources/distok/versionlogs/*
 | 
					resources/distok/versionlogs/*
 | 
				
			||||||
!resources/distok/versionlogs/.gitkeep
 | 
					!resources/distok/versionlogs/.gitkeep
 | 
				
			||||||
 | 
					resources/fdroid/repo/icons/*.xml
 | 
				
			||||||
*.apk
 | 
					*.apk
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -83,7 +83,7 @@ diff -crB from/smali/com/discord/stores/StoreUserSettings.smali to/smali/com/dis
 | 
				
			||||||
+
 | 
					+
 | 
				
			||||||
+     const-string v1, "CACHE_KEY_CTC_LEAK_CHANNELS"
 | 
					+     const-string v1, "CACHE_KEY_CTC_LEAK_CHANNELS"
 | 
				
			||||||
+
 | 
					+
 | 
				
			||||||
+     const/4 v2, 0x1
 | 
					+     const/4 v2, 0x0
 | 
				
			||||||
+
 | 
					+
 | 
				
			||||||
+     invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z
 | 
					+     invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z
 | 
				
			||||||
+
 | 
					+
 | 
				
			||||||
| 
						 | 
					@ -124,7 +124,7 @@ diff -crB from/smali/com/discord/stores/StoreUserSettings.smali to/smali/com/dis
 | 
				
			||||||
+
 | 
					+
 | 
				
			||||||
+     const-string v1, "CACHE_KEY_CTC_IMAGE_SPOILER"
 | 
					+     const-string v1, "CACHE_KEY_CTC_IMAGE_SPOILER"
 | 
				
			||||||
+
 | 
					+
 | 
				
			||||||
+     const/4 v2, 0x1
 | 
					+     const/4 v2, 0x0
 | 
				
			||||||
+
 | 
					+
 | 
				
			||||||
+     invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z
 | 
					+     invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z
 | 
				
			||||||
+
 | 
					+
 | 
				
			||||||
| 
						 | 
					@ -165,7 +165,7 @@ diff -crB from/smali/com/discord/stores/StoreUserSettings.smali to/smali/com/dis
 | 
				
			||||||
+
 | 
					+
 | 
				
			||||||
+     const-string v1, "CACHE_KEY_CTC_NO_DELETE"
 | 
					+     const-string v1, "CACHE_KEY_CTC_NO_DELETE"
 | 
				
			||||||
+
 | 
					+
 | 
				
			||||||
+     const/4 v2, 0x1
 | 
					+     const/4 v2, 0x0
 | 
				
			||||||
+
 | 
					+
 | 
				
			||||||
+     invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z
 | 
					+     invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z
 | 
				
			||||||
+
 | 
					+
 | 
				
			||||||
| 
						 | 
					@ -385,10 +385,10 @@ diff -crB from/smali/com/discord/utilities/rest/SendUtils$getPart$1$1.smali to/s
 | 
				
			||||||
+
 | 
					+
 | 
				
			||||||
+     move-result-object p0
 | 
					+     move-result-object p0
 | 
				
			||||||
+
 | 
					+
 | 
				
			||||||
+     # I commented this out and do this in StoreMessages now as this'd only work for a single image
 | 
					+     # this only works for a single image
 | 
				
			||||||
+     # const/4 v1, 0x0
 | 
					+     const/4 v1, 0x0
 | 
				
			||||||
+
 | 
					+
 | 
				
			||||||
+     # invoke-virtual {v0, v1}, Lcom/discord/stores/StoreUserSettings;->setImageSpoiler(Z)V
 | 
					+     invoke-virtual {v0, v1}, Lcom/discord/stores/StoreUserSettings;->setImageSpoiler(Z)V
 | 
				
			||||||
+
 | 
					+
 | 
				
			||||||
+     :cond_1
 | 
					+     :cond_1
 | 
				
			||||||
+     return-object p0
 | 
					+     return-object p0
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue