mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +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)
|
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) {
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue