mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 13:45:35 +03:00
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:
commit
e644b12aee
2 changed files with 2 additions and 3 deletions
|
@ -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) {
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue