mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-28 22:18:46 +03:00
Hide "unread notifications as tab"-preference when not using tabs
Change-Id: Ia616786d88a78f8b70fd07b4187836a494d4be94
This commit is contained in:
parent
0df61496f4
commit
f7767070bf
1 changed files with 6 additions and 0 deletions
|
@ -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 a new issue