Merge pull request #10355 from nextcloud/fix/synced-folders-adapter-performance

SyncedFoldersActivity: don't refresh entire adapter when toggling a folder from dialog
This commit is contained in:
Álvaro Brey 2022-06-09 11:44:07 +02:00 committed by GitHub
commit e644b12aee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -672,8 +672,7 @@ class SyncedFoldersActivity :
)
saveOrUpdateSyncedFolder(item)
// TODO test if notifyItemChanged is sufficient (should improve performance)
adapter.notifyDataSetChanged()
adapter.notifyItemChanged(adapter.getSectionHeaderIndex(syncedFolder.section))
}
syncedFolderPreferencesDialogFragment = null
if (syncedFolder.isEnabled) {

View File

@ -1,2 +1,2 @@
DO NOT TOUCH; GENERATED BY DRONE
<span class="mdl-layout-title">Lint Report: 86 warnings</span>
<span class="mdl-layout-title">Lint Report: 85 warnings</span>