@@ -216,6 +216,7 @@ class SettingsActivity :
216216 }
217217
218218 setupCheckables(isOnline.value)
219+ setupEcosystemSetting()
219220 setupScreenLockSetting()
220221 setupNotificationSettings()
221222 setupProxyTypeSettings()
@@ -252,6 +253,14 @@ class SettingsActivity :
252253 }
253254 }
254255
256+ private fun setupEcosystemSetting () {
257+ if (getResources().getBoolean(R .bool.is_branded_client)) {
258+ binding.settingsShowEcosystem.visibility = View .GONE
259+ } else {
260+ binding.settingsShowEcosystem.visibility = View .VISIBLE
261+ }
262+ }
263+
255264 @Suppress(" MagicNumber" )
256265 private fun scrollToNotificationCategory () {
257266 binding.scrollView.post {
@@ -771,6 +780,7 @@ class SettingsActivity :
771780 private fun themeSwitchPreferences () {
772781 binding.run {
773782 listOf (
783+ settingsShowEcosystemSwitch,
774784 settingsShowNotificationWarningSwitch,
775785 settingsScreenLockSwitch,
776786 settingsScreenSecuritySwitch,
@@ -967,6 +977,8 @@ class SettingsActivity :
967977 }
968978
969979 private fun setupCheckables (isOnline : Boolean ) {
980+ setupShowEcosystemCheckable()
981+
970982 binding.settingsShowNotificationWarningSwitch.isChecked =
971983 appPreferences.showRegularNotificationWarning
972984
@@ -1031,6 +1043,15 @@ class SettingsActivity :
10311043 }
10321044 }
10331045
1046+ private fun setupShowEcosystemCheckable () {
1047+ binding.settingsShowEcosystemSwitch.isChecked = appPreferences.isShowEcosystem
1048+ binding.settingsShowEcosystem.setOnClickListener {
1049+ val isChecked = binding.settingsShowEcosystemSwitch.isChecked
1050+ binding.settingsShowEcosystemSwitch.isChecked = ! isChecked
1051+ appPreferences.setShowEcosystem(! isChecked)
1052+ }
1053+ }
1054+
10341055 private fun setupPhoneBookIntegrationSetting () {
10351056 binding.settingsPhoneBookIntegrationSwitch.isChecked = appPreferences.isPhoneBookIntegrationEnabled
10361057 binding.settingsPhoneBookIntegration.setOnClickListener {
0 commit comments