From bd85a9c399d87b30f56d9e356d79d09d037c5c2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hakk=C4=B1=20Kaan=20=C3=87al=C4=B1=C5=9Fkan?= Date: Tue, 16 Jun 2020 03:06:44 +0300 Subject: [PATCH] remove suppress and unnecessary otherwise = private --- .../java/org/mozilla/fenix/components/BackgroundServices.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/org/mozilla/fenix/components/BackgroundServices.kt b/app/src/main/java/org/mozilla/fenix/components/BackgroundServices.kt index 0dc56edc2..f24315a08 100644 --- a/app/src/main/java/org/mozilla/fenix/components/BackgroundServices.kt +++ b/app/src/main/java/org/mozilla/fenix/components/BackgroundServices.kt @@ -81,9 +81,8 @@ class BackgroundServices( // Enabling this for all channels is tracked in https://github.com/mozilla-mobile/fenix/issues/6704 secureStateAtRest = Config.channel.isNightlyOrDebug ) - // If sync has been turned off on the server then disable syncing. - @Suppress("ConstantConditionIf") - @VisibleForTesting(otherwise = PRIVATE) + + @VisibleForTesting val supportedEngines = if (FeatureFlags.syncedTabs) { setOf(SyncEngine.History, SyncEngine.Bookmarks, SyncEngine.Passwords, SyncEngine.Tabs) } else {