Merge pull request #5412 from artbristol/art/no_push_class_local_folder
Do not show push mode for local folders
This commit is contained in:
commit
d2ddff565b
1 changed files with 2 additions and 0 deletions
|
@ -110,6 +110,7 @@ class FolderSettingsFragment : PreferenceFragmentCompat(), ConfirmationDialogFra
|
|||
private fun setPreferenceVisibility(folderSettings: FolderSettingsData) {
|
||||
if (folderSettings.folder.isLocalOnly) {
|
||||
requirePreference<Preference>(PREFERENCE_POLL_CLASS).isVisible = false
|
||||
requirePreference<Preference>(PREFERENCE_PUSH_CLASS).isVisible = false
|
||||
requirePreference<Preference>(PREFERENCE_NOTIFICATION_CLASS).isVisible = false
|
||||
}
|
||||
}
|
||||
|
@ -140,6 +141,7 @@ class FolderSettingsFragment : PreferenceFragmentCompat(), ConfirmationDialogFra
|
|||
|
||||
private const val PREFERENCE_TOP_CATEGORY = "folder_settings"
|
||||
private const val PREFERENCE_POLL_CLASS = "folder_settings_folder_sync_mode"
|
||||
private const val PREFERENCE_PUSH_CLASS = "folder_settings_folder_push_mode"
|
||||
private const val PREFERENCE_NOTIFICATION_CLASS = "folder_settings_folder_notify_mode"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue