cutthecord/resources/patches/hqavatars/1251.patch

21 lines
841 B
Diff
Raw Normal View History

2020-09-07 10:02:33 +00:00
diff -crB from/smali/com/discord/utilities/icon/IconUtils.smali to/smali/com/discord/utilities/icon/IconUtils.smali
*** from/smali/com/discord/utilities/icon/IconUtils.smali 2020-09-07 10:44:49.245500743 +0100
--- to/smali/com/discord/utilities/icon/IconUtils.smali 2020-09-07 10:45:05.087368431 +0100
***************
*** 1423,1428 ****
--- 1423,1436 ----
invoke-virtual {p3, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
+ # Set avatar image size to 256
+
+ const-string v0, "?size=256"
+
+ invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
+
+ const-string v0, "https://cdn.discordapp.com/avatars/"
+
invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0