mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 13:15:35 +03:00
SyncedFoldersActivity: don't refresh entire adapter when toggling a folder from dialog
It's enough to refresh its header, and it doesn't have to refresh all pictures Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
This commit is contained in:
parent
affe52e49a
commit
fb4eaf11ff
1 changed files with 1 additions and 2 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) {
|
||||
|
|
Loading…
Reference in a new issue