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 15:41:24 +00:00 committed by GitHub
parent 09f95ec069
commit ae721a8b53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -750,7 +750,7 @@ public class MessagesController extends BaseController implements NotificationCe
preloadFeaturedStickers = mainPreferences.getBoolean("preloadFeaturedStickers", false); preloadFeaturedStickers = mainPreferences.getBoolean("preloadFeaturedStickers", false);
youtubePipType = mainPreferences.getString("youtubePipType", "disabled"); youtubePipType = mainPreferences.getString("youtubePipType", "disabled");
keepAliveService = mainPreferences.getBoolean("keepAliveService", false); keepAliveService = mainPreferences.getBoolean("keepAliveService", false);
backgroundConnection = mainPreferences.getBoolean("keepAliveService", false); backgroundConnection = mainPreferences.getBoolean("backgroundConnection", false);
promoDialogId = mainPreferences.getLong("proxy_dialog", 0); promoDialogId = mainPreferences.getLong("proxy_dialog", 0);
nextPromoInfoCheckTime = mainPreferences.getInt("nextPromoInfoCheckTime", 0); nextPromoInfoCheckTime = mainPreferences.getInt("nextPromoInfoCheckTime", 0);
promoDialogType = mainPreferences.getInt("promo_dialog_type", 0); promoDialogType = mainPreferences.getInt("promo_dialog_type", 0);