mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-12-27 10:03:06 +01:00
Hide "unread notifications as tab"-preference when not using tabs
Change-Id: Ia616786d88a78f8b70fd07b4187836a494d4be94
This commit is contained in:
parent
0df61496f4
commit
f7767070bf
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user