From fb4eaf11ff759291401dcc9c92f883b525b53299 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Brey?= Date: Wed, 8 Jun 2022 16:54:20 +0200 Subject: [PATCH 1/2] SyncedFoldersActivity: don't refresh entire adapter when toggling a folder from dialog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It's enough to refresh its header, and it doesn't have to refresh all pictures Signed-off-by: Álvaro Brey --- .../com/owncloud/android/ui/activity/SyncedFoldersActivity.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/com/owncloud/android/ui/activity/SyncedFoldersActivity.kt b/app/src/main/java/com/owncloud/android/ui/activity/SyncedFoldersActivity.kt index 3c09f50f43..dab7eca7be 100644 --- a/app/src/main/java/com/owncloud/android/ui/activity/SyncedFoldersActivity.kt +++ b/app/src/main/java/com/owncloud/android/ui/activity/SyncedFoldersActivity.kt @@ -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) { From bf0a884e541607eea344320fd4c62f1a1f161154 Mon Sep 17 00:00:00 2001 From: github-actions Date: Wed, 8 Jun 2022 15:35:45 +0000 Subject: [PATCH 2/2] Analysis: update lint results to reflect reduced error/warning count Signed-off-by: github-actions --- scripts/analysis/lint-results.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/analysis/lint-results.txt b/scripts/analysis/lint-results.txt index f7531aa09b..bf24c5db3f 100644 --- a/scripts/analysis/lint-results.txt +++ b/scripts/analysis/lint-results.txt @@ -1,2 +1,2 @@ DO NOT TOUCH; GENERATED BY DRONE - Lint Report: 86 warnings + Lint Report: 85 warnings