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) saveOrUpdateSyncedFolder(item)
// TODO test if notifyItemChanged is sufficient (should improve performance) adapter.notifyItemChanged(adapter.getSectionHeaderIndex(syncedFolder.section))
adapter.notifyDataSetChanged()
} }
syncedFolderPreferencesDialogFragment = null syncedFolderPreferencesDialogFragment = null
if (syncedFolder.isEnabled) { if (syncedFolder.isEnabled) {

View file

@ -1,2 +1,2 @@
DO NOT TOUCH; GENERATED BY DRONE 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>