From ae721a8b53921e71018c2565c7b27edef3c93fe3 Mon Sep 17 00:00:00 2001 From: proletarius101 <54175165+proletarius101@users.noreply.github.com> Date: Tue, 19 Oct 2021 15:41:24 +0000 Subject: [PATCH] fix backgroundConnection pref read from keepAliveService `backgroundConnection` pref is read from `keepAliveService` but written to `backgroundConnection` which seems incorrect --- .../main/java/org/telegram/messenger/MessagesController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/MessagesController.java b/TMessagesProj/src/main/java/org/telegram/messenger/MessagesController.java index d23f05417..6a59b6a0d 100644 --- a/TMessagesProj/src/main/java/org/telegram/messenger/MessagesController.java +++ b/TMessagesProj/src/main/java/org/telegram/messenger/MessagesController.java @@ -750,7 +750,7 @@ public class MessagesController extends BaseController implements NotificationCe preloadFeaturedStickers = mainPreferences.getBoolean("preloadFeaturedStickers", false); youtubePipType = mainPreferences.getString("youtubePipType", "disabled"); keepAliveService = mainPreferences.getBoolean("keepAliveService", false); - backgroundConnection = mainPreferences.getBoolean("keepAliveService", false); + backgroundConnection = mainPreferences.getBoolean("backgroundConnection", false); promoDialogId = mainPreferences.getLong("proxy_dialog", 0); nextPromoInfoCheckTime = mainPreferences.getInt("nextPromoInfoCheckTime", 0); promoDialogType = mainPreferences.getInt("promo_dialog_type", 0);