fix backgroundConnection pref read from keepAliveService

`backgroundConnection` pref is read from `keepAliveService` but written to `backgroundConnection` which seems incorrect
This commit is contained in:
proletarius101 2021-10-19 23:41:24 +08:00 committed by luvletter2333
parent 99c7ba1302
commit 302e658b0e
No known key found for this signature in database
GPG Key ID: A26A8880836E1978
1 changed files with 2 additions and 2 deletions

View File

@ -847,8 +847,8 @@ public class MessagesController extends BaseController implements NotificationCe
canRevokePmInbox = mainPreferences.getBoolean("canRevokePmInbox", canRevokePmInbox);
preloadFeaturedStickers = mainPreferences.getBoolean("preloadFeaturedStickers", false);
youtubePipType = mainPreferences.getString("youtubePipType", "disabled");
keepAliveService = mainPreferences.getBoolean("keepAliveService", true);
backgroundConnection = mainPreferences.getBoolean("keepAliveService", true);
keepAliveService = 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);