Hide "unread notifications as tab"-preference when not using tabs

Change-Id: Ia616786d88a78f8b70fd07b4187836a494d4be94
This commit is contained in:
SpiritCroc 2020-09-01 10:53:58 +02:00
parent 0df61496f4
commit f7767070bf
1 changed files with 6 additions and 0 deletions

View File

@ -38,6 +38,12 @@ class VectorSettingsLabsFragment @Inject constructor(
it.isChecked = vectorPreferences.labAddNotificationTab()
}
findPreference<VectorSwitchPreference>(VectorPreferences.SETTINGS_LABS_UNREAD_NOTIFICATIONS_AS_TAB)?.let {
if (vectorPreferences.singleOverview()) {
it.parent?.removePreference(it)
}
}
// val useCryptoPref = findPreference(VectorPreferences.SETTINGS_ROOM_SETTINGS_LABS_END_TO_END_PREFERENCE_KEY) as SwitchPreference
// val cryptoIsEnabledPref = findPreference(VectorPreferences.SETTINGS_ROOM_SETTINGS_LABS_END_TO_END_IS_ACTIVE_PREFERENCE_KEY)